Class Specialization
Tristate Holder
Holder that can be empty, dependent, or owner.
Holder
Tristate Holder
Holder<TValue, Tristate>
Parameters
TValue
Type of the managed object.
Specialization of
Metafunctions
ReferenceReference type. (Holder)
SpecThe spec of a class. (Holder)
ValueType of the items in the container. (Holder)
Functions
assignAssigns one object to another object. (Holder)
assignValueAssigns value to item. (Holder)
clearResets an object. (Holder)
createMakes an object to owner of its content. (Holder)
dependentTest whether object depends on other objects. (Holder)
detachMakes an object independent from other objects. (Holder)
emptyTest a container for being empty. (Holder)
moveValueAssigns value to item. (Holder)
setValueMakes holder dependent. (Holder)
valueReference to the value. (Holder)
Remarks
A tristate holder A that holds an object B has one of the following states:
- owner: A is the owner of B. If A is destroyed, B will be destroyed automatically.
- dependent: A depends on B. B should not be destroyed as long as A is used.
- empty: there is currently no object reference stored in the holder A.
The state of the holder can be determined by empty and dependent.
SeqAn - Sequence Analysis Library - www.seqan.de