Changeset 14834 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PushResultExpression.cs
- Timestamp:
- 04/10/17 00:27:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/PushResultExpression.cs
r14744 r14834 5 5 6 6 public abstract class PushResultExpression<T> : StatelessExpression { 7 protected bool Eval(I Stack<T> stack, int count, Func<T[], T> templateFunc) {7 protected bool Eval(IPushStack<T> stack, int count, Func<T[], T> templateFunc) { 8 8 if (stack.Count < count) return false; 9 9 … … 12 12 } 13 13 14 protected bool Eval(I Stack<T> stack, int count, Func<T[], T> templateFunc, T ignoreValue) {14 protected bool Eval(IPushStack<T> stack, int count, Func<T[], T> templateFunc, T ignoreValue) { 15 15 if ((stack.Count < count) || stack.Top.Equals(ignoreValue)) return false; 16 16 … … 19 19 } 20 20 21 protected bool Eval<R>(I Stack<T> stack, IStack<R> resultStack, int count, Func<T[], R> templateFunc) {21 protected bool Eval<R>(IPushStack<T> stack, IPushStack<R> resultStack, int count, Func<T[], R> templateFunc) { 22 22 if (stack.Count < count) return false; 23 23
Note: See TracChangeset
for help on using the changeset viewer.