A simple map class representing a dictionary-like data structure.
Definition at line 30 of file kfbxpropertymap.h.
#include <kfbxpropertymap.h>
Public Types |
|
typedef KMapDef::RecordType * | kIterator |
Public Member Functions |
|
KFbxMap () | |
Constructor. |
|
void | Add (K const &pKey, T const &pValue) |
Add a key-value pair as an element. |
|
kIterator | Find (K const &pKey) const |
Find an element with a given key. |
|
kIterator | Find (T const &pValue) const |
Find an element with a given value. |
|
void | Remove (kIterator pIterator) |
Remove an element from the map. |
|
kIterator | GetFirst () const |
Get the first element. |
|
kIterator | GetNext (kIterator 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 KMapDef::RecordType* kIterator |
Definition at line 47 of file kfbxpropertymap.h.
KFbxMap | ( | ) | [inline] |
void Add | ( | K const & | pKey, |
T const & | pValue | ||
) | [inline] |
Add a key-value pair as an element.
pKey | The new key. |
pValue | The new value. |
Definition at line 58 of file kfbxpropertymap.h.
{ mMap.Insert(pKey, pValue); }
kIterator Find | ( | K const & | pKey | ) | const [inline] |
Find an element with a given key.
pKey | The given key. |
Definition at line 67 of file kfbxpropertymap.h.
kIterator Find | ( | T const & | pValue | ) | const [inline] |
Find an element with a given value.
pValue | The given value. |
Definition at line 76 of file kfbxpropertymap.h.
void Remove | ( | kIterator | pIterator | ) | [inline] |
Remove an element from the map.
pIterator | The given element. |
Definition at line 93 of file kfbxpropertymap.h.
{ if (pIterator) mMap.Remove( pIterator->GetKey() ); }
kIterator GetFirst | ( | ) | const [inline] |
Get the first element.
Definition at line 101 of file kfbxpropertymap.h.
Get the next element of a given element.
The | given element. |
Definition at line 110 of file kfbxpropertymap.h.
{ return (kIterator)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 125 of file kfbxpropertymap.h.
{ mMap.Reserve( pSize ); }
int GetCount | ( | ) | const [inline] |
Query the count of elements in the map.
Definition at line 133 of file kfbxpropertymap.h.
{ return mMap.GetSize(); }