FbxSimpleMap< Key, Type, Compare > Class Template Reference
#include <fbxmap.h>
template<class Key, class Type, class Compare>
class FbxSimpleMap< Key, Type, Compare >
A simple map class representing a dictionary-like data structure.
Definition at line 255 of file fbxmap.h.
void Add |
( |
const Key & |
pKey, |
|
|
const Type & |
pValue |
|
) |
| |
|
inline |
Add a key-value pair as an element.
- Parameters
-
pKey | The new key. |
pValue | The new value. |
Definition at line 263 of file fbxmap.h.
265 mMap.Insert(pKey, pValue);
Find an element with a given key.
- Parameters
-
- Returns
- The iterator pointing to the found element or NULL if fails.
Definition at line 271 of file fbxmap.h.
FbxMap< Key, Type, Compare >::RecordType * Iterator
Iterator Find |
( |
const Type & |
pValue | ) |
const |
|
inline |
Find an element with a given value.
- Parameters
-
- Returns
- The iterator pointing to the found element or NULL if fails.
Definition at line 279 of file fbxmap.h.
284 if( lIterator->GetValue() == pValue )
288 lIterator =
GetNext(lIterator);
FbxMap< Key, Type, Compare >::RecordType * Iterator
Iterator GetFirst() const
Get the first element.
Iterator GetNext(Iterator pIterator) const
Get the next element of a given element.
Remove an element from the map.
- Parameters
-
pIterator | The given element. |
Definition at line 295 of file fbxmap.h.
297 if( pIterator ) mMap.Remove(pIterator->GetKey());
Get the first element.
- Returns
- The the heading element.
Definition at line 302 of file fbxmap.h.
FbxMap< Key, Type, Compare >::RecordType * Iterator
Get the next element of a given element.
- Parameters
-
pIterator | The given element. |
- Returns
- The next element.
Definition at line 310 of file fbxmap.h.
312 return (
Iterator)pIterator ? pIterator->Successor() : 0;
FbxMap< Key, Type, Compare >::RecordType * Iterator
Remove all of the elements.
Definition at line 316 of file fbxmap.h.
void Reserve |
( |
int |
pSize | ) |
|
|
inline |
Reserve the space for given number elements.
- Parameters
-
Definition at line 323 of file fbxmap.h.
Query the count of elements in the map.
- Returns
- The count of elements.
Definition at line 330 of file fbxmap.h.
332 return mMap.GetSize();
The documentation for this class was generated from the following file: