DCMTK
Version 3.6.4
OFFIS DICOM Toolkit
|
Class representing a list of functional groups where each type of group can only be once in the list. More...
Public Types | |
typedef OFMap< DcmFGTypes::E_FGType, FGBase * >::iterator | iterator |
Iterator type for iterating functional groups. | |
typedef OFMap< DcmFGTypes::E_FGType, FGBase * >::const_iterator | const_iterator |
Const iterator type for iterating functional groups. | |
Public Member Functions | |
FunctionalGroups () | |
Constructor, creates empty set of functional groups. | |
virtual | ~FunctionalGroups () |
Virtual destructor, cleans up set of functional groups and frees the related memory. | |
virtual void | clear () |
Cleans up set of functional groups and frees the related memory. | |
virtual FGBase * | find (const DcmFGTypes::E_FGType fgType) |
Find a functional group by its type. More... | |
virtual FunctionalGroups::iterator | begin () |
Iterator pointing to first functional group in the set. More... | |
virtual FunctionalGroups::iterator | end () |
Iterator pointing behind last functional group in the set. More... | |
virtual FunctionalGroups::const_iterator | begin () const |
Const iterator pointing to first functional group in the set. More... | |
virtual FunctionalGroups::const_iterator | end () const |
Const iterator pointing behind last functional group in the set. More... | |
virtual OFCondition | insert (FGBase *group, const OFBool replaceOld) |
Insert new functional group; ownership is taken over from caller if function call is successful. More... | |
virtual FGBase * | remove (const DcmFGTypes::E_FGType fgType) |
Remove functional group specified by its type. More... | |
Private Attributes | |
OFMap< DcmFGTypes::E_FGType, FGBase * > | m_groups |
Map holding the functional groups, one of each type at most. | |
Class representing a list of functional groups where each type of group can only be once in the list.
|
virtual |
Iterator pointing to first functional group in the set.
|
virtual |
Const iterator pointing to first functional group in the set.
|
virtual |
Iterator pointing behind last functional group in the set.
|
virtual |
Const iterator pointing behind last functional group in the set.
|
virtual |
Find a functional group by its type.
fgType | The type of the functional group |
|
virtual |
Insert new functional group; ownership is taken over from caller if function call is successful.
group | The group to insert |
replaceOld | If OFTrue, then the existing functional group of the same type (if existing) is deleted and replaced by the given one. |
|
virtual |
Remove functional group specified by its type.
The memory is not freed by the call but must freed by the caller using the returned pointer.
fgType | The type of the group to remove |