Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 18:28:32 (14 years ago)
Author:
swagner
Message:

Finished cloning refactoring of HeuristicLab.Parameters and simplified cloning code of HeuristicLab.Core (#922)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Parameters/3.3/ConstrainedValueParameter.cs

    r4332 r4671  
    2323using System.Linq;
    2424using HeuristicLab.Collections;
     25using HeuristicLab.Common;
    2526using HeuristicLab.Core;
    2627using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    4142    }
    4243
     44    [StorableConstructor]
     45    protected ConstrainedValueParameter(bool deserializing) : base(deserializing) { }
     46    protected ConstrainedValueParameter(ConstrainedValueParameter<T> original, Cloner cloner) : base(original, cloner) { }
    4347    public ConstrainedValueParameter() : base() { }
    4448    public ConstrainedValueParameter(string name) : base(name) { }
     
    5458    public ConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value) : base(name, description, validValues, value) { }
    5559    public ConstrainedValueParameter(string name, string description, ItemSet<T> validValues, T value, bool getsCollected) : base(name, description, validValues, value, getsCollected) { }
    56     [StorableConstructor]
    57     protected ConstrainedValueParameter(bool deserializing) : base(deserializing) { }
     60
     61    public override IDeepCloneable Clone(Cloner cloner) {
     62      return new ConstrainedValueParameter<T>(this, cloner);
     63    }
    5864
    5965    protected override void ValidValues_ItemsAdded(object sender, CollectionItemsChangedEventArgs<T> e) {
Note: See TracChangeset for help on using the changeset viewer.