This reference page is linked to from the following overview topics: FBX SDK 2013, Managing Memory with the FBX SDK Manager.
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... |
|
Defines |
|
| #define | FBXSDK_MEMORY_ALIGNMENT ((size_t)8U) |
Typedefs |
|
| typedef void *(* | FbxMallocProc )(size_t) |
| typedef void *(* | FbxCallocProc )(size_t, size_t) |
| Function pointer signature used to replace
"malloc". |
|
| typedef void *(* | FbxReallocProc )(void *, size_t) |
| Function pointer signature used to replace
"calloc". |
|
| typedef void(* | FbxFreeProc )(void *) |
| Function pointer signature used to replace
"realloc". |
|
Functions |
|
| FBXSDK_DLL void | FbxSetMallocHandler (FbxMallocProc pHandler) |
| Function pointer signature used to replace
"free". |
|
| FBXSDK_DLL void | FbxSetCallocHandler (FbxCallocProc pHandler) |
| Set the global zero'd memory allocation
function used internally by the FBX SDK. |
|
| FBXSDK_DLL void | FbxSetReallocHandler (FbxReallocProc pHandler) |
| Set the global memory re-allocation function
used internally by the FBX SDK. |
|
| FBXSDK_DLL void | FbxSetFreeHandler (FbxFreeProc pHandler) |
| Set the global memory freeing function used
internally by the FBX SDK. |
|
| 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. |
|
| #define FBXSDK_MEMORY_ALIGNMENT ((size_t)8U) |
Definition at line 39 of file fbxalloc.h.
| typedef void*(* FbxMallocProc)(size_t) |
Definition at line 41 of file fbxalloc.h.
| typedef void*(* FbxCallocProc)(size_t, size_t) |
Function pointer signature used to replace "malloc".
Definition at line 42 of file fbxalloc.h.
| typedef void*(* FbxReallocProc)(void *, size_t) |
Function pointer signature used to replace "calloc".
Definition at line 43 of file fbxalloc.h.
| typedef void(* FbxFreeProc)(void *) |
Function pointer signature used to replace "realloc".
Definition at line 44 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.