registration_friend.h File Reference
#include "rttr/detail/base/core_prerequisites.h"
Go to the source code of this file.
Namespaces | |
rttr | |
Macros | |
#define | RTTR_REGISTRATION_FRIEND |
When you have a class and the method or property is declared in private scope, then you can still register this item when you insert the macro: RTTR_REGISTRATION_FRIEND inside the class. More... | |
Macro Definition Documentation
◆ RTTR_REGISTRATION_FRIEND
#define RTTR_REGISTRATION_FRIEND |
When you have a class and the method or property is declared in private scope, then you can still register this item when you insert the macro: RTTR_REGISTRATION_FRIEND inside the class.
See following example code:
bind< detail::prop, Class_Type, A, acc_level > property(string_view name, A acc, acc_level level=acc_level())
Register a property to this class.
detail::enum_data< Enum_Type > value(string_view, Enum_Type value)
The value function should be used to add a mapping from enum name to value during the registration pr...
The class_ is used to register classes to RTTR.
Definition: registration.h:130
#define RTTR_REGISTRATION
Use this macro to automatically register your reflection information to RTTR before main is called.
Definition: registration.h:745
#define RTTR_REGISTRATION_FRIEND
Place this macro inside a class, when you need to reflect properties, methods or constructors which a...
Definition: registration.h:793
Generated on Sun Dec 27 2020 08:16:23 for rttr - 0.9.6 by doxygen.