karrayul.h File Reference

#include <fbxfilesdk/fbxfilesdk_def.h>
#include <fbxfilesdk/components/kbaselib/klib/kdebug.h>
#include <fbxfilesdk/fbxfilesdk_nsbegin.h>
#include <fbxfilesdk/fbxfilesdk_nsend.h>

Go to the source code of this file.

Classes

class   KBaseStaticArray< Type >
class   KStaticArray< Type, Count >
class   KStaticArray2d< Type, Count1, Count2 >
class   KBaseArraySize
class   KBaseArray< TypeSize >
  Template version base class used to store an array of fixed-size elements. More...
struct   KBaseArray< TypeSize >::KHeader
class   KBaseArrayFast< TypeSize >
  A fast implementation of KBaseArray. More...
struct   KBaseArrayFast< TypeSize >::KHeader
class   KArrayTemplate< Type >
  Class for array of elements such as pointers and plain old data structures. More...

Defines

#define  KFBX_ARRAYUL_BLOCKSIZE   4

Typedefs

typedef class KFBX_DLL
KArrayTemplate< int * > 
KArrayHkInt
typedef class KFBX_DLL
KArrayTemplate< kUInt * > 
KArrayHkUInt
typedef class KFBX_DLL
KArrayTemplate< double * > 
KArrayHkDouble
typedef class KFBX_DLL
KArrayTemplate< float * > 
KArrayHkFloat
typedef class KFBX_DLL
KArrayTemplate< void * > 
KArrayVoid
typedef class KFBX_DLL
KArrayTemplate< char * > 
KArrayChar
typedef class KFBX_DLL
KArrayTemplate< int > 
KIntArray
typedef class KFBX_DLL
KArrayTemplate< kUInt
KUIntArray
typedef class KFBX_DLL
KArrayTemplate< float > 
KFloatArray
typedef class KFBX_DLL
KArrayTemplate< double > 
KDoubleArray
typedef class KFBX_DLL
KArrayTemplate< kReference
KArrayUL

Functions

KFBX_DLL void  KBaseArrayFree (char *)
KFBX_DLL char *  KBaseArrayRealloc (char *, size_t)
KFBX_DLL void *  KBaseArrayGetAlloc ()
template<class Type >
  KFBX_INCOMPATIBLE_WITH_KARRAYTEMPLATE_TEMPLATE (KArrayTemplate< Type >)
template<class Type >
void  FbxSdkDeleteAndClear (KArrayTemplate< Type > &Array)
template<class Type >
void  DeleteAndClear (KArrayTemplate< Type > &Array)

Detailed Description

Definition in file karrayul.h.


Define Documentation

#define KFBX_ARRAYUL_BLOCKSIZE   4

Definition at line 45 of file karrayul.h.


Typedef Documentation

typedef class KFBX_DLL KArrayTemplate<int *> KArrayHkInt

Definition at line 1225 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<kUInt *> KArrayHkUInt

Definition at line 1226 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<double *> KArrayHkDouble

Definition at line 1227 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<float *> KArrayHkFloat

Definition at line 1228 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<void *> KArrayVoid

Definition at line 1229 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<char *> KArrayChar

Definition at line 1230 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<int> KIntArray

Definition at line 1231 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<kUInt> KUIntArray

Definition at line 1232 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<float> KFloatArray

Definition at line 1233 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<double> KDoubleArray

Definition at line 1234 of file karrayul.h.

typedef class KFBX_DLL KArrayTemplate<kReference> KArrayUL

Definition at line 1236 of file karrayul.h.


Function Documentation

KFBX_DLL void KBaseArrayFree ( char *  )
KFBX_DLL char* KBaseArrayRealloc ( char *  ,
size_t   
)
KFBX_DLL void* KBaseArrayGetAlloc ( )
KFBX_INCOMPATIBLE_WITH_KARRAYTEMPLATE_TEMPLATE ( KArrayTemplate< Type >  )
void FbxSdkDeleteAndClear ( KArrayTemplate< Type > &  Array ) [inline]
Examples:
ViewScene/main.cxx.

Definition at line 1187 of file karrayul.h.

    {
        kUInt lItemCount = Array.GetCount();
        while( lItemCount )
        {
            lItemCount--;
            Type& Item = (Array.operator[](lItemCount));
            FbxSdkDelete(Item);
            Item = NULL;
        }
        Array.Clear();
    }
void DeleteAndClear ( KArrayTemplate< Type > &  Array ) [inline]

Definition at line 1200 of file karrayul.h.

    {
        kUInt lItemCount = Array.GetCount();
        while( lItemCount )
        {
            lItemCount--;
            Type& Item = (Array.operator[](lItemCount));
            delete Item;
            Item = NULL;
        }
        Array.Clear();
    }