A simple map class representing a dictionary-like data structure.
Definition at line 27 of file fbxpropertymap.h.
#include <fbxpropertymap.h>

Public Types |
|
| typedef FbxMapExtDef::RecordType * | Iterator |
Public Member Functions |
|
| FbxMapExt () | |
| Constructor. |
|
| void | Add (const K &pKey, const T &pValue) |
| Add a key-value pair as an element. |
|
| Iterator | Find (const K &pKey) const |
| Find an element with a given key. |
|
| Iterator | Find (const T &pValue) const |
| Find an element with a given value. |
|
| void | Remove (Iterator pIterator) |
| Remove an element from the map. |
|
| Iterator | GetFirst () const |
| Get the first element. |
|
| Iterator | GetNext (Iterator pIterator) const |
| Get the next element of a given element.
|
|
| void | Clear () |
| Remove all of the elements. |
|
| void | Reserve (int pSize) |
| Reserve the space for given number elements.
|
|
| int | GetCount () const |
| Query the count of elements in the map.
|
|
| typedef FbxMapExtDef::RecordType* Iterator |
Definition at line 44 of file fbxpropertymap.h.
| FbxMapExt | ( | ) | [inline] |
| void Add | ( | const K & | pKey, |
| const T & | pValue | ||
| ) | [inline] |
Add a key-value pair as an element.
| pKey | The new key. |
| pValue | The new value. |
Definition at line 55 of file fbxpropertymap.h.
{
mMap.Insert(pKey, pValue);
}
| Iterator Find | ( | const K & | pKey | ) | const [inline] |
Find an element with a given key.
| pKey | The given key. |
Definition at line 64 of file fbxpropertymap.h.
| Iterator Find | ( | const T & | pValue | ) | const [inline] |
Find an element with a given value.
| pValue | The given value. |
Definition at line 73 of file fbxpropertymap.h.
| void Remove | ( | Iterator | pIterator | ) | [inline] |
Remove an element from the map.
| pIterator | The given element. |
Definition at line 90 of file fbxpropertymap.h.
{
if (pIterator) mMap.Remove( pIterator->GetKey() );
}
| Iterator GetFirst | ( | ) | const [inline] |
Get the first element.
Definition at line 98 of file fbxpropertymap.h.
Get the next element of a given element.
| The | given element. |
Definition at line 107 of file fbxpropertymap.h.
{
return (Iterator)pIterator ? pIterator->Successor() : 0;
}
| void Clear | ( | ) | [inline] |
| void Reserve | ( | int | pSize | ) | [inline] |
Reserve the space for given number elements.
| pSize | The given number. |
Definition at line 122 of file fbxpropertymap.h.
{
mMap.Reserve( pSize );
}
| int GetCount | ( | ) | const [inline] |
Query the count of elements in the map.
Definition at line 130 of file fbxpropertymap.h.
{
return mMap.GetSize();
}