Changeset 14875 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/StackdepthExpressions.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/StackdepthExpressions.cs
r14834 r14875 85 85 } 86 86 } 87 88 [PushExpression(StackTypes.FloatVector, "FLOAT[].STACKDEPTH", StackTypes.Integer)] 89 public class FloatVectorStackdepthExpression : StackdepthExpression<List<double>> { 90 public override bool Eval(IInternalPushInterpreter interpreter) { 91 return Eval(interpreter.FloatVectorStack, interpreter.IntegerStack); 92 } 93 } 94 95 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].STACKDEPTH", StackTypes.Integer)] 96 public class BooleanVectorStackdepthExpression : StackdepthExpression<List<bool>> { 97 public override bool Eval(IInternalPushInterpreter interpreter) { 98 return Eval(interpreter.BooleanVectorStack, interpreter.IntegerStack); 99 } 100 } 101 102 [PushExpression(StackTypes.StringVector, "STRING[].STACKDEPTH", StackTypes.Integer)] 103 public class StringVectorStackdepthExpression : StackdepthExpression<List<string>> { 104 public override bool Eval(IInternalPushInterpreter interpreter) { 105 return Eval(interpreter.StringVectorStack, interpreter.IntegerStack); 106 } 107 } 87 108 }
Note: See TracChangeset
for help on using the changeset viewer.