A template class for arrays. More...
#include <kaydaradef.h>
#include <fbsdk/fbversion.h>
#include <assert.h>
#include <string.h>
Go to the source code of this file.
Classes | |
class | FBArrayTemplate< Type > |
Template class to contain an array of items. More... | |
Defines | |
#define | FBSDK_DLL K_DLLIMPORT |
Ensure that FBSDK_DLL is defined only once... | |
#define | FB_DEFINE_ARRAY(DllTag, Type) typedef class DllTag FBArrayTemplate< FB##Type* > FBArray##Type; |
Define an array (template) for a component (discard the FB..). | |
#define | FBImplementArray(DllTag, Type) template class DllTag FBSDKNamespaceFunc( FBArrayTemplate ) < FB##Type* >; |
Implement an array. | |
Typedefs | |
typedef class FBSDK_DLL FBArrayTemplate< bool * > | FBArrayHBool |
Pre-defined common used array types. | |
typedef class FBSDK_DLL FBArrayTemplate< char * > | FBArrayHChar |
typedef class FBSDK_DLL FBArrayTemplate< int * > | FBArrayHkInt |
typedef class FBSDK_DLL FBArrayTemplate< unsigned int * > | FBArrayHkUInt |
typedef class FBSDK_DLL FBArrayTemplate< float * > | FBArrayHkFloat |
typedef class FBSDK_DLL FBArrayTemplate< double * > | FBArrayHkDouble |
typedef class FBSDK_DLL FBArrayTemplate< void * > | FBArrayHVoid |
typedef class FBSDK_DLL FBArrayTemplate< bool > | FBArrayBool |
typedef class FBSDK_DLL FBArrayTemplate< char > | FBArrayChar |
typedef class FBSDK_DLL FBArrayTemplate< int > | FBArrayInt |
typedef class FBSDK_DLL FBArrayTemplate< unsigned int > | FBArrayUInt |
typedef class FBSDK_DLL FBArrayTemplate< float > | FBArrayFloat |
typedef class FBSDK_DLL FBArrayTemplate< double > | FBArrayDouble |
Functions | |
FBSDK_DLL void * | FBRealloc (void *memblock, size_t size) |
General allocation function, actually calling standard function "realloc". | |
FBSDK_DLL void | FBFree (void *memblock) |
General free function, actually calling standard function "free". |
A template class for arrays.
Definition in file fbarray.h.
#define FBSDK_DLL K_DLLIMPORT |
Ensure that FBSDK_DLL is defined only once...
#define FB_DEFINE_ARRAY | ( | DllTag, | |
Type | |||
) | typedef class DllTag FBArrayTemplate< FB##Type* > FBArray##Type; |
Define an array (template) for a component (discard the FB..).
Define a type corresponding to the array in the header file.
DllTag | Associated DLL. |
Type | Type (component) to register as an array (discard the FB). |
#define FBImplementArray | ( | DllTag, | |
Type | |||
) | template class DllTag FBSDKNamespaceFunc( FBArrayTemplate ) < FB##Type* >; |
Implement an array.
Instanciates the template class in the *.cxx file.
DllTag | Associated DLL. |
Type | Type to register as an array. |
typedef class FBSDK_DLL FBArrayTemplate<bool *> FBArrayHBool |
Pre-defined common used array types.
typedef class FBSDK_DLL FBArrayTemplate<char *> FBArrayHChar |
typedef class FBSDK_DLL FBArrayTemplate<int *> FBArrayHkInt |
typedef class FBSDK_DLL FBArrayTemplate<unsigned int *> FBArrayHkUInt |
typedef class FBSDK_DLL FBArrayTemplate<float *> FBArrayHkFloat |
typedef class FBSDK_DLL FBArrayTemplate<double *> FBArrayHkDouble |
typedef class FBSDK_DLL FBArrayTemplate<void *> FBArrayHVoid |
typedef class FBSDK_DLL FBArrayTemplate<bool> FBArrayBool |
typedef class FBSDK_DLL FBArrayTemplate<char> FBArrayChar |
typedef class FBSDK_DLL FBArrayTemplate<int> FBArrayInt |
typedef class FBSDK_DLL FBArrayTemplate<unsigned int> FBArrayUInt |
typedef class FBSDK_DLL FBArrayTemplate<float> FBArrayFloat |
typedef class FBSDK_DLL FBArrayTemplate<double> FBArrayDouble |
FBSDK_DLL void* FBRealloc | ( | void * | memblock, |
size_t | size | ||
) |
General allocation function, actually calling standard function "realloc".
memblock | Memory block to reallocate. |
size | Size of block to allocate |
FBSDK_DLL void FBFree | ( | void * | memblock | ) |
General free function, actually calling standard function "free".
memblock | Memory block to free. |