Plasma Engine  2.0
Loading...
Searching...
No Matches
plRTTINoAllocator Struct Reference

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

#include <RTTI.h>

Inheritance diagram for plRTTINoAllocator:

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 plInternal::NewInstance< void > AllocateInternal (plAllocator *pAllocator) override
 Will trigger an assert.
 
virtual void Deallocate (void *pObject, plAllocator *pAllocator) override
 Will trigger an assert.
 
- Public Member Functions inherited from plRTTIAllocator
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.
 

Detailed Description

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

Member Function Documentation

◆ AllocateInternal()

virtual plInternal::NewInstance< void > plRTTINoAllocator::AllocateInternal ( plAllocator * pAllocator)
inlineoverridevirtual

Will trigger an assert.

Implements plRTTIAllocator.

◆ CanAllocate()

virtual bool plRTTINoAllocator::CanAllocate ( ) const
inlineoverridevirtual

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

Reimplemented from plRTTIAllocator.

◆ Deallocate()

virtual void plRTTINoAllocator::Deallocate ( void * pObject,
plAllocator * pAllocator )
inlineoverridevirtual

Will trigger an assert.

Implements plRTTIAllocator.


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