Changeset 14875 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/FlushExpressions.cs
- Timestamp:
- 04/18/17 01:15:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/FlushExpressions.cs
r14834 r14875 80 80 } 81 81 } 82 83 [PushExpression(StackTypes.FloatVector, "FLOAT[].FLUSH")] 84 public class FloatVectorFlushExpression : FlushExpression<List<double>> { 85 public override bool Eval(IInternalPushInterpreter interpreter) { 86 return Eval(interpreter.FloatVectorStack); 87 } 88 } 89 90 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].FLUSH")] 91 public class BooleanVectorFlushExpression : FlushExpression<List<bool>> { 92 public override bool Eval(IInternalPushInterpreter interpreter) { 93 return Eval(interpreter.BooleanVectorStack); 94 } 95 } 96 97 [PushExpression(StackTypes.StringVector, "STRING[].FLUSH")] 98 public class StringVectorFlushExpression : FlushExpression<List<string>> { 99 public override bool Eval(IInternalPushInterpreter interpreter) { 100 return Eval(interpreter.StringVectorStack); 101 } 102 } 82 103 }
Note: See TracChangeset
for help on using the changeset viewer.