FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FbxCharPtrSet Class Reference

#include <fbxcharptrset.h>

Class Description

This class contains the data structure support for char pointer set.

Definition at line 22 of file fbxcharptrset.h.

Public Member Functions

 FbxCharPtrSet (int pItemPerBlock=20)
 Class constructor. More...
 
 ~FbxCharPtrSet ()
 Class destructor. More...
 
void Add (const char *pReference, FbxHandle pItem)
 Add a new item. More...
 
bool Remove (const char *pReference)
 Removes an item. More...
 
FbxHandle Get (const char *pReference, int *PIndex=((void *) 0))
 Get an item's reference. More...
 
FbxHandle & operator[] (int pIndex)
 Get an item's reference from index. More...
 
FbxHandle GetFromIndex (int pIndex, const char **pReference=((void *) 0))
 Get an item's reference from index. More...
 
void RemoveFromIndex (int pIndex)
 Removes an item by index. More...
 
int GetCount () const
 Get the number of item in the array. More...
 
void Sort ()
 Sorts the array. More...
 
void Clear ()
 Clears the array. More...
 

Constructor & Destructor Documentation

◆ FbxCharPtrSet()

FbxCharPtrSet ( int  pItemPerBlock = 20)

Class constructor.

Parameters
pItemPerBlockNumber of item per block. Default is 20.

◆ ~FbxCharPtrSet()

Class destructor.

Member Function Documentation

◆ Add()

void Add ( const char *  pReference,
FbxHandle  pItem 
)

Add a new item.

Parameters
pReferencechar pointer reference to the item.
pItemFbxHandle to the item.

◆ Remove()

bool Remove ( const char *  pReference)

Removes an item.

Parameters
pReferencechar reference to the item.
Returns
true if successful.

◆ Get()

FbxHandle Get ( const char *  pReference,
int *  PIndex = ((void *) 0) 
)

Get an item's reference.

Parameters
pReferencechar reference to the item.
PIndexindex to the item.
Returns
FbxHandle to the item, NULL if fails.

◆ operator[]()

FbxHandle& operator[] ( int  pIndex)

Get an item's reference from index.

Parameters
pIndexindex to the item.
Returns
FbxHandle to the item, NULL if fails.

◆ GetFromIndex()

FbxHandle GetFromIndex ( int  pIndex,
const char **  pReference = ((void *) 0) 
)

Get an item's reference from index.

Parameters
pIndexindex to the item.
pReferencechar reference to the item.
Returns
FbxHandle to the item, NULL if fails.

◆ RemoveFromIndex()

void RemoveFromIndex ( int  pIndex)

Removes an item by index.

Parameters
pIndexindex to the item.

◆ GetCount()

int GetCount ( ) const
inline

Get the number of item in the array.

Returns
the number of element in the set.

Definition at line 65 of file fbxcharptrset.h.

65 { return mCharPtrSetCount; }

◆ Sort()

void Sort ( )

Sorts the array.

◆ Clear()

void Clear ( )

Clears the array.


The documentation for this class was generated from the following file: