|
FBX C++ API Reference
|
#include <fbxmap.h>
This class implements an efficient map based on key comparison, which stores key-value pairs.
It executes insertion, deletion and query operations in O(log(n)) time.
Classes | |
| class | KeyValuePair |
| This class defines the key-value pairs used by the map. More... | |
Public Types | |
| typedef Type | ValueType |
| typedef Key | KeyType |
| typedef StorageType::RecordType | RecordType |
| typedef StorageType::IteratorType | Iterator |
| typedef StorageType::ConstIteratorType | ConstIterator |
Public Member Functions | |
| void | Reserve (unsigned int pRecordCount) |
| Preallocate memory. More... | |
| int | GetSize () const |
| Retrieve the number of key-value pairs it holds. More... | |
| FbxPair< RecordType *, bool > | Insert (const KeyType &pKey, const ValueType &pValue) |
| Insert a key-value pair. More... | |
| bool | Remove (const KeyType &pKey) |
| Delete a key-value pair. More... | |
| void | Clear () |
| Clear the map. More... | |
| bool | Empty () const |
| Query whether the map is empty. More... | |
| Iterator | Begin () |
| Retrieve the begin iterator of the map. More... | |
| Iterator | End () |
| Retrieve the end iterator of the map. More... | |
| ConstIterator | Begin () const |
| Retrieve the begin iterator of the map. More... | |
| ConstIterator | End () const |
| Retrieve the end iterator of the map. More... | |
| const RecordType * | Find (const KeyType &pKey) const |
| Query a key. More... | |
| RecordType * | Find (const KeyType &pKey) |
| Query a key. More... | |
| const RecordType * | UpperBound (const KeyType &pKey) const |
| Find the key-value pair with the smallest key greater than a specified key. More... | |
| RecordType * | UpperBound (const KeyType &pKey) |
| Find the key-value pair with the smallest key greater than a specified key. More... | |
| ValueType & | operator[] (const KeyType &pKey) |
| Retrieve the reference of the value in the key-value pairs in map. More... | |
| const RecordType * | Minimum () const |
| Retrieve the key-value pair which is the minimum key in map. More... | |
| RecordType * | Minimum () |
| Retrieve the key-value pair which is the minimum key in map. More... | |
| const RecordType * | Maximum () const |
| Retrieve the key-value pair which is the maximum key in map. More... | |
| RecordType * | Maximum () |
| Retrieve the key-value pair which is the maximum key in map. More... | |
Protected Types | |
| typedef FbxRedBlackTree< KeyValuePair, Compare, Allocator > | StorageType |
| Declaration of the storage type used by the map. More... | |
|
protected |
| typedef StorageType::RecordType RecordType |
| typedef StorageType::ConstIteratorType ConstIterator |
|
inline |
|
inline |
|
inline |
Insert a key-value pair.
| pKey | The key. |
| pValue | The value. |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the begin iterator of the map.
Definition at line 145 of file fbxmap.h.
|
inline |
|
inline |
Retrieve the begin iterator of the map.
Definition at line 157 of file fbxmap.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieve the reference of the value in the key-value pairs in map.
| pKey | The key. |
Definition at line 204 of file fbxmap.h.
|
inline |
|
inline |
|
inline |
|
inline |