Go to the source code of this file.
Define Documentation
#define BOOST_REFLECT |
( |
|
TYPE, |
|
|
|
INHERITS, |
|
|
|
MEMBERS |
|
) |
| |
Value:BOOST_REFLECT_TYPEINFO(TYPE) \
namespace boost { namespace reflect { \
template<> struct reflector<TYPE> {\
BOOST_REFLECT_IMPL( const, TYPE, INHERITS, MEMBERS ) \
BOOST_REFLECT_IMPL( BOOST_REFLECT_EMPTY, TYPE, INHERITS, MEMBERS ) \
\
template<typename T, typename InterfaceDelegate> \
static void visit( boost::reflect::vtable<TYPE,InterfaceDelegate>& a, T& t ) { \
BOOST_PP_SEQ_FOR_EACH( VISIT_BASE, t, INHERITS ) \
BOOST_PP_SEQ_FOR_EACH( VISIT_MEMBER, TYPE, MEMBERS ) \
} \
}; } }
Specializes boost::reflect::reflector for TYPE.
- Parameters:
-
INHERITS | - a sequence of base class names (basea)(baseb)(basec) |
MEMBERS | - a sequence of member names. (field1)(field2)(field3) |
Definition at line 70 of file old.hpp.
#define BOOST_REFLECT_CUSTOM |
( |
|
TYPE, |
|
|
|
INHERITS, |
|
|
|
MEMBERS |
|
) |
| |
Value:BOOST_REFLECT_TYPEINFO(TYPE) \
namespace boost { namespace reflect { \
template<> struct reflector<TYPE> { \
BOOST_REFLECT_CUSTOM_IMPL( const, TYPE, INHERITS, MEMBERS ) \
BOOST_REFLECT_CUSTOM_IMPL( BOOST_REFLECT_EMPTY, TYPE, INHERITS, MEMBERS ) \
} } }
This macro is identical to BOOST_REFLECT, except that it gives you the ability to customize field numbers and flags.
- Parameters:
-
MEMBERS | - a sequence of 3 param tuples. ((field_name, NUMBER, FLAGS))((field_name1, NUMBER, FLAGS)) |
Definition at line 93 of file old.hpp.