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 (xiiAllocatorBase *pAllocator) override
 Will trigger an assert.
 
virtual void Deallocate (void *pObject, xiiAllocatorBase *pAllocator) override
 Will trigger an assert.
 
- Public Member Functions inherited from xiiRTTIAllocator
template<typename T>
xiiInternal::NewInstance< T > Allocate (xiiAllocatorBase *pAllocator=nullptr)
 Allocates one instance.
 
template<typename T>
xiiInternal::NewInstance< T > Clone (const void *pObject, xiiAllocatorBase *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 ( xiiAllocatorBase * 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,
xiiAllocatorBase * pAllocator )
inlineoverridevirtual

Will trigger an assert.

Implements xiiRTTIAllocator.


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