Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

File size: 1012 bytes
RevLine 
[15771]1namespace HeuristicLab.Problems.ProgramSynthesis {
[14834]2  using System.Collections.Generic;
3
[14914]4  public interface IPushStack<T> : ICollection<T>, IPushStack {
[15017]5    T Top { get; set; }
[14834]6    T TopOrDefault { get; }
7    T Bottom { get; }
8    T BottomOrDefault { get; }
9    T this[int key] { get; set; }
[14914]10    new int Count { get; }
[14834]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);
[14914]15    void Push(IReadOnlyList<T> items, int startIndex);
[14875]16    void Push(IReadOnlyList<T> items);
[14909]17    void Push(IEnumerable<T> items);
[15289]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);
[14914]24    new void Clear();
[15189]25    IReadOnlyList<T> Peek(int count);
[14834]26    void Insert(int index, T item);
27    T Pop();
[15189]28    IReadOnlyList<T> Pop(int count);
[14834]29    bool TryPop(out T item);
30    T ElementAt(int index);
31  }
32}
Note: See TracBrowser for help on using the repository browser.