Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::TypeRegistry Class Reference

Global runtime type registry for Raven Engine. More...

#include <Type.h>

Public Member Functions

template<typename T>
constexpr void RegisterType (const TypeID &typeHash)
 Registers a type T with the registry if not already registered.
TypeDataGetTypeData (const TypeID &id)
 Retrieves type metadata by ID.
const bool IsTypeRegistered (const TypeID &id) const noexcept
 Checks if a type is registered.

Static Public Member Functions

static TypeRegistryGet ()
 Singleton access to the TypeRegistry.

Detailed Description

Global runtime type registry for Raven Engine.

Manages registration and lookup of types through unique TypeID keys. Used internally to support reflection, serialization, and editor tooling. Not intended for external use. Ensures types are registered exactly once.

Member Function Documentation

◆ Get()

TypeRegistry & Raven::TypeRegistry::Get ( )
inlinestatic

Singleton access to the TypeRegistry.

Returns
Reference to the global TypeRegistry instance.

◆ GetTypeData()

TypeData & Raven::TypeRegistry::GetTypeData ( const TypeID & id)
inline

Retrieves type metadata by ID.

Parameters
idThe unique TypeID.
Returns
Corresponding TypeData.

◆ IsTypeRegistered()

const bool Raven::TypeRegistry::IsTypeRegistered ( const TypeID & id) const
inlinenoexcept

Checks if a type is registered.

Parameters
idThe TypeID to query.
Returns
True if registered, false otherwise.

◆ RegisterType()

template<typename T>
void Raven::TypeRegistry::RegisterType ( const TypeID & typeHash)
inlineconstexpr

Registers a type T with the registry if not already registered.

Template Parameters
TThe type to register.

The documentation for this class was generated from the following file:
  • Engine/src/Raven/Reflection/Type.h