Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::VariableID Class Reference

Identifier for reflected member variable types. More...

#include <VariableID.h>

Public Member Functions

constexpr VariableID ()=default
constexpr VariableID (const TypeID &id)
 Construct a VariableID from an existing TypeID.

Static Public Member Functions

template<typename T>
static constexpr VariableID Create ()
 Generate a VariableID for a given type.

Detailed Description

Identifier for reflected member variable types.

VariableID wraps a TypeID to uniquely identify the type of a reflected member variable. It is used as a lightweight handle within VariableData and related reflection metadata.

VariableIDs do not store variable names or layout information; they solely identify the associated type.

Constructor & Destructor Documentation

◆ VariableID() [1/2]

Raven::VariableID::VariableID ( )
constexprdefault

◆ VariableID() [2/2]

Raven::VariableID::VariableID ( const TypeID & id)
inlineexplicitconstexpr

Construct a VariableID from an existing TypeID.

Parameters
idThe TypeID describing the variable's type.

Member Function Documentation

◆ Create()

template<typename T>
constexpr VariableID Raven::VariableID::Create ( )
inlinestaticconstexpr

Generate a VariableID for a given type.

Template Parameters
TThe type to generate an identifier for.
Returns
VariableID uniquely identifying type T.

This function forwards to TypeID::Create<T>() and wraps the result in a VariableID for use in variable reflection metadata.


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