![]() |
ezEngine Release 26.3
|
Standard RTTI allocator that creates instances using ezEngine's allocator system. More...
#include <RTTI.h>

Public Member Functions | |
| virtual ezInternal::NewInstance< void > | AllocateInternal (ezAllocator *pAllocator) override |
| Returns a new instance that was allocated with the given allocator. | |
| virtual ezInternal::NewInstance< void > | CloneInternal (const void *pObject, ezAllocator *pAllocator) override |
| Clones the given instance with the given allocator. | |
| virtual void | Deallocate (void *pObject, ezAllocator *pAllocator) override |
| Deletes the given instance with the given allocator. | |
Public Member Functions inherited from ezRTTIAllocator | |
| virtual bool | CanAllocate () const |
| Returns whether the type that is represented by this allocator, can be dynamically allocated at runtime. | |
| template<typename T > | |
| ezInternal::NewInstance< T > | Allocate (ezAllocator *pAllocator=nullptr) |
| Allocates one instance. | |
| template<typename T > | |
| ezInternal::NewInstance< T > | Clone (const void *pObject, ezAllocator *pAllocator=nullptr) |
| Clones the given instance. | |
Standard RTTI allocator that creates instances using ezEngine's allocator system.
This is the default allocator used by most reflected types. It provides standard heap allocation with proper integration into ezEngine's memory management system. The allocator wrapper allows customization of the underlying allocator (default, aligned, frame, etc.).
Template parameters:
|
inlineoverridevirtual |
Returns a new instance that was allocated with the given allocator.
Implements ezRTTIAllocator.
|
inlineoverridevirtual |
Clones the given instance with the given allocator.
Reimplemented from ezRTTIAllocator.
|
inlineoverridevirtual |
Deletes the given instance with the given allocator.
Implements ezRTTIAllocator.