#include <fbxsdk/fbxsdk_def.h>
#include <malloc.h>
#include <fbxsdk/fbxsdk_nsbegin.h>
#include <fbxsdk/fbxsdk_nsend.h>
Allocation functions definition.
It is possible to override memory allocation functions throughout the FBX SDK by providing system memory allocation functions using the handler set functions below. The Microsoft Windows implementation in debug mode allows to specify where the allocations happen by providing the standard block type, file name and line number.
Definition in file fbxalloc.h.
Classes | |
class | FbxDeletionPolicyDefault< Type > |
Deletion policy for pointer template classes that uses the delete operator. More... | |
class | FbxDeletionPolicyDelete< Type > |
Deletion policy for pointer template classes that uses the FbxDelete() function. More... | |
class | FbxDeletionPolicyFree< Type > |
Deletion policy for pointer template classes that uses the FbxFree() function. More... | |
class | FbxDeletionPolicyObject< Type > |
Deletion policy for pointer template classes that uses the Destroy() function. More... | |
class | FbxAutoPtr< Type, Policy > |
FbxAutoPtr mimics the auto_ptr class template implementation available in the C++ Standard Library. More... | |
class | FbxAutoFreePtr< Type > |
Scoped pointer for FbxMalloc allocations, which call FbxFree() to deallocate. More... | |
class | FbxAutoDeletePtr< Type > |
Scoped pointer for FbxNew allocations, which call FbxDelete() to deallocate. More... | |
class | FbxAutoDestroyPtr< Type > |
Scoped pointer for FbxObject derived classes, which call Destroy() to deallocate. More... | |
class | RefCount |
FbxSharedPtr class describes an object that stores a pointer to a single allocated object of type Type* that ensures that the object to which it points gets destroyed automatically when the control leaves a scope and the reference count is 0. More... | |
class | FbxSharedPtr< Type, Policy > |
class | FbxSharedFreePtr< Type > |
Scoped pointer for FbxMalloc allocations, which call FbxFree() to deallocate. More... | |
class | FbxSharedDeletePtr< Type > |
Scoped pointer for FbxNew allocations, which call FbxDelete() to deallocate. More... | |
class | FbxSharedDestroyPtr< Type > |
Scoped pointer for FbxObject derived classes, which call Destroy() to deallocate. More... | |
Macros | |
#define | FBXSDK_MEMORY_ALIGNMENT ((size_t)16U) |
#define | FBXSDK_MEMORY_COPY(dst, src, size) {memcpy(dst,src,size);} |
Typedefs | |
typedef void *(* | FbxMallocProc )(size_t) |
typedef void *(* | FbxCallocProc )(size_t, size_t) |
Function pointer signature used to replace "malloc". More... | |
typedef void *(* | FbxReallocProc )(void *, size_t) |
Function pointer signature used to replace "calloc". More... | |
typedef void(* | FbxFreeProc )(void *) |
Function pointer signature used to replace "realloc". More... | |
Functions | |
FBXSDK_DLL void | FbxSetMallocHandler (FbxMallocProc pHandler) |
Function pointer signature used to replace "free". More... | |
FBXSDK_DLL void | FbxSetCallocHandler (FbxCallocProc pHandler) |
Set the global zero'd memory allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL void | FbxSetReallocHandler (FbxReallocProc pHandler) |
Set the global memory re-allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL void | FbxSetFreeHandler (FbxFreeProc pHandler) |
Set the global memory freeing function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxMallocProc | FbxGetMallocHandler () |
Get the global memory allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxCallocProc | FbxGetCallocHandler () |
Get the global zero'd memory allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxReallocProc | FbxGetReallocHandler () |
Get the global memory re-allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxFreeProc | FbxGetFreeHandler () |
Get the global memory freeing function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxMallocProc | FbxGetDefaultMallocHandler () |
Get the default global memory allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxCallocProc | FbxGetDefaultCallocHandler () |
Get the default global zero'd memory allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxReallocProc | FbxGetDefaultReallocHandler () |
Get the default global memory re-allocation function used internally by the FBX SDK. More... | |
FBXSDK_DLL FbxFreeProc | FbxGetDefaultFreeHandler () |
Get the default global memory freeing function used internally by the FBX SDK. More... | |
#define FBXSDK_MEMORY_ALIGNMENT ((size_t)16U) |
Definition at line 40 of file fbxalloc.h.
#define FBXSDK_MEMORY_COPY | ( | dst, | |
src, | |||
size | |||
) | {memcpy(dst,src,size);} |
Definition at line 43 of file fbxalloc.h.
typedef void*(* FbxMallocProc)(size_t) |
Definition at line 45 of file fbxalloc.h.
typedef void*(* FbxCallocProc)(size_t, size_t) |
Function pointer signature used to replace "malloc".
Definition at line 46 of file fbxalloc.h.
typedef void*(* FbxReallocProc)(void *, size_t) |
Function pointer signature used to replace "calloc".
Definition at line 47 of file fbxalloc.h.
typedef void(* FbxFreeProc)(void *) |
Function pointer signature used to replace "realloc".
Definition at line 48 of file fbxalloc.h.
FBXSDK_DLL void FbxSetMallocHandler | ( | FbxMallocProc | pHandler | ) |
Function pointer signature used to replace "free".
Set the global memory allocation function used internally by the FBX SDK.
pHandler | Function pointer that implements the necessary procedure to allocate memory in the system. |
FBXSDK_DLL void FbxSetCallocHandler | ( | FbxCallocProc | pHandler | ) |
Set the global zero'd memory allocation function used internally by the FBX SDK.
pHandler | Function pointer that implements the necessary procedure to allocate zero'd memory in the system. |
FBXSDK_DLL void FbxSetReallocHandler | ( | FbxReallocProc | pHandler | ) |
Set the global memory re-allocation function used internally by the FBX SDK.
pHandler | Function pointer that implements the necessary procedure to re-allocate memory in the system. |
FBXSDK_DLL void FbxSetFreeHandler | ( | FbxFreeProc | pHandler | ) |
Set the global memory freeing function used internally by the FBX SDK.
pHandler | Function pointer that implements the necessary procedure to free memory in the system. |
FBXSDK_DLL FbxMallocProc FbxGetMallocHandler | ( | ) |
Get the global memory allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxCallocProc FbxGetCallocHandler | ( | ) |
Get the global zero'd memory allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxReallocProc FbxGetReallocHandler | ( | ) |
Get the global memory re-allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxFreeProc FbxGetFreeHandler | ( | ) |
Get the global memory freeing function used internally by the FBX SDK.
FBXSDK_DLL FbxMallocProc FbxGetDefaultMallocHandler | ( | ) |
Get the default global memory allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxCallocProc FbxGetDefaultCallocHandler | ( | ) |
Get the default global zero'd memory allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxReallocProc FbxGetDefaultReallocHandler | ( | ) |
Get the default global memory re-allocation function used internally by the FBX SDK.
FBXSDK_DLL FbxFreeProc FbxGetDefaultFreeHandler | ( | ) |
Get the default global memory freeing function used internally by the FBX SDK.