Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Stack/IPushStack.cs @ 14875

Last change on this file since 14875 was 14875, checked in by pkimmesw, 7 years ago

#2665 BenchmarkSuite, all examples, partially tested, VectorExpressions added

File size: 889 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Stack {
2  using System;
3  using System.Collections.Generic;
4
5  public interface IPushStack<T> : ICollection<T>, IPushStackBase {
6    T Top { get; }
7    T TopOrDefault { get; }
8    T Bottom { get; }
9    T BottomOrDefault { get; }
10    T this[int key] { get; set; }
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 = 0);
16    void Push(IReadOnlyList<T> items);
17    T Peek();
18    T[] Peek(int count);
19    void PushResult(int count, Func<T[], T> templateFunc);
20    void Insert(int index, T item);
21    T ReverseElementAt(int offset);
22    void SetTop(T value);
23    T Pop();
24    T[] Pop(int count);
25    bool TryPop(out T item);
26    T ElementAt(int index);
27  }
28}
Note: See TracBrowser for help on using the repository browser.