Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequency.cs

    r4623 r4722  
    8989    #endregion
    9090
     91    #region Storing & Cloning
     92    [StorableConstructor]
     93    protected AlleleFrequency(bool deserializing) : base(deserializing) { }
     94    protected AlleleFrequency(AlleleFrequency original, Cloner cloner)
     95      : base(original, cloner) {
     96      this.id = original.id;
     97      this.frequency = original.frequency;
     98      this.averageImpact = original.averageImpact;
     99      this.averageSolutionQuality = original.averageSolutionQuality;
     100      this.containedInBestKnownSolution = original.containedInBestKnownSolution;
     101      this.containedInBestSolution = original.containedInBestSolution;
     102    }
     103    public override IDeepCloneable Clone(Cloner cloner) {
     104      return new AlleleFrequency(this, cloner);
     105    }
     106    #endregion
    91107    public AlleleFrequency()
    92108      : base() {
     
    107123      this.containedInBestSolution = containedInBestSolution;
    108124    }
    109     [StorableConstructor]
    110     protected AlleleFrequency(bool deserializing) : base(deserializing) { }
    111 
    112     public override IDeepCloneable Clone(Cloner cloner) {
    113       AlleleFrequency clone = (AlleleFrequency)base.Clone(cloner);
    114       clone.id = id;
    115       clone.frequency = frequency;
    116       clone.averageImpact = averageImpact;
    117       clone.averageSolutionQuality = averageSolutionQuality;
    118       clone.containedInBestKnownSolution = containedInBestKnownSolution;
    119       clone.containedInBestSolution = containedInBestSolution;
    120       return clone;
    121     }
    122125
    123126    public override string ToString() {
Note: See TracChangeset for help on using the changeset viewer.