#include <T2Map.h>
Public Types | |
using | Pair = T2Pair<KeyType, ValueType, Comparator> |
using | Iterator = T2RedBlackTree<Pair>::Iterator |
using | CIterator = T2RedBlackTree<Pair>::CIterator |
using | Node = T2RedBlackTree<Pair>::Node |
Public Member Functions | |
T2Map (T2Allocator *a_pAllocator=GetGlobalAllocator()) | |
~T2Map () | |
void | Clear () |
TSIZE | Size () const |
template<class... Args> | |
ValueType * | Emplace (const KeyType &key, Args &&... args) |
ValueType * | Insert (const KeyType &key, const ValueType &value) |
ValueType * | Insert (const KeyType &key, ValueType &&value) |
void | Remove (const KeyType &key) |
void | Remove (Iterator &it) |
Iterator | FindByValue (const ValueType &value) |
Iterator | Find (const KeyType &key) |
Iterator | FindNext (Iterator a_oIterator, const KeyType &a_rKey) |
TBOOL | IsValid (Iterator a_oIterator) const |
Iterator | Begin () |
Iterator | End () |
const CIterator | Begin () const |
const CIterator | End () const |
TBOOL | IsEmpty () const |
Iterator | operator[] (const KeyType &key) |
T2Allocator * | GetAllocator () const |
using T2Map< KeyType, ValueType, Comparator >::CIterator = T2RedBlackTree<Pair>::CIterator |
using T2Map< KeyType, ValueType, Comparator >::Iterator = T2RedBlackTree<Pair>::Iterator |
using T2Map< KeyType, ValueType, Comparator >::Node = T2RedBlackTree<Pair>::Node |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |