FBX C++ API Reference
fbxarray.h File Reference

Classes

class  FbxArray< T >
 Class for array of basic elements such as pointers and basic types. More...
 

Functions

template<class T >
void FbxArrayFree (FbxArray< T > &pArray)
 Call FbxFree on each element of the array, and then clear it. More...
 
template<class T >
void FbxArrayDelete (FbxArray< T > &pArray)
 Call FbxDelete on each element of the array, and then clear it. More...
 
template<class T >
void FbxArrayDestroy (FbxArray< T > &pArray)
 Call Destroy on each element of the array, and then clear it. More...
 
template<class T >
 FBXSDK_INCOMPATIBLE_WITH_ARRAY_TEMPLATE (FbxArray< T >)
 Make sure to break build if someone try to make FbxArray<FbxArray<T>>, which is not supported. More...
 

Function Documentation

◆ FbxArrayFree()

void FbxArrayFree ( FbxArray< T > &  pArray)
inline

Call FbxFree on each element of the array, and then clear it.

Definition at line 455 of file fbxarray.h.

456 {
457  for( int i = 0, c = pArray.Size(); i < c; ++i )
458  {
459  FbxFree(pArray[i]);
460  }
461  pArray.Clear();
462 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:108
void Clear()
Reset the number of element to zero and free the memory allocated.
Definition: fbxarray.h:352

◆ FbxArrayDelete()

void FbxArrayDelete ( FbxArray< T > &  pArray)
inline

Call FbxDelete on each element of the array, and then clear it.

Examples:
ViewScene/SceneContext.cxx.

Definition at line 465 of file fbxarray.h.

466 {
467  for( int i = 0, c = pArray.Size(); i < c; ++i )
468  {
469  FbxDelete(pArray[i]);
470  }
471  pArray.Clear();
472 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:108
void FbxDelete(T *p)
Deletion policy for pointer template classes that uses the FbxDelete() function.
Definition: fbxnew.h:341
void Clear()
Reset the number of element to zero and free the memory allocated.
Definition: fbxarray.h:352

◆ FbxArrayDestroy()

void FbxArrayDestroy ( FbxArray< T > &  pArray)
inline

Call Destroy on each element of the array, and then clear it.

Definition at line 475 of file fbxarray.h.

476 {
477  for( int i = 0, c = pArray.Size(); i < c; ++i )
478  {
479  (pArray[i])->Destroy();
480  }
481  pArray.Clear();
482 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:108
void Clear()
Reset the number of element to zero and free the memory allocated.
Definition: fbxarray.h:352

◆ FBXSDK_INCOMPATIBLE_WITH_ARRAY_TEMPLATE()

FBXSDK_INCOMPATIBLE_WITH_ARRAY_TEMPLATE ( FbxArray< T >  )

Make sure to break build if someone try to make FbxArray<FbxArray<T>>, which is not supported.

Go to the source code of this file.