Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushVector.cs @ 15273

Last change on this file since 15273 was 15273, checked in by pkimmesw, 7 years ago

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File size: 799 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Encoding {
2  using System.Collections.Generic;
3
4  using HeuristicLab.Common;
5  using HeuristicLab.Core;
6  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
7
8  [StorableClass]
9  public class PlushVector : Item {
10
11    private List<PlushEntry> entries;
12
13    public PlushVector() : this(0) {
14
15    }
16
17    public PlushVector(int length) {
18      entries = new List<PlushEntry>(length);
19    }
20
21    [StorableConstructor]
22    public PlushVector(bool deserializing) : base(deserializing) {
23    }
24
25    public PlushVector(PlushVector origin, Cloner cloner) : base(origin, cloner) {
26    }
27
28    public override IDeepCloneable Clone(Cloner cloner) {
29      return new PlushVector(this, cloner);
30    }
31  }
32}
Note: See TracBrowser for help on using the repository browser.