Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/YankDuplicateExpressions.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/YankDuplicateExpressions.cs
r15017 r15032 11 11 12 12 /// <summary> 13 /// 14 /// 13 /// Pushes a copy of an indexed item "deep" in the stack onto the top of the stack, without removing the deep item. 14 /// The index is taken from the INTEGER stack, and the indexing is done after the index is removed. 15 15 /// </summary> 16 16 /// <typeparam name="T">Stacktype</typeparam> … … 33 33 34 34 [StorableClass] 35 [PushExpression(StackTypes.Integer, "INTEGER.YANKDUP")] 35 [PushExpression( 36 StackTypes.Integer, 37 "INTEGER.YANKDUP", 38 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.")] 36 39 public class IntegerYankDuplicateExpression : YankDuplicateExpression<long> { 37 40 public IntegerYankDuplicateExpression() { } … … 49 52 50 53 [StorableClass] 51 [PushExpression(StackTypes.Float, "FLOAT.YANKDUP", StackTypes.Integer)] 54 [PushExpression( 55 StackTypes.Float, 56 "FLOAT.YANKDUP", 57 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 58 StackTypes.Integer)] 52 59 public class FloatYankDuplicateExpression : YankDuplicateExpression<double> { 53 60 public FloatYankDuplicateExpression() { } … … 65 72 66 73 [StorableClass] 67 [PushExpression(StackTypes.Boolean, "BOOLEAN.YANKDUP", StackTypes.Integer)] 74 [PushExpression( 75 StackTypes.Boolean, 76 "BOOLEAN.YANKDUP", 77 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 78 StackTypes.Integer)] 68 79 public class BooleanYankDuplicateExpression : YankDuplicateExpression<bool> { 69 80 public BooleanYankDuplicateExpression() { } … … 81 92 82 93 [StorableClass] 83 [PushExpression(StackTypes.Name, "NAME.YANKDUP", StackTypes.Integer)] 94 [PushExpression( 95 StackTypes.Name, 96 "NAME.YANKDUP", 97 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 98 StackTypes.Integer)] 84 99 public class NameYankDuplicateExpression : YankDuplicateExpression<string> { 85 100 public NameYankDuplicateExpression() { } … … 97 112 98 113 [StorableClass] 99 [PushExpression(StackTypes.Exec, "EXEC.YANKDUP", StackTypes.Integer, execIn: 0)] 114 [PushExpression( 115 StackTypes.Exec, 116 "EXEC.YANKDUP", 117 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 118 StackTypes.Integer, execIn: 0)] 100 119 public class ExecYankDuplicateExpression : YankDuplicateExpression<Expression> { 101 120 public ExecYankDuplicateExpression() { } … … 113 132 114 133 [StorableClass] 115 [PushExpression(StackTypes.Code, "CODE.YANKDUP", StackTypes.Integer)] 134 [PushExpression( 135 StackTypes.Code, 136 "CODE.YANKDUP", 137 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 138 StackTypes.Integer)] 116 139 public class CodeYankDuplicateExpression : YankDuplicateExpression<Expression> { 117 140 public CodeYankDuplicateExpression() { } … … 129 152 130 153 [StorableClass] 131 [PushExpression(StackTypes.Char, "CHAR.YANKDUP", StackTypes.Integer)] 154 [PushExpression( 155 StackTypes.Char, 156 "CHAR.YANKDUP", 157 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 158 StackTypes.Integer)] 132 159 public class CharYankDuplicateExpression : YankDuplicateExpression<char> { 133 160 public CharYankDuplicateExpression() { } … … 145 172 146 173 [StorableClass] 147 [PushExpression(StackTypes.String, "STRING.YANKDUP", StackTypes.Integer)] 174 [PushExpression( 175 StackTypes.String, 176 "STRING.YANKDUP", 177 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 178 StackTypes.Integer)] 148 179 public class StringYankDuplicateExpression : YankDuplicateExpression<string> { 149 180 public StringYankDuplicateExpression() { } … … 161 192 162 193 [StorableClass] 163 [PushExpression(StackTypes.IntegerVector, "INTEGER[].YANKDUP", StackTypes.Integer)] 194 [PushExpression( 195 StackTypes.IntegerVector, 196 "INTEGER[].YANKDUP", 197 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 198 StackTypes.Integer)] 164 199 public class IntegerVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<long>> { 165 200 public IntegerVectorYankDuplicateExpression() { } … … 177 212 178 213 [StorableClass] 179 [PushExpression(StackTypes.FloatVector, "FLOAT[].YANKDUP", StackTypes.Integer)] 214 [PushExpression( 215 StackTypes.FloatVector, 216 "FLOAT[].YANKDUP", 217 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 218 StackTypes.Integer)] 180 219 public class FloatVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<double>> { 181 220 public FloatVectorYankDuplicateExpression() { } … … 193 232 194 233 [StorableClass] 195 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].YANKDUP", StackTypes.Integer)] 234 [PushExpression( 235 StackTypes.BooleanVector, 236 "BOOLEAN[].YANKDUP", 237 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 238 StackTypes.Integer)] 196 239 public class BooleanVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<bool>> { 197 240 public BooleanVectorYankDuplicateExpression() { } … … 209 252 210 253 [StorableClass] 211 [PushExpression(StackTypes.StringVector, "STRING[].YANKDUP", StackTypes.Integer)] 254 [PushExpression( 255 StackTypes.StringVector, 256 "STRING[].YANKDUP", 257 "Pushes a copy of an indexed item \"deep\" in the stack onto the top of the stack, without removing the deep item.", 258 StackTypes.Integer)] 212 259 public class StringVectorYankDuplicateExpression : YankDuplicateExpression<IReadOnlyList<string>> { 213 260 public StringVectorYankDuplicateExpression() { }
Note: See TracChangeset
for help on using the changeset viewer.