Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/16 21:10:17 (8 years ago)
Author:
pkimmesw
Message:

#2665 Full Push 3.0 instruction set and tests; Added first benchmark test (count odds) for random walk tests;

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;
     1using System;
     2using System.Collections.Generic;
    23
    34namespace HeuristicLab.Algorithms.PushGP.Stack
     
    56    public interface IStack<T> : IEnumerable<T>, ICollection<T>
    67    {
     8        void Swap(int count);
     9        void Yank(int index);
    710        bool IsEmpty { get; }
    811        void Push(T item);
    9 
    1012        void Push(params T[] items);
    11 
    1213        void Push(IEnumerable<T> items);
    13 
     14        void PushResult(int count, Func<T[], T> templateFunc);
    1415        void Insert(int index, T item);
    15 
    1616        void Insert(int index, params T[] items);
    17 
    1817        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);
    2024        T Pop();
    21 
    2225        T[] Pop(int count);
    23 
    2426        bool TryPop(out T item);
    25 
    2627        T ElementAt(int index);
    27 
    2828        T Top { get; }
     29        T TopOrDefault { get; }
     30        T Bottom { get; }
     31        T BottomOrDefault { get; }
     32        T this[int key] { get; set; }
    2933    }
    3034}
Note: See TracChangeset for help on using the changeset viewer.