Class
Holder
Manages relationship to another object.
Holder<TValue, TSpec>
Parameters
TValue
Type of the managed object.
Metafunctions: Value
TSpec
The specializing type.
Metafunctions: Spec
Default: Tristate
Specializations
Tristate HolderHolder that can be empty, dependent, or owner.
Metafunctions
ReferenceReference type.
SpecThe spec of a class.
ValueType of the items in the container.
Member Functions
HolderConstructor
~HolderDestructor
Functions
assignAssigns one object to another object.
assignValueAssigns value to item.
clearResets an object.
createMakes an object to owner of its content.
dependentTest whether object depends on other objects.
detachMakes an object independent from other objects.
emptyTest a container for being empty.
moveValueAssigns value to item.
setValueMakes holder dependent.
valueReference 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.
SeqAn - Sequence Analysis Library - www.seqan.de