Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Stack/IStack.cs @ 14513

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

#2665 Added Problem.ProgramSynthesis Project, Fixed Expression Issues, Fixed Code Generation

File size: 1010 bytes
Line 
1namespace HeuristicLab.Algorithms.PushGP.Stack {
2  using System;
3  using System.Collections.Generic;
4
5  public interface IStack<T> : ICollection<T> {
6    bool IsEmpty { get; }
7
8    T Top { get; }
9
10    T TopOrDefault { get; }
11
12    T Bottom { get; }
13
14    T BottomOrDefault { get; }
15
16    T this[int key] { get; set; }
17
18    void Swap(int count);
19
20    void Yank(int index);
21
22    void Push(T item);
23
24    void Push(params T[] items);
25
26    void Push(IEnumerable<T> items);
27
28    void PushResult(int count, Func<T[], T> templateFunc);
29
30    void Insert(int index, T item);
31
32    void Insert(int index, params T[] items);
33
34    void Insert(int index, IEnumerable<T> items);
35
36    T ReverseElementAt(int offset);
37
38    void SetTop(T value);
39
40    void RemoveTop();
41
42    void Remove(int count);
43
44    void RemoveAt(int index);
45
46    void RemoveAt(int index, int count);
47
48    T Pop();
49
50    T[] Pop(int count);
51
52    bool TryPop(out T item);
53
54    T ElementAt(int index);
55  }
56}
Note: See TracBrowser for help on using the repository browser.