CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ClassInfo Struct Reference

A structure that contains type information for a class. More...

#include <CeresEngine/Reflection/IReflectable.hpp>

Public Member Functions

constexpr ClassInfo ()=default
 
constexpr ClassInfo (const TypeID typeID, const void *instance)
 

Public Attributes

TypeID typeID
 The class type ID.
 
const voidinstance = nullptr
 A pointer to the instance.
 

Detailed Description

A structure that contains type information for a class.

Constructor & Destructor Documentation

◆ ClassInfo() [1/2]

constexpr CeresEngine::ClassInfo::ClassInfo ( )
constexprdefault

◆ ClassInfo() [2/2]

constexpr CeresEngine::ClassInfo::ClassInfo ( const TypeID  typeID,
const void instance 
)
inlineconstexpr

Member Data Documentation

◆ instance

const void* CeresEngine::ClassInfo::instance = nullptr

A pointer to the instance.

◆ typeID

TypeID CeresEngine::ClassInfo::typeID

The class type ID.

The type of the actual class implementation. Can be used to provide to get the concrete type from an abstract base class.


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