XII Release 0.1.0
Loading...
Searching...
No Matches
xiiRTTINoAllocator Struct Reference

Dummy Allocator for types that should not be allocatable through the reflection system. More...

#include <RTTI.h>

Inheritance diagram for xiiRTTINoAllocator:
[legend]

Public Member Functions

virtual bool CanAllocate () const override
 Returns false, because this type of allocator is used for classes that shall not be allocated dynamically.
virtual xiiInternal::NewInstance< void > AllocateInternal (xiiAllocator *pAllocator) override
 Will trigger an assert.
virtual void Deallocate (void *pObject, xiiAllocator *pAllocator) override
 Will trigger an assert.
Public Member Functions inherited from xiiRTTIAllocator
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.

Detailed Description

Dummy Allocator for types that should not be allocatable through the reflection system.

Member Function Documentation

◆ AllocateInternal()

virtual xiiInternal::NewInstance< void > xiiRTTINoAllocator::AllocateInternal ( xiiAllocator * pAllocator)
inlineoverridevirtual

Will trigger an assert.

Implements xiiRTTIAllocator.

◆ CanAllocate()

virtual bool xiiRTTINoAllocator::CanAllocate ( ) const
inlineoverridevirtual

Returns false, because this type of allocator is used for classes that shall not be allocated dynamically.

Reimplemented from xiiRTTIAllocator.

◆ Deallocate()

virtual void xiiRTTINoAllocator::Deallocate ( void * pObject,
xiiAllocator * pAllocator )
inlineoverridevirtual

Will trigger an assert.

Implements xiiRTTIAllocator.


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