Plasma Engine  2.0
Loading...
Searching...
No Matches
plRTTIAllocator Struct Referenceabstract

The interface for an allocator that creates instances of reflected types. More...

#include <RTTI.h>

Inheritance diagram for plRTTIAllocator:

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.
 

Detailed Description

The interface for an allocator that creates instances of reflected types.

Member Function Documentation

◆ AllocateInternal()

virtual plInternal::NewInstance< void > plRTTIAllocator::AllocateInternal ( plAllocator * pAllocator)
privatepure virtual

◆ CanAllocate()

virtual bool plRTTIAllocator::CanAllocate ( ) const
inlinevirtual

Returns whether the type that is represented by this allocator, can be dynamically allocated at runtime.

Reimplemented in plRTTINoAllocator.

◆ CloneInternal()

virtual plInternal::NewInstance< void > plRTTIAllocator::CloneInternal ( const void * pObject,
plAllocator * pAllocator )
inlineprivatevirtual

◆ Deallocate()

virtual void plRTTIAllocator::Deallocate ( void * pObject,
plAllocator * pAllocator = nullptr )
pure virtual

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