DCMTK
Version 3.6.5
OFFIS DICOM Toolkit
|
this class implements a simple map of key-value pairs. More...
Public Member Functions | |
DcmSimpleMap () | |
default constructor | |
~DcmSimpleMap () | |
destructor | |
OFBool | add (const OFString &key, const T &value) |
inserts a new key-value pair into the map by means of copy construction. More... | |
const T * | lookup (const OFString &key) const |
looks up the given key in the map. More... | |
OFLIST_TYPENAME | OFListIterator (DcmKeyValuePair< T > *) begin() |
return iterator to first element in list | |
OFLIST_TYPENAME | OFListIterator (DcmKeyValuePair< T > *) end() |
return iterator to end of list | |
Private Member Functions | |
DcmSimpleMap (const DcmSimpleMap &arg) | |
private undefined copy constructor | |
DcmSimpleMap & | operator= (const DcmSimpleMap &arg) |
private undefined copy assignment operator | |
Private Attributes | |
OFList< DcmKeyValuePair< T > * > | list_ |
the list of key-value pairs | |
this class implements a simple map of key-value pairs.
No double keys are permitted, the second attempt to insert an element with a key already present will fail. Template type must be copy constructable.
|
inline |
inserts a new key-value pair into the map by means of copy construction.
key | key |
value | value |
|
inline |
looks up the given key in the map.
key | key |
References OFList< T >::begin(), OFList< T >::end(), and DcmSimpleMap< T >::list_.