IEngineObjectPool
Engine/source/console/engineObject.h
Interface for object memory allocation.
Public Static Attributes
Instance of the object pool to use by default.
Public Functions
void *
allocateObject(U32 size TORQUE_TMM_ARGS_DECL)
Allocate a new object memory block of the given size.
freeObject(void * ptr)
Return the member for the object at the given address to the allocator for reuse.
Detailed Description
Interface for object memory allocation.
Public Static Attributes
IEngineObjectPool * DEFAULT
Instance of the object pool to use by default.
Public Functions
allocateObject(U32 size TORQUE_TMM_ARGS_DECL)
Allocate a new object memory block of the given size.
return:
Pointer to a new memory block or NULL on failure.
Reimplemented by: EngineCRuntimeObjectPool
freeObject(void * ptr)
Return the member for the object at the given address to the allocator for reuse.
Parameters:
ptr | Pointer to an object memory block previously allocated with allocateObject(). |
Reimplemented by: EngineCRuntimeObjectPool