MapImpl< MAP > Class Template Reference Data Structures
#include <map.h>
Public Types |
|
| using | MapType = typename std::decay< MAP >::type |
| using | KeyType = typename MapType::KeyType |
| using | ValueType = typename ConstIf < typename MapType::ValueType, CONSTMAP >::type |
| using | NonConstValueType = typename std::remove_const< ValueType >::type |
| using | Super = typename std::conditional< CONSTMAP ||! REFERENCE , MapInterface < KeyType , ValueType >, NonConstMap < KeyType , ValueType > >::type |
| using | 接口 = typename Super::Interface |
| using | Iterator = typename Interface::Iterator |
| using | ConstIterator = typename Interface::ConstIterator |
静态公共属性 |
|
| static const Bool | CONSTMAP |
| static const Bool | REFERENCE |
私有成员函数 |
|
| MAXON_DISALLOW_COPY_AND_ASSIGN ( MapImpl ) | |
Static Private Member Functions |
|
| template<typename T > | |
| static void | Destruct (const T &object) |
| static MapType::Iterator & | GetIterator ( Iterator *it) |
| static MapType::ConstIterator & | GetIterator ( ConstIterator *it) |
| static const MapType::Iterator & | GetIterator (const Iterator *it) |
| static const MapType::ConstIterator & | GetIterator (const ConstIterator *it) |
Private Attributes |
|
| MAP | _map |
| using MapType = typename std::decay<MAP>::type |
| using KeyType = typename MapType::KeyType |
| using ValueType = typename ConstIf <typename MapType::ValueType, CONSTMAP >::type |
| using NonConstValueType = typename std::remove_const< ValueType >::type |
| using Super = typename std::conditional< CONSTMAP || ! REFERENCE , MapInterface < KeyType , ValueType >, NonConstMap < KeyType , ValueType > >::type |
| using 接口 = typename Super::Interface |
| using Iterator = typename Interface::Iterator |
| using ConstIterator = typename Interface::ConstIterator |
| MapImpl | ( | ) |
|
explicit |
| MapImpl | ( | MapImpl < MAP > && | src | ) |
| MAXON_IMPLEMENTATION_SIMPLE | ( | MapImpl < MAP > | , |
| typename | |||
| ) |
| Int GetCount | ( | ) | const |
| ResultRef < NonConstValueType > InsertKey | ( | const KeyType & | key , |
| Bool & |
created
=
BoolLValue()
|
||
| ) |
| ResultRef < NonConstValueType > InsertKey | ( | KeyType && | key , |
| Bool & |
created
=
BoolLValue()
|
||
| ) |
| NonConstValueType * FindValue | ( | const KeyType & | key | ) |
| const ValueType * FindValue | ( | const KeyType & | key | ) | const |
| Result < Bool > Erase | ( | const KeyType & | key | ) |
| Iterator Erase | ( | const Iterator & | iterator | ) |
| Result <void> CopyFrom | ( | const 接口 & | other | ) |
| Result < 接口 *> Clone | ( | Bool | cloneElements | ) | const |
| String ToString | ( | const FormatStatement * |
formatStatement
=
nullptr
|
) | const |
| Int GetMemorySize | ( | ) | const |
| const DataType & GetKeyDataType | ( | ) | const |
| const DataType & GetValueDataType | ( | ) | const |
| void Reset | ( | ) |
| void Flush | ( | ) |
| void IteratorInit | ( | Iterator * | it , |
| Bool | end | ||
| ) |
| void IteratorInit | ( | ConstIterator * | it , |
| Bool | end | ||
| ) | const |
| void IteratorInitMove | ( | Iterator * | dest , |
| Iterator * | src | ||
| ) | const |
| void IteratorInitMove | ( | ConstIterator * | dest , |
| ConstIterator * | src | ||
| ) | const |
| void IteratorFree | ( | Iterator * | it | ) | const |
| void IteratorFree | ( | ConstIterator * | it | ) | const |
| Bool IteratorIsEqual | ( | const Iterator * | a , |
| const Iterator * | b | ||
| ) | const |
| Bool IteratorIsEqual | ( | const ConstIterator * | a , |
| const ConstIterator * | b | ||
| ) | const |
| void IteratorInc | ( | Iterator * | it | ) | const |
| void IteratorInc | ( | ConstIterator * | it | ) | const |
| Pair <const KeyType &, ValueType &> IteratorGet | ( | const Iterator * | it | ) | const |
| Pair <const KeyType &, const ValueType &> IteratorGet | ( | const ConstIterator * | it | ) | const |
| std::add_lvalue_reference<MAP>::type GetMap | ( | ) |
| const MapType & GetMap | ( | ) | const |
|
static private |
|
static private |
|
static private |
|
static private |
|
static private |
|
private |
|
|
| MAP _map | private |