Boost Reflect Library 0.1.0
Defines
old.hpp File Reference

Go to the source code of this file.

Defines

#define BOOST_REFLECT(TYPE, INHERITS, MEMBERS)
 Specializes boost::reflect::reflector for TYPE.
#define BOOST_REFLECT_CUSTOM(TYPE, INHERITS, MEMBERS)

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.


© Daniel Larimer 2010-2011 - Licensed under Boost Software License, Version 1.0 Boost Reflect Library