The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [rtti]

Run-Time Type Information: A C++ mechanism that exposes information about an object's data type at runtime.

Filter by
Sorted by
Tagged with
1
vote
2answers
79 views

Map a set of types to unique IDs and runtime reinterpret back from ID and pointer in C++17

I wanted to create a relatively universal way of serialising an object, by doing a memcpy and generating a unique type ID. Stored together they can be used, for ...
3
votes
0answers
66 views

GameObject and Component type system

I'm working on a hobby game and I want to implement a component system similar in usage to what Unity has. I was previously storing type information as a string inside Component, but that seemed like ...
2
votes
1answer
2k views

Drill through and down the object properties with RTTI

I am in process of making debugging output better for client-side application. We have lots of auto-generated Protocol Buffers classes which are used for communication by our protocol. I am trying to ...
20
votes
2answers
8k views

Unique type ID, no RTTI

Following my answer to Unique type ID in C++, I have worked towards a "safer" version that I am posting here. This is a lightweight type that can store a unique (also across compilation units) ID per ...