Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Stack/IPushStack.cs @ 17511

Last change on this file since 17511 was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 1012 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis {
2  using System.Collections.Generic;
3
4  public interface IPushStack<T> : ICollection<T>, IPushStack {
5    T Top { get; set; }
6    T TopOrDefault { get; }
7    T Bottom { get; }
8    T BottomOrDefault { get; }
9    T this[int key] { get; set; }
10    new int Count { get; }
11    void Push(T item);
12    void Push(T item1, T item2);
13    void Push(T item1, T item2, T item3);
14    void Push(T item1, T item2, T item3, T item4);
15    void Push(IReadOnlyList<T> items, int startIndex);
16    void Push(IReadOnlyList<T> items);
17    void Push(IEnumerable<T> items);
18    void Swap(int count);
19    void Yank(int index);
20    void RemoveTop();
21    void Remove(int count);
22    void RemoveAt(int index);
23    void RemoveAt(int index, int count);
24    new void Clear();
25    IReadOnlyList<T> Peek(int count);
26    void Insert(int index, T item);
27    T Pop();
28    IReadOnlyList<T> Pop(int count);
29    bool TryPop(out T item);
30    T ElementAt(int index);
31  }
32}
Note: See TracBrowser for help on using the repository browser.