rttr  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
RTTR - Run Time Type Reflection

Table of Contents


The run time type reflection (RTTR) library adds the missing feature of reflection to C++.
That means the programmer can introspect an object at runtime of what kind of properties, methods and constructors it consist.
This is extremely useful when a tight but also high dynamic coupling between software modules is required.
The main use cases are for example serialisation, UI creation, binding to arbitrary programming languages (JavaScript, Lua etc.) and network communication.

It works without any extra preprocess pass to reflect your type, only standard C++11 language features are used.
However, in order to reflect your types it is required to manually register your classes with its properties and methods.
While registering methods it is usually not necessary to know the exact signature, since the library
will generate a wrapper class for this depending on the compile-time type of the method.
In order to avoid header pollution, the registration process should be done completely in the cpp file. There is no need to derive from some super base class.

RTTR is released under the terms of the MIT license.


RTTR supports:


RTTR is compiled and tested on following platforms:



The following persons has been very helpful: