Changeset 14392 for branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Stack/IStack.cs
- Timestamp:
- 11/15/16 21:10:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Stack/IStack.cs
r14323 r14392 1 using System.Collections.Generic; 1 using System; 2 using System.Collections.Generic; 2 3 3 4 namespace HeuristicLab.Algorithms.PushGP.Stack … … 5 6 public interface IStack<T> : IEnumerable<T>, ICollection<T> 6 7 { 8 void Swap(int count); 9 void Yank(int index); 7 10 bool IsEmpty { get; } 8 11 void Push(T item); 9 10 12 void Push(params T[] items); 11 12 13 void Push(IEnumerable<T> items); 13 14 void PushResult(int count, Func<T[], T> templateFunc); 14 15 void Insert(int index, T item); 15 16 16 void Insert(int index, params T[] items); 17 18 17 void Insert(int index, IEnumerable<T> items); 19 18 T ReverseElementAt(int offset); 19 void SetTop(T value); 20 void RemoveTop(); 21 void Remove(int count); 22 void RemoveAt(int index); 23 void RemoveAt(int index, int count); 20 24 T Pop(); 21 22 25 T[] Pop(int count); 23 24 26 bool TryPop(out T item); 25 26 27 T ElementAt(int index); 27 28 28 T Top { get; } 29 T TopOrDefault { get; } 30 T Bottom { get; } 31 T BottomOrDefault { get; } 32 T this[int key] { get; set; } 29 33 } 30 34 }
Note: See TracChangeset
for help on using the changeset viewer.