fbxarray.h File Reference

#include <fbxsdk/fbxsdk_def.h>
#include <fbxsdk/fbxsdk_nsbegin.h>
#include <fbxsdk/fbxsdk_nsend.h>

Go to the source code of this file.

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.

Detailed Description

Definition in file fbxarray.h.


Function Documentation

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

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

Definition at line 392 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.

Definition at line 402 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 412 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.