Class
Holder
Manages relationship to another object.
Holder<TValue, TSpec>
Include Headers
seqan/basic.h
Parameters
TValue
Type of the managed object.
Metafunctions: Value
TSpec
The specializing type.
Metafunctions: Spec
Default: Tristate
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 and stores the kind of relationship between A and B.
Specializations
Simple HolderSimple copying wrapper without any additional state.
Tristate HolderHolder that can be empty, dependent, or owner.
Metafunctions
ReferenceReference type.
SpecThe spec of a class.
ValueType of the items in the container or behind an iterator.
Member Functions
HolderConstructor
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.
See Also
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:16