Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 14323 was 14323, checked in by pkimmesw, 8 years ago

#2665 Added Unit Test Project, CodeGenerator and refactored project structure

File size: 617 bytes
Line 
1using System.Collections.Generic;
2
3namespace HeuristicLab.Algorithms.PushGP.Stack
4{
5    public interface IStack<T> : IEnumerable<T>, ICollection<T>
6    {
7        bool IsEmpty { get; }
8        void Push(T item);
9
10        void Push(params T[] items);
11
12        void Push(IEnumerable<T> items);
13
14        void Insert(int index, T item);
15
16        void Insert(int index, params T[] items);
17
18        void Insert(int index, IEnumerable<T> items);
19
20        T Pop();
21
22        T[] Pop(int count);
23
24        bool TryPop(out T item);
25
26        T ElementAt(int index);
27
28        T Top { get; }
29    }
30}
Note: See TracBrowser for help on using the repository browser.