![]() |
XII Release 0.1.0
|
Default implementation of xiiRTTIAllocator that allocates instances via the given allocator. More...
#include <RTTI.h>
Public Member Functions | |
virtual xiiInternal::NewInstance< void > | AllocateInternal (xiiAllocatorBase *pAllocator) override |
Returns a new instance that was allocated with the given allocator. | |
virtual xiiInternal::NewInstance< void > | CloneInternal (const void *pObject, xiiAllocatorBase *pAllocator) override |
Clones the given instance with the given allocator. | |
virtual void | Deallocate (void *pObject, xiiAllocatorBase *pAllocator) override |
Deletes the given instance with the given allocator. | |
![]() | |
virtual bool | CanAllocate () const |
Returns whether the type that is represented by this allocator, can be dynamically allocated at runtime. | |
template<typename T> | |
xiiInternal::NewInstance< T > | Allocate (xiiAllocatorBase *pAllocator=nullptr) |
Allocates one instance. | |
template<typename T> | |
xiiInternal::NewInstance< T > | Clone (const void *pObject, xiiAllocatorBase *pAllocator=nullptr) |
Clones the given instance. | |
Default implementation of xiiRTTIAllocator that allocates instances via the given allocator.
|
inlineoverridevirtual |
Returns a new instance that was allocated with the given allocator.
Implements xiiRTTIAllocator.
|
inlineoverridevirtual |
Clones the given instance with the given allocator.
Reimplemented from xiiRTTIAllocator.
|
inlineoverridevirtual |
Deletes the given instance with the given allocator.
Implements xiiRTTIAllocator.