DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
associative container class. More...
Public Types | |
typedef OFPair< const K, V > | value_type |
the type of values saved in this map | |
Public Member Functions | |
typedef | OFListIterator (value_type) iterator |
iterator class for OFMap. More... | |
typedef | OFListConstIterator (value_type) const _iterator |
constant iterator class for OFMap. More... | |
OFMap () | |
default constructor | |
OFMap & | operator= (const OFMap &other) |
assignment operator | |
V & | operator[] (const K &key) |
index operator. More... | |
iterator | begin () |
returns iterator pointing to the first element of this map More... | |
iterator | end () |
returns iterator pointer after the last element of this map More... | |
const_iterator | begin () const |
returns constant iterator pointing to the first element of this map More... | |
const_iterator | end () const |
returns constant iterator pointer after the last element of this map More... | |
iterator | find (const K &key) |
looks up the given key in this map More... | |
const_iterator | find (const K &key) const |
looks up the given key in this map More... | |
OFBool | empty () const |
returns whether this map is empty (i.e. whether its size is 0) More... | |
size_t | size () const |
returns the number of elements saved in this map More... | |
void | clear () |
removes all elements from this map | |
void | erase (const iterator &first, const iterator &last) |
removes all elements in the given range from this map More... | |
void | erase (const iterator &elem) |
removes the element to which the given iterator points to More... | |
int | erase (const K &key) |
removes the element with the given key from this map More... | |
OFPair< iterator, bool > | insert (const value_type &val) |
inserts a new element into the map, but does not overwrite existing elements More... | |
void | swap (OFMap< K, V > &s) |
swaps the contents of the two maps. More... | |
Protected Attributes | |
OFList< value_type > | values_ |
associative container class.
This class is a subset of std::map.
|
inline |
returns iterator pointing to the first element of this map
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::find(), OFMap< log4cplus::tstring, ProvisionNode >::insert(), and OFMap< log4cplus::tstring, ProvisionNode >::operator=().
|
inline |
returns constant iterator pointing to the first element of this map
|
inline |
returns whether this map is empty (i.e. whether its size is 0)
|
inline |
returns iterator pointer after the last element of this map
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::erase(), OFMap< log4cplus::tstring, ProvisionNode >::find(), OFMap< log4cplus::tstring, ProvisionNode >::insert(), OFMap< log4cplus::tstring, ProvisionNode >::operator=(), and OFMap< log4cplus::tstring, ProvisionNode >::operator[]().
|
inline |
returns constant iterator pointer after the last element of this map
|
inline |
removes the element to which the given iterator points to
elem | the element to remove |
|
inline |
removes all elements in the given range from this map
first | the first element to remove |
last | the first element NOT to remove |
|
inline |
removes the element with the given key from this map
|
inline |
looks up the given key in this map
key | the key to look for |
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::erase(), OFMap< log4cplus::tstring, ProvisionNode >::insert(), and OFMap< log4cplus::tstring, ProvisionNode >::operator[]().
|
inline |
looks up the given key in this map
key | the key to look for |
|
inline |
inserts a new element into the map, but does not overwrite existing elements
val | the value to insert |
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::operator=(), and OFMap< log4cplus::tstring, ProvisionNode >::operator[]().
typedef OFMap< K, V >::OFListConstIterator | ( | value_type | ) | const |
constant iterator class for OFMap.
You can read the elements, but you may not modify them.
typedef OFMap< K, V >::OFListIterator | ( | value_type | ) |
iterator class for OFMap.
You can modify elements through this iterator's ->first and ->second properties.
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::insert().
|
inline |
|
inline |
returns the number of elements saved in this map
swaps the contents of the two maps.
The time complexity of this function should be constant.
s | map to swap with |
|
protected |
Referenced by OFMap< log4cplus::tstring, ProvisionNode >::begin(), OFMap< log4cplus::tstring, ProvisionNode >::clear(), OFMap< log4cplus::tstring, ProvisionNode >::empty(), OFMap< log4cplus::tstring, ProvisionNode >::end(), OFMap< log4cplus::tstring, ProvisionNode >::erase(), OFMap< log4cplus::tstring, ProvisionNode >::insert(), OFMap< log4cplus::tstring, ProvisionNode >::size(), and OFMap< log4cplus::tstring, ProvisionNode >::swap().