Uniot Core
0.8.1
Loading...
Searching...
No Matches
TypeId

Provides a lightweight type identification system for runtime type checking and safe casting. More...

Collaboration diagram for TypeId:

Classes

class  uniot::IWithType
 Interface for objects that expose their runtime type information. More...
 
class  uniot::Type
 Utility class providing static methods for runtime type identification and safe casting. More...
 

Typedefs

typedef const void * uniot::type_id
 Type alias for a unique type identifier.
 

Detailed Description

Provides a lightweight type identification system for runtime type checking and safe casting.

This file defines a type identification mechanism that allows objects to expose their type information at runtime, enabling type-safe downcasting without using RTTI.

Typedef Documentation

◆ type_id

typedef const void* uniot::type_id

Type alias for a unique type identifier.

Each unique C++ type will have a distinct address used as its identifier, allowing for efficient runtime type comparisons.