Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/YankExpressions.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/YankExpressions.cs
r15017 r15032 1 1 namespace HeuristicLab.Problems.ProgramSynthesis.Push.Expressions { 2 using System;3 2 using System.Collections.Generic; 4 3 … … 10 9 11 10 /// <summary> 12 /// 13 /// 11 /// Removes an indexed item from "deep" in the stack and pushes it on top of the stack. 12 /// The index is taken from the INTEGER stack, and the indexing is done after the index is removed. 14 13 /// </summary> 15 14 /// <typeparam name="T">Stacktype</typeparam> … … 32 31 33 32 [StorableClass] 34 [PushExpression(StackTypes.Integer, "INTEGER.YANK")] 33 [PushExpression( 34 StackTypes.Integer, 35 "INTEGER.YANK", 36 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.")] 35 37 public class IntegerYankExpression : YankExpression<long> { 36 38 public IntegerYankExpression() { } … … 48 50 49 51 [StorableClass] 50 [PushExpression(StackTypes.Float, "FLOAT.YANK", StackTypes.Integer)] 52 [PushExpression( 53 StackTypes.Float, 54 "FLOAT.YANK", 55 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 56 StackTypes.Integer)] 51 57 public class FloatYankExpression : YankExpression<double> { 52 58 public FloatYankExpression() { } … … 64 70 65 71 [StorableClass] 66 [PushExpression(StackTypes.Boolean, "BOOLEAN.YANK", StackTypes.Integer)] 72 [PushExpression( 73 StackTypes.Boolean, 74 "BOOLEAN.YANK", 75 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 76 StackTypes.Integer)] 67 77 public class BooleanYankExpression : YankExpression<bool> { 68 78 public BooleanYankExpression() { } … … 80 90 81 91 [StorableClass] 82 [PushExpression(StackTypes.Name, "NAME.YANK", StackTypes.Integer)] 92 [PushExpression( 93 StackTypes.Name, 94 "NAME.YANK", 95 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 96 StackTypes.Integer)] 83 97 public class NameYankExpression : YankExpression<string> { 84 98 public NameYankExpression() { } … … 96 110 97 111 [StorableClass] 98 [PushExpression(StackTypes.Exec, "EXEC.YANK", StackTypes.Integer, execIn: 0)] 112 [PushExpression( 113 StackTypes.Exec, 114 "EXEC.YANK", 115 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 116 StackTypes.Integer, 117 execIn: 0)] 99 118 public class ExecYankExpression : YankExpression<Expression> { 100 119 public ExecYankExpression() { } … … 112 131 113 132 [StorableClass] 114 [PushExpression(StackTypes.Code, "CODE.YANK", StackTypes.Integer)] 133 [PushExpression( 134 StackTypes.Code, 135 "CODE.YANK", 136 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 137 StackTypes.Integer)] 115 138 public class CodeYankExpression : YankExpression<Expression> { 116 139 public CodeYankExpression() { } … … 128 151 129 152 [StorableClass] 130 [PushExpression(StackTypes.Char, "CHAR.YANK", StackTypes.Integer)] 153 [PushExpression( 154 StackTypes.Char, 155 "CHAR.YANK", 156 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 157 StackTypes.Integer)] 131 158 public class CharYankExpression : YankExpression<char> { 132 159 public CharYankExpression() { } … … 144 171 145 172 [StorableClass] 146 [PushExpression(StackTypes.String, "STRING.YANK", StackTypes.Integer)] 173 [PushExpression( 174 StackTypes.String, 175 "STRING.YANK", 176 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 177 StackTypes.Integer)] 147 178 public class StringYankExpression : YankExpression<string> { 148 179 public StringYankExpression() { } … … 160 191 161 192 [StorableClass] 162 [PushExpression(StackTypes.IntegerVector, "INTEGER[].YANK", StackTypes.Integer)] 193 [PushExpression( 194 StackTypes.IntegerVector, 195 "INTEGER[].YANK", 196 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 197 StackTypes.Integer)] 163 198 public class IntegerVectorYankExpression : YankExpression<IReadOnlyList<long>> { 164 199 public IntegerVectorYankExpression() { } … … 176 211 177 212 [StorableClass] 178 [PushExpression(StackTypes.FloatVector, "FLOAT[].YANK", StackTypes.Integer)] 213 [PushExpression( 214 StackTypes.FloatVector, 215 "FLOAT[].YANK", 216 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 217 StackTypes.Integer)] 179 218 public class FloatVectorYankExpression : YankExpression<IReadOnlyList<double>> { 180 219 public FloatVectorYankExpression() { } … … 192 231 193 232 [StorableClass] 194 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].YANK", StackTypes.Integer)] 233 [PushExpression( 234 StackTypes.BooleanVector, 235 "BOOLEAN[].YANK", 236 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 237 StackTypes.Integer)] 195 238 public class BooleanVectorYankExpression : YankExpression<IReadOnlyList<bool>> { 196 239 public BooleanVectorYankExpression() { } … … 208 251 209 252 [StorableClass] 210 [PushExpression(StackTypes.StringVector, "STRING[].YANK", StackTypes.Integer)] 253 [PushExpression( 254 StackTypes.StringVector, 255 "STRING[].YANK", 256 "Removes an indexed item from \"deep\" in the stack and pushes it on top of the stack.", 257 StackTypes.Integer)] 211 258 public class StringVectorYankExpression : YankExpression<IReadOnlyList<string>> { 212 259 public StringVectorYankExpression() { }
Note: See TracChangeset
for help on using the changeset viewer.