TrinityCore
|
#include <MemoryManager.h>
Public Types | |
typedef shared_ptr< class MemoryManager > | Ref |
Public Types inherited from G3D::MemoryManager | |
typedef shared_ptr< class MemoryManager > | Ref |
Public Member Functions | |
virtual void * | alloc (size_t s) |
virtual void | free (void *ptr) |
virtual bool | isThreadsafe () const |
Public Member Functions inherited from G3D::ReferenceCountedObject | |
virtual | ~ReferenceCountedObject () |
Static Public Member Functions | |
static CRTMemoryManager::Ref | create () |
Static Public Member Functions inherited from G3D::MemoryManager | |
static MemoryManager::Ref | create () |
Protected Member Functions | |
CRTMemoryManager () | |
Protected Member Functions inherited from G3D::MemoryManager | |
MemoryManager () | |
A MemoryManager implemented using the C runtime. Not recommended for general use; this is largely for debugging.
typedef shared_ptr<class MemoryManager> G3D::CRTMemoryManager::Ref |
|
protected |
|
virtual |
Return a pointer to s bytes of memory that are unused by the rest of the program. The contents of the memory are undefined
Reimplemented from G3D::MemoryManager.
|
static |
There's only one instance of this memory manager; it is cached after the first creation.
|
virtual |
Invoke to declare that this memory will no longer be used by the program. The memory manager is not required to actually reuse or release this memory.
Reimplemented from G3D::MemoryManager.
|
virtual |
Returns true if this memory manager is threadsafe (i.e., alloc and free can be called asychronously)
Reimplemented from G3D::MemoryManager.