rttr_enable.h File - 0.9.0 |RTTR
rttr_enable.h File Reference
#include <type_traits>
#include "rttr/detail/misc_type_traits.h"
#include "rttr/type.h"
#include "rttr/variant.h"

Go to the source code of this file.

Namespaces

 rttr
 The namespace for all rttr components.
 

Macros

#define RTTR_ENABLE(...)
 
#define TYPE_LIST(...)    rttr::impl::type_list<__VA_ARGS__>
 

Macro Definition Documentation

#define RTTR_ENABLE (   ...)
Value:
public:\
virtual RTTR_INLINE rttr::type get_type() const { return rttr::impl::get_type_from_instance(this); } \
virtual RTTR_INLINE void* get_ptr() { return reinterpret_cast<void*>(this); } \
virtual RTTR_INLINE rttr::detail::derived_info get_derived_info() { return {reinterpret_cast<void*>(this), rttr::impl::get_type_from_instance(this)}; } \
typedef TYPE_LIST(__VA_ARGS__) base_class_list; \
private:
This class holds the type information for any arbitrary object.
Definition: type.h:165
#define RTTR_INLINE
Definition: core_prerequisites.h:90
#define TYPE_LIST(...)
Definition: rttr_enable.h:286
#define TYPE_LIST (   ...)    rttr::impl::type_list<__VA_ARGS__>