ezEngine  Milestone 9
ezRTTIDefaultAllocator< CLASS, AllocatorWrapper > Struct Template Reference

Default implementation of ezRTTIAllocator that allocates instances via the given allocator. More...

#include <RTTI.h>

Inheritance diagram for ezRTTIDefaultAllocator< CLASS, AllocatorWrapper >:

Public Member Functions

virtual ezInternal::NewInstance< void > AllocateInternal (ezAllocatorBase *pAllocator) override
 Returns a new instance that was allocated with the given allocator.
 
virtual ezInternal::NewInstance< void > CloneInternal (const void *pObject, ezAllocatorBase *pAllocator) override
 Clones the given instance with the given allocator.
 
virtual void Deallocate (void *pObject, ezAllocatorBase *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 (ezAllocatorBase *pAllocator=nullptr)
 Allocates one instance.
 
template<typename T >
ezInternal::NewInstance< T > Clone (const void *pObject, ezAllocatorBase *pAllocator=nullptr)
 Clones the given instance.
 

Detailed Description

template<typename CLASS, typename AllocatorWrapper = ezDefaultAllocatorWrapper>
struct ezRTTIDefaultAllocator< CLASS, AllocatorWrapper >

Default implementation of ezRTTIAllocator that allocates instances via the given allocator.


The documentation for this struct was generated from the following file: