Changeset 14834 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/LoopExpression.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/LoopExpression.cs
r14777 r14834 62 62 protected LoopExpression(LoopState state) : base(state) { } 63 63 64 protected bool Eval(I PushInterpreter interpreter, IStack<Expression> sourceStack, bool pushCurrentIndex = false) {64 protected bool Eval(IInternalPushInterpreter interpreter, IPushStack<Expression> sourceStack, bool pushCurrentIndex = false) { 65 65 // if not initialized 66 66 if (this.State.Body == null) { … … 99 99 } 100 100 101 protected virtual void PushIteration(I PushInterpreter interpreter) {101 protected virtual void PushIteration(IInternalPushInterpreter interpreter) { 102 102 interpreter.IntegerStack.Push(this.State.CurrentIndex); 103 103 … … 114 114 } 115 115 116 protected virtual void PushLastIteration(I PushInterpreter interpreter) {116 protected virtual void PushLastIteration(IInternalPushInterpreter interpreter) { 117 117 interpreter.IntegerStack.Push(State.CurrentIndex); 118 118 interpreter.ExecStack.Push(State.Body); 119 119 } 120 120 121 protected abstract LoopExpression Clone(LoopState state, I PushInterpreter interpreter);122 protected abstract bool HasInsufficientArguments(I PushInterpreter interpreter, IStack<Expression> sourceStack);123 protected abstract LoopState InitState(I PushInterpreter interpreter, IStack<Expression> sourceStack);121 protected abstract LoopExpression Clone(LoopState state, IInternalPushInterpreter interpreter); 122 protected abstract bool HasInsufficientArguments(IInternalPushInterpreter interpreter, IPushStack<Expression> sourceStack); 123 protected abstract LoopState InitState(IInternalPushInterpreter interpreter, IPushStack<Expression> sourceStack); 124 124 } 125 125 }
Note: See TracChangeset
for help on using the changeset viewer.