CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ConstructibleTypeTrait Class Referenceabstract

#include <CeresEngine/Reflection/TypeInfo.hpp>

Inheritance diagram for CeresEngine::ConstructibleTypeTrait:
CeresEngine::ArrayTypeInfo CeresEngine::ByteTypeInfo CeresEngine::ConstTypeInfo CeresEngine::MemberPointerTypeInfo CeresEngine::NullTypeInfo CeresEngine::PointerTypeInfo CeresEngine::PrimitiveTypeInfo CeresEngine::ReferenceTypeInfo

Public Member Functions

virtual void construct (void *target) const =0
 Constructs a new instance at the given target address.
 

Protected Member Functions

 ~ConstructibleTypeTrait ()=default
 

Constructor & Destructor Documentation

◆ ~ConstructibleTypeTrait()

CeresEngine::ConstructibleTypeTrait::~ConstructibleTypeTrait ( )
protecteddefault

Member Function Documentation

◆ construct()

virtual void CeresEngine::ConstructibleTypeTrait::construct ( void target) const
pure virtual

Constructs a new instance at the given target address.

Parameters
targetA pointer to the raw memory where the object is stored on.
Note
This can be nullptr if the type is not default constructible.

Implemented in CeresEngine::ReferenceTypeInfo, CeresEngine::PointerTypeInfo, CeresEngine::ConstTypeInfo, CeresEngine::ArrayTypeInfo, CeresEngine::MemberPointerTypeInfo, CeresEngine::PrimitiveTypeInfo, CeresEngine::NullTypeInfo, and CeresEngine::ByteTypeInfo.


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