Rev | Line | |
---|
[14897] | 1 | namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer {
|
---|
| 2 | using Common;
|
---|
| 3 | using Data;
|
---|
| 4 | using Persistence.Default.CompositeSerializers.Storable;
|
---|
| 5 |
|
---|
| 6 | [StorableClass]
|
---|
| 7 | public class IntegerConstantErcValue : ConstantsWeightedErcValue<int, IntArray> {
|
---|
| 8 |
|
---|
| 9 | public IntegerConstantErcValue() : this(new int[0]) { }
|
---|
| 10 |
|
---|
[14898] | 11 | public IntegerConstantErcValue(params int[] constants)
|
---|
| 12 | : base(new IntArray(constants)) {
|
---|
| 13 | Name = "Integer constants";
|
---|
| 14 | }
|
---|
[14897] | 15 |
|
---|
| 16 | [StorableConstructor]
|
---|
| 17 | public IntegerConstantErcValue(bool deserializing) : base(deserializing) { }
|
---|
| 18 |
|
---|
| 19 | public IntegerConstantErcValue(IntegerConstantErcValue origin, Cloner cloner) : base(origin, cloner) {
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
| 23 | return new IntegerConstantErcValue(this, cloner);
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.