fbxsdk/core/base/fbxarray.h File Reference
 
 
 
fbxsdk/core/base/fbxarray.h File Reference

File Description

Definition in file fbxarray.h.

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.
template<class T >
void  FbxArrayDelete (FbxArray< T > &pArray)
  Call FbxDelete on each element of the array, and then clear it.
template<class T >
void  FbxArrayDestroy (FbxArray< T > &pArray)
  Call Destroy on each element of the array, and then clear it.
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.

Function Documentation

void FbxArrayFree ( FbxArray< T > &  pArray ) [inline]

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

Definition at line 395 of file fbxarray.h.

{
        for( int i = 0, c = pArray.Size(); i < c; ++i )
        {
                FbxFree(pArray[i]);
        }
        pArray.Clear();
}
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 405 of file fbxarray.h.

{
        for( int i = 0, c = pArray.Size(); i < c; ++i )
        {
                FbxDelete(pArray[i]);
        }
        pArray.Clear();
}
void FbxArrayDestroy ( FbxArray< T > &  pArray ) [inline]

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

Definition at line 415 of file fbxarray.h.

{
        for( int i = 0, c = pArray.Size(); i < c; ++i )
        {
                (pArray[i])->Destroy();
        }
        pArray.Clear();
}
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.