| Class Holder Manages relationship to another object.
Holder
Tristate Holder
Holder<TValue, TSpec> Parameters
TValue | Type of the managed object. Metafunctions: Value
TSpec | The specializing type. Metafunctions: Spec Default: Tristate
Specializations
Tristate Holder | Holder that can be empty, dependent, or owner.
Metafunctions
Reference | Reference type.
Spec | The spec of a class.
Value | Type of the items in the container.
Member Functions
Holder | Constructor
~Holder | Destructor
Functions
assign | Assigns one object to another object.
assignValue | Assigns value to item.
clear | Resets an object.
create | Makes an object to owner of its content.
dependent | Test whether object depends on other objects.
detach | Makes an object independent from other objects.
empty | Test a container for being empty.
moveValue | Assigns value to item.
setValue | Makes holder dependent.
value | Reference to the value.
Remarks The main purpose of this class is to facilitate the handling of member objects. If we want class A to be dependent on or the owner of another object of class B, then we add a data member of type Holder<B> to A. Holder offers some useful access functions, stores the kind of relationship between A and B, and executes all needed addRef and releaseRef calls. See Also addRef, create, releaseRef, setValue SeqAn - Sequence Analysis Library - www.seqan.de