XII Release 0.1.0
Loading...
Searching...
No Matches
xiiRTTIAllocator Struct Referenceabstract

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

#include <RTTI.h>

Inheritance diagram for xiiRTTIAllocator:
[legend]

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>
xiiInternal::NewInstance< T > Allocate (xiiAllocator *pAllocator=nullptr)
 Allocates one instance.
template<typename T>
xiiInternal::NewInstance< T > Clone (const void *pObject, xiiAllocator *pAllocator=nullptr)
 Clones the given instance.
virtual void Deallocate (void *pObject, xiiAllocator *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 xiiInternal::NewInstance< void > xiiRTTIAllocator::AllocateInternal ( xiiAllocator * pAllocator)
privatepure virtual

◆ CanAllocate()

virtual bool xiiRTTIAllocator::CanAllocate ( ) const
inlinevirtual

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

Reimplemented in xiiRTTINoAllocator.

◆ CloneInternal()

virtual xiiInternal::NewInstance< void > xiiRTTIAllocator::CloneInternal ( const void * pObject,
xiiAllocator * pAllocator )
inlineprivatevirtual

◆ Deallocate()

virtual void xiiRTTIAllocator::Deallocate ( void * pObject,
xiiAllocator * pAllocator = nullptr )
pure virtual

The documentation for this struct was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Reflection/Implementation/RTTI.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Reflection/Implementation/RTTI.cpp