Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Expressions/SwapExpressions.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/SwapExpressions.cs
r15017 r15032 24 24 25 25 [StorableClass] 26 [PushExpression(StackTypes.Integer, "INTEGER.SWAP")] 26 [PushExpression( 27 StackTypes.Integer, 28 "INTEGER.SWAP", 29 "Swaps the top two items on the stack.")] 27 30 public class IntegerSwapExpression : SwapExpression<long> { 28 31 public IntegerSwapExpression() { } … … 40 43 41 44 [StorableClass] 42 [PushExpression(StackTypes.Float, "FLOAT.SWAP")] 45 [PushExpression( 46 StackTypes.Float, 47 "FLOAT.SWAP", 48 "Swaps the top two items on the stack.")] 43 49 public class FloatSwapExpression : SwapExpression<double> { 44 50 public FloatSwapExpression() { } … … 56 62 57 63 [StorableClass] 58 [PushExpression(StackTypes.Boolean, "BOOLEAN.SWAP")] 64 [PushExpression( 65 StackTypes.Boolean, 66 "BOOLEAN.SWAP", 67 "Swaps the top two items on the stack.")] 59 68 public class BooleanSwapExpression : SwapExpression<bool> { 60 69 public BooleanSwapExpression() { } … … 72 81 73 82 [StorableClass] 74 [PushExpression(StackTypes.Name, "NAME.SWAP")] 83 [PushExpression( 84 StackTypes.Name, 85 "NAME.SWAP", 86 "Swaps the top two items on the stack.")] 75 87 public class NameSwapExpression : SwapExpression<string> { 76 88 public NameSwapExpression() { } … … 88 100 89 101 [StorableClass] 90 [PushExpression(StackTypes.Exec, "EXEC.SWAP", execIn: 2)] 102 [PushExpression( 103 StackTypes.Exec, 104 "EXEC.SWAP", 105 "Swaps the top two items on the stack.", 106 execIn: 2)] 91 107 public class ExecSwapExpression : SwapExpression<Expression> { 92 108 public ExecSwapExpression() { } … … 104 120 105 121 [StorableClass] 106 [PushExpression(StackTypes.Code, "CODE.SWAP")] 122 [PushExpression( 123 StackTypes.Code, 124 "CODE.SWAP", 125 "Swaps the top two items on the stack.")] 107 126 public class CodeSwapExpression : SwapExpression<Expression> { 108 127 public CodeSwapExpression() { } … … 120 139 121 140 [StorableClass] 122 [PushExpression(StackTypes.Char, "CHAR.SWAP")] 141 [PushExpression( 142 StackTypes.Char, 143 "CHAR.SWAP", 144 "Swaps the top two items on the stack.")] 123 145 public class CharSwapExpression : SwapExpression<char> { 124 146 public CharSwapExpression() { } … … 136 158 137 159 [StorableClass] 138 [PushExpression(StackTypes.String, "STRING.SWAP")] 160 [PushExpression( 161 StackTypes.String, 162 "STRING.SWAP", 163 "Swaps the top two items on the stack.")] 139 164 public class StringSwapExpression : SwapExpression<string> { 140 165 public StringSwapExpression() { } … … 152 177 153 178 [StorableClass] 154 [PushExpression(StackTypes.IntegerVector, "INTEGER[].SWAP")] 179 [PushExpression( 180 StackTypes.IntegerVector, 181 "INTEGER[].SWAP", 182 "Swaps the top two items on the stack.")] 155 183 public class IntegerVectorSwapExpression : SwapExpression<IReadOnlyList<long>> { 156 184 public IntegerVectorSwapExpression() { } … … 168 196 169 197 [StorableClass] 170 [PushExpression(StackTypes.FloatVector, "FLOAT[].SWAP")] 198 [PushExpression( 199 StackTypes.FloatVector, 200 "FLOAT[].SWAP", 201 "Swaps the top two items on the stack.")] 171 202 public class FloatVectorSwapExpression : SwapExpression<IReadOnlyList<double>> { 172 203 public FloatVectorSwapExpression() { } … … 184 215 185 216 [StorableClass] 186 [PushExpression(StackTypes.BooleanVector, "BOOLEAN[].SWAP")] 217 [PushExpression( 218 StackTypes.BooleanVector, 219 "BOOLEAN[].SWAP", 220 "Swaps the top two items on the stack.")] 187 221 public class BooleanVectorSwapExpression : SwapExpression<IReadOnlyList<bool>> { 188 222 public BooleanVectorSwapExpression() { } … … 200 234 201 235 [StorableClass] 202 [PushExpression(StackTypes.StringVector, "STRING[].SWAP")] 236 [PushExpression( 237 StackTypes.StringVector, 238 "STRING[].SWAP", 239 "Swaps the top two items on the stack.")] 203 240 public class StringVectorSwapExpression : SwapExpression<IReadOnlyList<string>> { 204 241 public StringVectorSwapExpression() { }
Note: See TracChangeset
for help on using the changeset viewer.