![]() |
Plasma Engine
2.0
|
The interface for an allocator that creates instances of reflected types. More...
#include <RTTI.h>
Public Member Functions | |
virtual bool | CanAllocate () const |
Returns whether the type that is represented by this allocator, can be dynamically allocated at runtime. | |
template<typename T > | |
plInternal::NewInstance< T > | Allocate (plAllocator *pAllocator=nullptr) |
Allocates one instance. | |
template<typename T > | |
plInternal::NewInstance< T > | Clone (const void *pObject, plAllocator *pAllocator=nullptr) |
Clones the given instance. | |
virtual void | Deallocate (void *pObject, plAllocator *pAllocator=nullptr)=0 |
Deallocates the given instance. | |
The interface for an allocator that creates instances of reflected types.
|
privatepure virtual |
Implemented in plRTTIDefaultAllocator< CLASS, AllocatorWrapper >, and plRTTINoAllocator.
|
inlinevirtual |
Returns whether the type that is represented by this allocator, can be dynamically allocated at runtime.
Reimplemented in plRTTINoAllocator.
|
inlineprivatevirtual |
Reimplemented in plRTTIDefaultAllocator< CLASS, AllocatorWrapper >.
|
pure virtual |
Deallocates the given instance.
Implemented in plRTTIDefaultAllocator< CLASS, AllocatorWrapper >, plRTTINoAllocator, and plVisualScriptCoroutineAllocator.