22template <
class BaseObject>
56template <
class BaseObject>
63template <
class BaseObject>
70template <
class BaseObject>
79template <
class BaseObject>
82 return (valueTypeId == VTI_WEIGHT) || BaseClass::IsValueTypeSupported(valueTypeId, editableOnly);
86template <
class BaseObject>
89 if (valueTypeId == VTI_WEIGHT) {
93 return BaseClass::GetComponentValue(valueTypeId);
97template <
class BaseObject>
100 if (valueTypeId == VTI_WEIGHT) {
105 return BaseClass::SetComponentValue(valueTypeId, value);
111template <
class BaseObject>
118 return BaseClass::Serialize(archive) &&
119 BaseClass2::Serialize(archive) &&
126template <
class BaseObject>
130 if (objectPtr !=
nullptr) {
134 return BaseObject::CopyFrom(
object, mode);
138template <
class BaseObject>
143 if (clonePtr->CopyFrom(*
this, mode)) {
151template <
class BaseObject>
156 BaseClass::ResetData(mode);
Wrapper allowing to create feature object from some another serializable one.
bool IsValueTypeSupported(ValueTypeId valueTypeId, bool editableOnly=false) const override
bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
std::unique_ptr< istd::IChangeable > CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const override
Make a copy of this object.
TWeightedFeatureWrap(double weight=1.0)
bool SetComponentValue(ValueTypeId valueTypeId, double value) override
bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS) override
Reset data to its default state.
imeas::CGeneralNumericValue BaseClass
double GetComponentValue(ValueTypeId valueTypeId) const override
void SetWeight(double weight)
INumericConstraints::ValueTypeId ValueTypeId
Process tag used to group data in archive stream.
@ Leaf
Leaf tag, it can contain only one primitive element.
Represent input/output persistence archive.
virtual bool ProcessLeaf(const CArchiveTag &tag, bool &value)=0
Process primitive type.
virtual bool IsChanging() const =0
Check if this archive processing change the object state.
Help class which provides the automatic update mechanism of the model.
CompatibilityMode
Control how relationship betweeen objects are interpreted.
@ CM_WITHOUT_REFS
External references are simple ignored.
Contains the image processing classes.