Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/VectorNthExpressions.cs
- Timestamp:
- 06/12/17 14:11:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/VectorNthExpressions.cs
r15017 r15032 42 42 43 43 [StorableClass] 44 [PushExpression(StackTypes.IntegerVector, "INTEGER[].NTH", StackTypes.Integer)] 44 [PushExpression( 45 StackTypes.IntegerVector, 46 "INTEGER[].NTH", 47 "Pushes the nth item from the top INTEGER[] onto the INTEGER stack, whereby n is taken from the INTEGER stack.", 48 StackTypes.Integer)] 45 49 public class IntegerVectorNthExpression : VectorNthExpression<long> { 46 50 public IntegerVectorNthExpression() { } … … 58 62 59 63 [StorableClass] 60 [PushExpression(StackTypes.FloatVector, "FLOAT[].NTH", StackTypes.Float | StackTypes.Integer)] 64 [PushExpression( 65 StackTypes.FloatVector, 66 "FLOAT[].NTH", 67 "Pushes the nth item from the top FLOAT[] onto the FLOAT stack, whereby n is taken from the INTEGER stack.", 68 StackTypes.Float | StackTypes.Integer)] 61 69 public class FloatVectorNthExpression : VectorNthExpression<double> { 62 70 public FloatVectorNthExpression() { } … … 74 82 75 83 [StorableClass] 76 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].NTH", StackTypes.Boolean | StackTypes.Integer)] 84 [PushExpression( 85 StackTypes.BooleanVector, 86 "BOOLEAN[].NTH", 87 "Pushes the nth item from the top BOOLEAN[] onto the BOOLEAN stack, whereby n is taken from the INTEGER stack.", 88 StackTypes.Boolean | StackTypes.Integer)] 77 89 public class BooleanVectorNthExpression : VectorNthExpression<bool> { 78 90 public BooleanVectorNthExpression() { } … … 90 102 91 103 [StorableClass] 92 [PushExpression(StackTypes.StringVector, "STRING[].NTH", StackTypes.String | StackTypes.Integer)] 104 [PushExpression( 105 StackTypes.StringVector, 106 "STRING[].NTH", 107 "Pushes the nth item from the top STRING[] onto the BOOLEAN stack, whereby n is taken from the INTEGER stack.", 108 StackTypes.String | StackTypes.Integer)] 93 109 public class StringVectorNthExpression : VectorNthExpression<string> { 94 110 public StringVectorNthExpression() { }
Note: See TracChangeset
for help on using the changeset viewer.