#include <kmap.h>
Definition at line 1497 of file kmap.h.
Public Types |
|
| typedef VALUE_TYPE | ValueType |
| typedef KEY_TYPE | KeyType |
| typedef StorageType::RecordType | RecordType |
| typedef StorageType::IteratorType | Iterator |
|
typedef StorageType::ConstIteratorType |
ConstIterator |
Public Member Functions |
|
| KMap () | |
| KMap (KMap const &pMap) | |
| ~KMap () | |
| void | Reserve (unsigned int pRecordCount) |
| int | GetSize () const |
| KPair< RecordType *, bool > | Insert (KeyType const &pKey, ValueType const &pValue) |
| int | Remove (KeyType const &pKey) |
| void | Clear () |
| bool | Empty () const |
| Iterator | Begin () |
| Iterator | End () |
| ConstIterator | Begin () const |
| ConstIterator | End () const |
| RecordType const * | Find (KeyType const &pKey) const |
| RecordType * | Find (KeyType const &pKey) |
| RecordType const * | UpperBound (KeyType const &pKey) const |
| RecordType * | UpperBound (KeyType const &pKey) |
| ValueType & | operator[] (KeyType const &pKey) |
| RecordType const * | Minimum () const |
| RecordType * | Minimum () |
| RecordType const * | Maximum () const |
| RecordType * | Maximum () |
Protected Types |
|
|
typedef KRedBlackTree < KKeyValuePair, KEY_COMPARE_FUNCTOR, ALLOCATOR > |
StorageType |
Protected Attributes |
|
| StorageType | mTree |
Classes |
|
| class | KKeyValuePair |
typedef KRedBlackTree<KKeyValuePair, KEY_COMPARE_FUNCTOR, ALLOCATOR>
StorageType
[protected] |
| typedef VALUE_TYPE ValueType |
| typedef StorageType::RecordType RecordType |
| typedef StorageType::ConstIteratorType ConstIterator |
| KMap | ( | KMap< KEY_TYPE, VALUE_TYPE, KEY_COMPARE_FUNCTOR, ALLOCATOR > const & | pMap | ) | [inline] |
| KPair<RecordType*, bool> Insert | ( | KeyType const & | pKey, | |
| ValueType const & | pValue | |||
| ) | [inline] |
Definition at line 1544 of file kmap.h.
Referenced by KMap< K, T, Compare >::operator[]().
| void Clear | ( | ) | [inline] |
Definition at line 1554 of file kmap.h.
Referenced by KMap< K, T, Compare >::~KMap().
| ConstIterator Begin | ( | ) | const [inline] |
| ConstIterator End | ( | ) | const [inline] |
| RecordType const* Find | ( | KeyType const & | pKey | ) | const [inline] |
Definition at line 1584 of file kmap.h.
Referenced by KMap< K, T, Compare >::operator[]().
| RecordType* Find | ( | KeyType const & | pKey | ) | [inline] |
| RecordType const* UpperBound | ( | KeyType const & | pKey | ) | const [inline] |
| RecordType* UpperBound | ( | KeyType const & | pKey | ) | [inline] |
| RecordType const* Minimum | ( | ) | const [inline] |
Definition at line 1616 of file kmap.h.
Referenced by KMap< K, T, Compare >::Begin().
| RecordType* Minimum | ( | ) | [inline] |
| RecordType const* Maximum | ( | ) | const [inline] |
| RecordType* Maximum | ( | ) | [inline] |
StorageType
mTree
[protected] |
Definition at line 1520 of file kmap.h.
Referenced by KMap< K, T, Compare >::Clear(), KMap< K, T, Compare >::Empty(), KMap< K, T, Compare >::Find(), KMap< K, T, Compare >::GetSize(), KMap< K, T, Compare >::Insert(), KMap< K, T, Compare >::Maximum(), KMap< K, T, Compare >::Minimum(), KMap< K, T, Compare >::Remove(), KMap< K, T, Compare >::Reserve(), and KMap< K, T, Compare >::UpperBound().