FBX C++ API Reference
fbxarray.h File Reference

Go to the source code of this file.

Classes

class  FbxArray< T, Alignment >
 Class for array of basic elements such as pointers and basic types. More...
 
struct  FbxArray< T, Alignment >::tData
 

Macros

#define FBX_THROW(x)   FBX_ASSERT_NOW(x)
 
#define FBX_ARRAY_INLINE   inline
 

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...
 

Macro Definition Documentation

#define FBX_THROW (   x)    FBX_ASSERT_NOW(x)

Definition at line 29 of file fbxarray.h.

#define FBX_ARRAY_INLINE   inline

Definition at line 30 of 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 608 of file fbxarray.h.

609 {
610  for( int i = 0, c = pArray.Size(); i < c; ++i )
611  {
612  FbxFree(pArray[i]);
613  }
614  pArray.Clear();
615 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:148
void Clear()
Reset the number of element to zero and free the memory allocated.
Definition: fbxarray.h:490
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 618 of file fbxarray.h.

619 {
620  for( int i = 0, c = pArray.Size(); i < c; ++i )
621  {
622  FbxDelete(pArray[i]);
623  }
624  pArray.Clear();
625 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:148
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:490
void FbxArrayDestroy ( FbxArray< T > &  pArray)
inline

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

Definition at line 628 of file fbxarray.h.

629 {
630  for( int i = 0, c = pArray.Size(); i < c; ++i )
631  {
632  (pArray[i])->Destroy();
633  }
634  pArray.Clear();
635 }
int Size() const
Retrieve the number of element contained in the array.
Definition: fbxarray.h:148
void Clear()
Reset the number of element to zero and free the memory allocated.
Definition: fbxarray.h:490
FBXSDK_INCOMPATIBLE_WITH_ARRAY_TEMPLATE ( FbxArray< T >  )

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