FbxMultiMap Class Reference
#include <fbxmultimap.h>
Class to manipulate a map that can contain multiple times the same key.
Definition at line 22 of file fbxmultimap.h.
|
bool | Add (FbxHandle pKey, FbxHandle pItem) |
| If can't find the matching item,append a item at the end of the array. More...
|
|
bool | Remove (FbxHandle pKey) |
| Remove the first matching item, whose reference is the same as given. More...
|
|
bool | RemoveItem (FbxHandle pItem) |
| Remove all the matching item, whose item is the same as given. More...
|
|
bool | SetItem (FbxHandle pKey, FbxHandle pItem) |
| Set first matching item with the given parameter. More...
|
|
FbxHandle | Get (FbxHandle pKey, int *pIndex=((void *) 0)) |
| Get first matching item with the given parameter. More...
|
|
void | Clear () |
| Delete the array. More...
|
|
FbxHandle | GetFromIndex (int pIndex, FbxHandle *pKey=((void *) 0)) |
| Get the item of the given index. More...
|
|
bool | RemoveFromIndex (int pIndex) |
| Remove the item of the given index. More...
|
|
int | GetCount () const |
| Get number of items in the array. More...
|
|
void | Swap () |
| Swap the value of Key and Item in every item of array, and sort the new array with the value of Key. More...
|
|
void | Sort () |
| Sort the array according the value of Key in each item. More...
|
|
bool Add |
( |
FbxHandle |
pKey, |
|
|
FbxHandle |
pItem |
|
) |
| |
If can't find the matching item,append a item at the end of the array.
If find the matching item ,insert the new item before the matching item.
- Parameters
-
pKey | The value of Key in new item, also is the character for matching. |
pItem | The value of Item in new item. |
- Returns
- If add successfully return true,otherwise return false.
bool Remove |
( |
FbxHandle |
pKey | ) |
|
Remove the first matching item, whose reference is the same as given.
- Parameters
-
- Returns
- If remove successfully return true,otherwise return false.
bool RemoveItem |
( |
FbxHandle |
pItem | ) |
|
Remove all the matching item, whose item is the same as given.
- Parameters
-
- Returns
- If remove successfully return true,otherwise return false.
bool SetItem |
( |
FbxHandle |
pKey, |
|
|
FbxHandle |
pItem |
|
) |
| |
Set first matching item with the given parameter.
- Parameters
-
pKey | The character for matching. |
pItem | The value of Item that the matching item will be set. |
- Returns
- If set successfully return true,otherwise return false.
FbxHandle Get |
( |
FbxHandle |
pKey, |
|
|
int * |
pIndex = ((void *) 0) |
|
) |
| |
Get first matching item with the given parameter.
- Parameters
-
pKey | The character for matching. |
pIndex | The pointer to the index of the matching item. |
- Returns
- The value of Item in the matching item.
FbxHandle GetFromIndex |
( |
int |
pIndex, |
|
|
FbxHandle * |
pKey = ((void *) 0) |
|
) |
| |
Get the item of the given index.
- Parameters
-
pIndex | The index for matching. |
pKey | The pointer to the Key of the matching item. |
- Returns
- The value of Item in the matching item.
bool RemoveFromIndex |
( |
int |
pIndex | ) |
|
Remove the item of the given index.
- Parameters
-
- Returns
- If remove successfully return true,otherwise return false.
Get number of items in the array.
- Returns
- The number of items in the array.
Definition at line 84 of file fbxmultimap.h.
Swap the value of Key and Item in every item of array, and sort the new array with the value of Key.
Sort the array according the value of Key in each item.
The documentation for this class was generated from the following file: