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... | |
Macros | |
#define | FBSDK_DLL K_DLLIMPORT |
Ensure that FBSDK_DLL is defined only once... More... | |
#define | FB_DEFINE_ARRAY(DllTag, Type) typedef class DllTag FBArrayTemplate< FB##Type* > FBArray##Type; |
Define an array (template) for a component (discard the FB..). More... | |
#define | FBImplementArray(DllTag, Type) template class DllTag FBSDKNamespaceFunc( FBArrayTemplate ) < FB##Type* >; |
Implement an array. More... | |
Typedefs | |
typedef class K_DLLIMPORT FBArrayTemplate< bool * > | FBArrayHBool |
Pre-defined common used array types. More... | |
typedef class K_DLLIMPORT FBArrayTemplate< char * > | FBArrayHChar |
typedef class K_DLLIMPORT FBArrayTemplate< int * > | FBArrayHkInt |
typedef class K_DLLIMPORT FBArrayTemplate< unsigned int * > | FBArrayHkUInt |
typedef class K_DLLIMPORT FBArrayTemplate< float * > | FBArrayHkFloat |
typedef class K_DLLIMPORT FBArrayTemplate< double * > | FBArrayHkDouble |
typedef class K_DLLIMPORT FBArrayTemplate< void * > | FBArrayHVoid |
typedef class K_DLLIMPORT FBArrayTemplate< bool > | FBArrayBool |
typedef class K_DLLIMPORT FBArrayTemplate< char > | FBArrayChar |
typedef class K_DLLIMPORT FBArrayTemplate< int > | FBArrayInt |
typedef class K_DLLIMPORT FBArrayTemplate< unsigned int > | FBArrayUInt |
typedef class K_DLLIMPORT FBArrayTemplate< float > | FBArrayFloat |
typedef class K_DLLIMPORT FBArrayTemplate< double > | FBArrayDouble |
Functions | |
K_DLLIMPORT void * | FBRealloc (void *memblock, size_t size) |
General allocation function, actually calling standard function "realloc". More... | |
K_DLLIMPORT void | FBFree (void *memblock) |
General free function, actually calling standard function "free". More... | |
A template class for arrays.
Definition in file fbarray.h.
#define FB_DEFINE_ARRAY | ( | DllTag, | |
Type | |||
) | typedef class DllTag FBArrayTemplate< FB##Type* > FBArray##Type; |
#define FBImplementArray | ( | DllTag, | |
Type | |||
) | template class DllTag FBSDKNamespaceFunc( FBArrayTemplate ) < FB##Type* >; |
#define FBSDK_DLL K_DLLIMPORT |
typedef class K_DLLIMPORT FBArrayTemplate<bool> FBArrayBool |
typedef class K_DLLIMPORT FBArrayTemplate<char> FBArrayChar |
typedef class K_DLLIMPORT FBArrayTemplate<double> FBArrayDouble |
typedef class K_DLLIMPORT FBArrayTemplate<float> FBArrayFloat |
typedef class K_DLLIMPORT FBArrayTemplate<bool *> FBArrayHBool |
typedef class K_DLLIMPORT FBArrayTemplate<char *> FBArrayHChar |
typedef class K_DLLIMPORT FBArrayTemplate<double *> FBArrayHkDouble |
typedef class K_DLLIMPORT FBArrayTemplate<float *> FBArrayHkFloat |
typedef class K_DLLIMPORT FBArrayTemplate<int *> FBArrayHkInt |
typedef class K_DLLIMPORT FBArrayTemplate<unsigned int *> FBArrayHkUInt |
typedef class K_DLLIMPORT FBArrayTemplate<void *> FBArrayHVoid |
typedef class K_DLLIMPORT FBArrayTemplate<int> FBArrayInt |
typedef class K_DLLIMPORT FBArrayTemplate<unsigned int> FBArrayUInt |
K_DLLIMPORT void FBFree | ( | void * | memblock | ) |
General free function, actually calling standard function "free".
memblock | Memory block to free. |
Referenced by FBArrayTemplate< Type >::Clear().
K_DLLIMPORT 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 |
Referenced by FBArrayTemplate< Type >::InsertAt(), and FBArrayTemplate< Type >::SetCount().