Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::TypeData Struct Reference

Metadata about a type. More...

#include <TypeData.h>

Static Public Member Functions

template<typename T>
static TypeData Create ()
 Static method to create TypeData for a specific type.

Public Attributes

std::string m_Name {}
 The name of the type.
u32 m_Size {}
 The size of the type in bytes.
u32 m_Align {}
 The alignment of the type in bytes.
std::vector< VariableDatam_MemberVars {}

Detailed Description

Metadata about a type.

Stores essential information about a type, such as its name, size, and alignment. This structure helps in the engine's type reflection system and is used to associate metadata with the unique TypeIDs for various types.

Member Function Documentation

◆ Create()

template<typename T>
TypeData Raven::TypeData::Create ( )
inlinestatic

Static method to create TypeData for a specific type.

Template Parameters
TThe type to generate the TypeData for.
Returns
A TypeData structure containing metadata for the type T.

Member Data Documentation

◆ m_Align

u32 Raven::TypeData::m_Align {}

The alignment of the type in bytes.

◆ m_MemberVars

std::vector<VariableData> Raven::TypeData::m_MemberVars {}

◆ m_Name

std::string Raven::TypeData::m_Name {}

The name of the type.

◆ m_Size

u32 Raven::TypeData::m_Size {}

The size of the type in bytes.


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