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