mirror of
https://github.com/boostorg/fusion.git
synced 2025-06-30 14:20:59 +02:00
Fusion: BOOST_FUSION_ADAPT_xxxCLASSxxx -> BOOST_FUSION_ADAPT_xxxADTxxx
[SVN r65439]
This commit is contained in:
@ -8,10 +8,10 @@
|
|||||||
#if !defined(BOOST_FUSION_ADAPTED_30122005_1420)
|
#if !defined(BOOST_FUSION_ADAPTED_30122005_1420)
|
||||||
#define BOOST_FUSION_ADAPTED_30122005_1420
|
#define BOOST_FUSION_ADAPTED_30122005_1420
|
||||||
|
|
||||||
|
#include <boost/fusion/adapted/adt.hpp>
|
||||||
#include <boost/fusion/adapted/array.hpp>
|
#include <boost/fusion/adapted/array.hpp>
|
||||||
#include <boost/fusion/adapted/boost_array.hpp>
|
#include <boost/fusion/adapted/boost_array.hpp>
|
||||||
#include <boost/fusion/adapted/boost_tuple.hpp>
|
#include <boost/fusion/adapted/boost_tuple.hpp>
|
||||||
#include <boost/fusion/adapted/class.hpp>
|
|
||||||
#include <boost/fusion/adapted/mpl.hpp>
|
#include <boost/fusion/adapted/mpl.hpp>
|
||||||
#include <boost/fusion/adapted/std_pair.hpp>
|
#include <boost/fusion/adapted/std_pair.hpp>
|
||||||
#include <boost/fusion/adapted/struct.hpp>
|
#include <boost/fusion/adapted/struct.hpp>
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_HPP
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt_named.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt_named.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -7,8 +7,8 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_ADAPT_CLASS_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_ADAPT_CLASS_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_HPP
|
||||||
|
|
||||||
#include <boost/preprocessor/cat.hpp>
|
#include <boost/preprocessor/cat.hpp>
|
||||||
#include <boost/preprocessor/empty.hpp>
|
#include <boost/preprocessor/empty.hpp>
|
||||||
@ -29,46 +29,46 @@
|
|||||||
#include <boost/fusion/adapted/struct/detail/end_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/end_impl.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/value_of_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/value_of_impl.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/deref_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/deref_impl.hpp>
|
||||||
#include <boost/fusion/adapted/class/detail/extension.hpp>
|
#include <boost/fusion/adapted/adt/detail/extension.hpp>
|
||||||
#include <boost/fusion/adapted/class/detail/adapt_base.hpp>
|
#include <boost/fusion/adapted/adt/detail/adapt_base.hpp>
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_FILLER_0(A, B, C, D)\
|
#define BOOST_FUSION_ADAPT_ADT_FILLER_0(A, B, C, D)\
|
||||||
((A, B, C, D)) BOOST_FUSION_ADAPT_CLASS_FILLER_1
|
((A, B, C, D)) BOOST_FUSION_ADAPT_ADT_FILLER_1
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_FILLER_1(A, B, C, D)\
|
#define BOOST_FUSION_ADAPT_ADT_FILLER_1(A, B, C, D)\
|
||||||
((A, B, C, D)) BOOST_FUSION_ADAPT_CLASS_FILLER_0
|
((A, B, C, D)) BOOST_FUSION_ADAPT_ADT_FILLER_0
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_FILLER_0_END
|
#define BOOST_FUSION_ADAPT_ADT_FILLER_0_END
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_FILLER_1_END
|
#define BOOST_FUSION_ADAPT_ADT_FILLER_1_END
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_C(TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE) \
|
#define BOOST_FUSION_ADAPT_ADT_C(TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE) \
|
||||||
BOOST_FUSION_ADAPT_CLASS_C_BASE( \
|
BOOST_FUSION_ADAPT_ADT_C_BASE( \
|
||||||
TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE, 4)
|
TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE, 4)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_TPL_CLASS(TEMPLATE_PARAMS_SEQ, NAME_SEQ , ATTRIBUTES)\
|
#define BOOST_FUSION_ADAPT_TPL_ADT(TEMPLATE_PARAMS_SEQ, NAME_SEQ , ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
(1)TEMPLATE_PARAMS_SEQ, \
|
(1)TEMPLATE_PARAMS_SEQ, \
|
||||||
(1)NAME_SEQ, \
|
(1)NAME_SEQ, \
|
||||||
struct_tag, \
|
struct_tag, \
|
||||||
0, \
|
0, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_CLASS_C)
|
BOOST_FUSION_ADAPT_ADT_C)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS(NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ADT(NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
(0), \
|
(0), \
|
||||||
(0)(NAME), \
|
(0)(NAME), \
|
||||||
struct_tag, \
|
struct_tag, \
|
||||||
0, \
|
0, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_CLASS_C)
|
BOOST_FUSION_ADAPT_ADT_C)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_AS_VIEW(NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ADT_AS_VIEW(NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
(0), \
|
(0), \
|
||||||
(0)(NAME), \
|
(0)(NAME), \
|
||||||
struct_tag, \
|
struct_tag, \
|
||||||
1, \
|
1, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_CLASS_C)
|
BOOST_FUSION_ADAPT_ADT_C)
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -7,24 +7,24 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_ADAPT_CLASS_NAMED_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_NAMED_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_ADAPT_CLASS_NAMED_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_NAMED_HPP
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
|
#include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_NAMED_NS( \
|
#define BOOST_FUSION_ADAPT_ADT_NAMED_NS( \
|
||||||
WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
|
WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
|
BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
|
||||||
WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
|
WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_CLASS_AS_VIEW( \
|
BOOST_FUSION_ADAPT_ADT_AS_VIEW( \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
|
BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
|
||||||
ATTRIBUTES)
|
ATTRIBUTES)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ADT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_CLASS_NAMED_NS( \
|
BOOST_FUSION_ADAPT_ADT_NAMED_NS( \
|
||||||
WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
|
WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -7,8 +7,8 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_ADAPT_ASSOC_CLASS_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_ADAPT_ASSOC_CLASS_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_HPP
|
||||||
|
|
||||||
#include <boost/preprocessor/cat.hpp>
|
#include <boost/preprocessor/cat.hpp>
|
||||||
#include <boost/preprocessor/empty.hpp>
|
#include <boost/preprocessor/empty.hpp>
|
||||||
@ -32,20 +32,20 @@
|
|||||||
#include <boost/fusion/adapted/struct/detail/deref_data_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/deref_data_impl.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/key_of_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/key_of_impl.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/value_of_data_impl.hpp>
|
#include <boost/fusion/adapted/struct/detail/value_of_data_impl.hpp>
|
||||||
#include <boost/fusion/adapted/class/detail/extension.hpp>
|
#include <boost/fusion/adapted/adt/detail/extension.hpp>
|
||||||
#include <boost/fusion/adapted/class/detail/adapt_base.hpp>
|
#include <boost/fusion/adapted/adt/detail/adapt_base.hpp>
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0(A, B, C, D, E)\
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0(A, B, C, D, E)\
|
||||||
((A, B, C, D, E)) BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_1
|
((A, B, C, D, E)) BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_1
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_1(A, B, C, D, E)\
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_1(A, B, C, D, E)\
|
||||||
((A, B, C, D, E)) BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0
|
((A, B, C, D, E)) BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0_END
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0_END
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_1_END
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_1_END
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_C( \
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_C( \
|
||||||
TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE) \
|
TEMPLATE_PARAMS_SEQ, NAME_SEQ, I, ATTRIBUTE) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_CLASS_C_BASE(TEMPLATE_PARAMS_SEQ,NAME_SEQ,I,ATTRIBUTE,5) \
|
BOOST_FUSION_ADAPT_ADT_C_BASE(TEMPLATE_PARAMS_SEQ,NAME_SEQ,I,ATTRIBUTE,5) \
|
||||||
\
|
\
|
||||||
template< \
|
template< \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
|
||||||
@ -55,7 +55,7 @@
|
|||||||
typedef BOOST_PP_TUPLE_ELEM(5, 4, ATTRIBUTE) type; \
|
typedef BOOST_PP_TUPLE_ELEM(5, 4, ATTRIBUTE) type; \
|
||||||
};
|
};
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_TPL_CLASS( \
|
#define BOOST_FUSION_ADAPT_ASSOC_TPL_ADT( \
|
||||||
TEMPLATE_PARAMS_SEQ, NAME_SEQ, ATTRIBUTES) \
|
TEMPLATE_PARAMS_SEQ, NAME_SEQ, ATTRIBUTES) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
@ -63,25 +63,25 @@
|
|||||||
(1)NAME_SEQ, \
|
(1)NAME_SEQ, \
|
||||||
assoc_struct_tag, \
|
assoc_struct_tag, \
|
||||||
0, \
|
0, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_C)
|
BOOST_FUSION_ADAPT_ASSOC_ADT_C)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS(NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT(NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
(0), \
|
(0), \
|
||||||
(0)(NAME), \
|
(0)(NAME), \
|
||||||
assoc_struct_tag, \
|
assoc_struct_tag, \
|
||||||
0, \
|
0, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_C)
|
BOOST_FUSION_ADAPT_ASSOC_ADT_C)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_AS_VIEW(NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_AS_VIEW(NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
BOOST_FUSION_ADAPT_STRUCT_BASE( \
|
||||||
(0), \
|
(0), \
|
||||||
(0)(NAME), \
|
(0)(NAME), \
|
||||||
assoc_struct_tag, \
|
assoc_struct_tag, \
|
||||||
1, \
|
1, \
|
||||||
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_CLASS_FILLER_0 ATTRIBUTES,_END), \
|
BOOST_PP_CAT(BOOST_FUSION_ADAPT_ASSOC_ADT_FILLER_0 ATTRIBUTES,_END), \
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_C)
|
BOOST_FUSION_ADAPT_ASSOC_ADT_C)
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -5,24 +5,24 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_ADAPT_ASSOC_CLASS_NAMED_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_NAMED_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_ADAPT_ASSOC_CLASS_NAMED_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_NAMED_HPP
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
|
||||||
#include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
|
#include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_NAMED_NS( \
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED_NS( \
|
||||||
WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
|
WRAPPED_TYPE, NAMESPACE_SEQ, NAME, ATTRIBUTES) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
|
BOOST_FUSION_ADAPT_STRUCT_DEFINE_PROXY_TYPE_IMPL( \
|
||||||
WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
|
WRAPPED_TYPE,(0)NAMESPACE_SEQ,NAME) \
|
||||||
\
|
\
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_AS_VIEW( \
|
BOOST_FUSION_ADAPT_ASSOC_ADT_AS_VIEW( \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
|
BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ)NAME, \
|
||||||
ATTRIBUTES)
|
ATTRIBUTES)
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_ASSOC_CLASS_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
|
#define BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED(WRAPPED_TYPE, NAME, ATTRIBUTES) \
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_NAMED_NS( \
|
BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED_NS( \
|
||||||
WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
|
WRAPPED_TYPE,(boost)(fusion)(adapted),NAME,ATTRIBUTES)
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -7,8 +7,8 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_DETAIL_ADAPT_BASE_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_DETAIL_ADAPT_BASE_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_DETAIL_ADAPT_BASE_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_DETAIL_ADAPT_BASE_HPP
|
||||||
|
|
||||||
#include <boost/preprocessor/control/if.hpp>
|
#include <boost/preprocessor/control/if.hpp>
|
||||||
#include <boost/preprocessor/seq/seq.hpp>
|
#include <boost/preprocessor/seq/seq.hpp>
|
||||||
@ -16,48 +16,73 @@
|
|||||||
#include <boost/mpl/if.hpp>
|
#include <boost/mpl/if.hpp>
|
||||||
#include <boost/type_traits/is_const.hpp>
|
#include <boost/type_traits/is_const.hpp>
|
||||||
|
|
||||||
//cschmidt: Spirit relies on Fusion defining class_member_proxy in the
|
#define BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_TEMPLATE_IMPL(TEMPLATE_PARAMS_SEQ) \
|
||||||
//boost::fusion::extension namespace, with two nested types named lvalue and
|
|
||||||
//rvalue.
|
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_GET_IDENTITY_TEMPLATE_IMPL(TEMPLATE_PARAMS_SEQ)\
|
|
||||||
typename detail::get_identity< \
|
typename detail::get_identity< \
|
||||||
lvalue \
|
lvalue \
|
||||||
, BOOST_PP_SEQ_ELEM(1,TEMPLATE_PARAMS_SEQ) \
|
, BOOST_PP_SEQ_ELEM(1,TEMPLATE_PARAMS_SEQ) \
|
||||||
>::type
|
>::type
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_GET_IDENTITY_NON_TEMPLATE_IMPL( \
|
#define BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_NON_TEMPLATE_IMPL( \
|
||||||
TEMPLATE_PARAMS_SEQ) \
|
TEMPLATE_PARAMS_SEQ) \
|
||||||
\
|
\
|
||||||
lvalue
|
lvalue
|
||||||
|
|
||||||
#define BOOST_FUSION_ADAPT_CLASS_C_BASE(\
|
#define BOOST_FUSION_ADAPT_ADT_C_BASE( \
|
||||||
TEMPLATE_PARAMS_SEQ,NAME_SEQ,I,ATTRIBUTE,ATTRIBUTE_TUPEL_SIZE) \
|
TEMPLATE_PARAMS_SEQ,NAME_SEQ,I,ATTRIBUTE,ATTRIBUTE_TUPEL_SIZE) \
|
||||||
\
|
\
|
||||||
template< \
|
template< \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
|
||||||
> \
|
> \
|
||||||
struct access::class_member_proxy< \
|
struct access::adt_attribute_proxy< \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
|
||||||
, I \
|
, I \
|
||||||
|
, true \
|
||||||
> \
|
> \
|
||||||
{ \
|
{ \
|
||||||
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) lvalue; \
|
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) type; \
|
||||||
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) rvalue; \
|
|
||||||
\
|
\
|
||||||
class_member_proxy(BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& o) \
|
explicit \
|
||||||
|
adt_attribute_proxy( \
|
||||||
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& o) \
|
||||||
|
: obj(o) \
|
||||||
|
{} \
|
||||||
|
\
|
||||||
|
operator type() const \
|
||||||
|
{ \
|
||||||
|
return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& obj; \
|
||||||
|
\
|
||||||
|
private: \
|
||||||
|
adt_attribute_proxy& operator= (adt_attribute_proxy const&); \
|
||||||
|
}; \
|
||||||
|
\
|
||||||
|
template< \
|
||||||
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_TEMPLATE_PARAMS(TEMPLATE_PARAMS_SEQ) \
|
||||||
|
> \
|
||||||
|
struct access::adt_attribute_proxy< \
|
||||||
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
|
||||||
|
, I \
|
||||||
|
, false \
|
||||||
|
> \
|
||||||
|
{ \
|
||||||
|
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) type; \
|
||||||
|
\
|
||||||
|
explicit \
|
||||||
|
adt_attribute_proxy(BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& o) \
|
||||||
: obj(o) \
|
: obj(o) \
|
||||||
{} \
|
{} \
|
||||||
\
|
\
|
||||||
template<class Arg> \
|
template<class Arg> \
|
||||||
class_member_proxy& \
|
adt_attribute_proxy& \
|
||||||
operator=(Arg const& val) \
|
operator=(Arg const& val) \
|
||||||
{ \
|
{ \
|
||||||
BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 3, ATTRIBUTE); \
|
BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 3, ATTRIBUTE); \
|
||||||
return *this; \
|
return *this; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
operator lvalue() \
|
operator type() const \
|
||||||
{ \
|
{ \
|
||||||
return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \
|
return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \
|
||||||
} \
|
} \
|
||||||
@ -65,7 +90,7 @@
|
|||||||
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj; \
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj; \
|
||||||
\
|
\
|
||||||
private: \
|
private: \
|
||||||
class_member_proxy& operator= (class_member_proxy const&); \
|
adt_attribute_proxy& operator= (adt_attribute_proxy const&); \
|
||||||
}; \
|
}; \
|
||||||
\
|
\
|
||||||
template< \
|
template< \
|
||||||
@ -83,8 +108,8 @@
|
|||||||
typedef \
|
typedef \
|
||||||
BOOST_PP_IF( \
|
BOOST_PP_IF( \
|
||||||
BOOST_PP_SEQ_HEAD(TEMPLATE_PARAMS_SEQ), \
|
BOOST_PP_SEQ_HEAD(TEMPLATE_PARAMS_SEQ), \
|
||||||
BOOST_FUSION_ADAPT_CLASS_GET_IDENTITY_TEMPLATE_IMPL, \
|
BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_TEMPLATE_IMPL, \
|
||||||
BOOST_FUSION_ADAPT_CLASS_GET_IDENTITY_NON_TEMPLATE_IMPL)( \
|
BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_NON_TEMPLATE_IMPL)( \
|
||||||
TEMPLATE_PARAMS_SEQ) \
|
TEMPLATE_PARAMS_SEQ) \
|
||||||
type; \
|
type; \
|
||||||
\
|
\
|
||||||
@ -92,30 +117,17 @@
|
|||||||
struct apply \
|
struct apply \
|
||||||
{ \
|
{ \
|
||||||
typedef \
|
typedef \
|
||||||
access::class_member_proxy< \
|
access::adt_attribute_proxy< \
|
||||||
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
|
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) \
|
||||||
, I \
|
, I \
|
||||||
|
, is_const<Seq>::value \
|
||||||
> \
|
> \
|
||||||
proxy; \
|
|
||||||
\
|
|
||||||
typedef typename \
|
|
||||||
mpl::if_< \
|
|
||||||
is_const<Seq> \
|
|
||||||
, BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) \
|
|
||||||
, proxy \
|
|
||||||
>::type \
|
|
||||||
type; \
|
type; \
|
||||||
\
|
\
|
||||||
static proxy \
|
static type \
|
||||||
call(BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj) \
|
call(Seq& obj) \
|
||||||
{ \
|
{ \
|
||||||
return proxy(obj); \
|
return type(obj); \
|
||||||
} \
|
|
||||||
\
|
|
||||||
static BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) \
|
|
||||||
call(BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& obj) \
|
|
||||||
{ \
|
|
||||||
return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \
|
|
||||||
} \
|
} \
|
||||||
}; \
|
}; \
|
||||||
};
|
};
|
@ -7,8 +7,8 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_ADAPTED_CLASS_DETAIL_EXTENSION_HPP
|
#ifndef BOOST_FUSION_ADAPTED_ADT_DETAIL_EXTENSION_HPP
|
||||||
#define BOOST_FUSION_ADAPTED_CLASS_DETAIL_EXTENSION_HPP
|
#define BOOST_FUSION_ADAPTED_ADT_DETAIL_EXTENSION_HPP
|
||||||
|
|
||||||
#include <boost/type_traits/remove_const.hpp>
|
#include <boost/type_traits/remove_const.hpp>
|
||||||
#include <boost/type_traits/remove_reference.hpp>
|
#include <boost/type_traits/remove_reference.hpp>
|
@ -32,8 +32,8 @@ namespace boost { namespace fusion
|
|||||||
template<typename Seq, int N>
|
template<typename Seq, int N>
|
||||||
struct struct_member;
|
struct struct_member;
|
||||||
|
|
||||||
template <typename T, int N>
|
template <typename T, int N, bool Const>
|
||||||
struct class_member_proxy;
|
struct adt_attribute_proxy;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Seq, int N>
|
template<typename Seq, int N>
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_INCLUDE_ADAPT_CLASS_HPP
|
#ifndef BOOST_FUSION_INCLUDE_ADAPT_ADT_HPP
|
||||||
#define BOOST_FUSION_INCLUDE_ADAPT_CLASS_HPP
|
#define BOOST_FUSION_INCLUDE_ADAPT_ADT_HPP
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -4,9 +4,9 @@
|
|||||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#if !defined(FUSION_INCLUDE_ADAPT_CLASS_NAMED)
|
#if !defined(FUSION_INCLUDE_ADAPT_ADT_NAMED)
|
||||||
#define FUSION_INCLUDE_ADAPT_CLASS_NAMED
|
#define FUSION_INCLUDE_ADAPT_ADT_NAMED
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt_named.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -5,9 +5,9 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
#ifndef BOOST_FUSION_INCLUDE_ADAPT_CLASS_NAMED_HPP
|
#ifndef BOOST_FUSION_INCLUDE_ADAPT_ADT_NAMED_HPP
|
||||||
#define BOOST_FUSION_INCLUDE_ADAPT_CLASS_NAMED_HPP
|
#define BOOST_FUSION_INCLUDE_ADAPT_ADT_NAMED_HPP
|
||||||
|
|
||||||
#include <boost/fusion/adapted/class/adapt_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt_named.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
13
include/boost/fusion/include/adapt_assoc_adt.hpp
Normal file
13
include/boost/fusion/include/adapt_assoc_adt.hpp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*=============================================================================
|
||||||
|
Copyright (c) 2010 Christopher Schmidt
|
||||||
|
|
||||||
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
#ifndef BOOST_FUSION_INCLUDE_ADAPT_ASSOC_ADT_HPP
|
||||||
|
#define BOOST_FUSION_INCLUDE_ADAPT_ASSOC_ADR_HPP
|
||||||
|
|
||||||
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
|
||||||
|
|
||||||
|
#endif
|
13
include/boost/fusion/include/adapt_assoc_adt_named.hpp
Normal file
13
include/boost/fusion/include/adapt_assoc_adt_named.hpp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/*=============================================================================
|
||||||
|
Copyright (c) 2010 Christopher Schmidt
|
||||||
|
|
||||||
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
==============================================================================*/
|
||||||
|
|
||||||
|
#ifndef BOOST_FUSION_INCLUDE_ADAPT_ASSOC_ADT_NAMED_HPP
|
||||||
|
#define BOOST_FUSION_INCLUDE_ADAPT_ASSOC_ADT_NAMED_HPP
|
||||||
|
|
||||||
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt_named.hpp>
|
||||||
|
|
||||||
|
#endif
|
16
test/Jamfile
16
test/Jamfile
@ -111,24 +111,24 @@ import testing ;
|
|||||||
[ run sequence/zip_view2.cpp : : : : ]
|
[ run sequence/zip_view2.cpp : : : : ]
|
||||||
[ run sequence/zip_view_ignore.cpp : : : : ]
|
[ run sequence/zip_view_ignore.cpp : : : : ]
|
||||||
[ run sequence/repetitive_view.cpp : : : : ]
|
[ run sequence/repetitive_view.cpp : : : : ]
|
||||||
[ run sequence/deduce_sequence.cpp : : : : ]
|
[ run sequence/deduce_sequence.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_class_named.cpp : : : : ]
|
[ run sequence/adapt_adt_named.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_class.cpp : : : : ]
|
[ run sequence/adapt_adt.cpp : : : : ]
|
||||||
|
[ run sequence/adapt_assoc_adt_named.cpp : : : : ]
|
||||||
|
[ run sequence/adapt_assoc_adt.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_struct_named.cpp : : : : ]
|
[ run sequence/adapt_assoc_struct_named.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_struct.cpp : : : : ]
|
[ run sequence/adapt_assoc_struct.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_tpl_class.cpp : : : : ]
|
[ run sequence/adapt_assoc_tpl_adt.cpp : : : : ]
|
||||||
[ run sequence/adapt_assoc_tpl_struct.cpp : : : : ]
|
[ run sequence/adapt_assoc_tpl_struct.cpp : : : : ]
|
||||||
[ run sequence/adapt_class_named.cpp : : : : ]
|
|
||||||
[ run sequence/adapt_class.cpp : : : : ]
|
|
||||||
[ run sequence/adapt_struct_named.cpp : : : : ]
|
[ run sequence/adapt_struct_named.cpp : : : : ]
|
||||||
[ run sequence/adapt_struct.cpp : : : : ]
|
[ run sequence/adapt_struct.cpp : : : : ]
|
||||||
[ run sequence/adapt_tpl_class.cpp : : : : ]
|
[ run sequence/adapt_tpl_adt.cpp : : : : ]
|
||||||
[ run sequence/adapt_tpl_struct.cpp : : : : ]
|
[ run sequence/adapt_tpl_struct.cpp : : : : ]
|
||||||
[ run sequence/define_struct.cpp : : : : ]
|
[ run sequence/define_struct.cpp : : : : ]
|
||||||
[ run sequence/define_assoc_struct.cpp : : : : ]
|
[ run sequence/define_assoc_struct.cpp : : : : ]
|
||||||
[ run sequence/define_tpl_struct.cpp : : : : ]
|
[ run sequence/define_tpl_struct.cpp : : : : ]
|
||||||
[ run sequence/define_assoc_tpl_struct.cpp : : : : ]
|
[ run sequence/define_assoc_tpl_struct.cpp : : : : ]
|
||||||
|
|
||||||
[ run functional/fused.cpp : : : : ]
|
[ run functional/fused.cpp : : : : ]
|
||||||
[ run functional/fused_function_object.cpp : : : : ]
|
[ run functional/fused_function_object.cpp : : : : ]
|
||||||
[ run functional/fused_procedure.cpp : : : : ]
|
[ run functional/fused_procedure.cpp : : : : ]
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
||||||
@ -72,14 +72,14 @@ namespace ns
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_CLASS(
|
BOOST_FUSION_ADAPT_ADT(
|
||||||
ns::point,
|
ns::point,
|
||||||
(int, int, obj.get_x(), obj.set_x(val))
|
(int, int, obj.get_x(), obj.set_x(val))
|
||||||
(int, int, obj.get_y(), obj.set_y(val))
|
(int, int, obj.get_y(), obj.set_y(val))
|
||||||
)
|
)
|
||||||
|
|
||||||
#if !BOOST_WORKAROUND(__GNUC__,<4)
|
#if !BOOST_WORKAROUND(__GNUC__,<4)
|
||||||
BOOST_FUSION_ADAPT_CLASS(
|
BOOST_FUSION_ADAPT_ADT(
|
||||||
ns::point_with_private_members,
|
ns::point_with_private_members,
|
||||||
(int, int, obj.get_x(), obj.set_x(val))
|
(int, int, obj.get_x(), obj.set_x(val))
|
||||||
(int, int, obj.get_y(), obj.set_y(val))
|
(int, int, obj.get_y(), obj.set_y(val))
|
@ -5,7 +5,7 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt_named.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
||||||
@ -53,7 +53,7 @@ namespace ns
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this creates a fusion view: boost::fusion::adapted::point
|
// this creates a fusion view: boost::fusion::adapted::point
|
||||||
BOOST_FUSION_ADAPT_CLASS_NAMED(
|
BOOST_FUSION_ADAPT_ADT_NAMED(
|
||||||
ns::point, point,
|
ns::point, point,
|
||||||
(int, int, obj.obj.get_x(), obj.obj.set_x(val))
|
(int, int, obj.obj.get_x(), obj.obj.set_x(val))
|
||||||
(int, int, obj.obj.get_y(), obj.obj.set_y(val))
|
(int, int, obj.obj.get_y(), obj.obj.set_y(val))
|
@ -10,7 +10,7 @@
|
|||||||
#include <boost/fusion/container/list.hpp>
|
#include <boost/fusion/container/list.hpp>
|
||||||
#include <boost/fusion/container/vector.hpp>
|
#include <boost/fusion/container/vector.hpp>
|
||||||
#include <boost/fusion/container/generation/make_vector.hpp>
|
#include <boost/fusion/container/generation/make_vector.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
|
||||||
#include <boost/mpl/assert.hpp>
|
#include <boost/mpl/assert.hpp>
|
||||||
#include <boost/mpl/not.hpp>
|
#include <boost/mpl/not.hpp>
|
||||||
#include <boost/mpl/front.hpp>
|
#include <boost/mpl/front.hpp>
|
||||||
@ -45,7 +45,7 @@ namespace ns
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS(
|
BOOST_FUSION_ADAPT_ASSOC_ADT(
|
||||||
ns::point,
|
ns::point,
|
||||||
(int, int, obj.get_x(), obj.set_x(val), ns::x_member)
|
(int, int, obj.get_x(), obj.set_x(val), ns::x_member)
|
||||||
(int, int, obj.get_y(), obj.set_y(val), ns::y_member)
|
(int, int, obj.get_y(), obj.set_y(val), ns::y_member)
|
@ -10,7 +10,7 @@
|
|||||||
#include <boost/fusion/container/list.hpp>
|
#include <boost/fusion/container/list.hpp>
|
||||||
#include <boost/fusion/container/vector.hpp>
|
#include <boost/fusion/container/vector.hpp>
|
||||||
#include <boost/fusion/container/generation/make_vector.hpp>
|
#include <boost/fusion/container/generation/make_vector.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class_named.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt_named.hpp>
|
||||||
#include <boost/mpl/assert.hpp>
|
#include <boost/mpl/assert.hpp>
|
||||||
#include <boost/mpl/not.hpp>
|
#include <boost/mpl/not.hpp>
|
||||||
#include <boost/mpl/front.hpp>
|
#include <boost/mpl/front.hpp>
|
||||||
@ -45,7 +45,7 @@ namespace ns
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_ASSOC_CLASS_NAMED(
|
BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED(
|
||||||
ns::point,
|
ns::point,
|
||||||
point,
|
point,
|
||||||
(int, int, obj.obj.get_x(), obj.obj.set_x(val), ns::x_member)
|
(int, int, obj.obj.get_x(), obj.obj.set_x(val), ns::x_member)
|
@ -10,7 +10,7 @@
|
|||||||
#include <boost/fusion/container/list.hpp>
|
#include <boost/fusion/container/list.hpp>
|
||||||
#include <boost/fusion/container/vector.hpp>
|
#include <boost/fusion/container/vector.hpp>
|
||||||
#include <boost/fusion/container/generation/make_vector.hpp>
|
#include <boost/fusion/container/generation/make_vector.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_assoc_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_assoc_adt.hpp>
|
||||||
#include <boost/mpl/assert.hpp>
|
#include <boost/mpl/assert.hpp>
|
||||||
#include <boost/mpl/not.hpp>
|
#include <boost/mpl/not.hpp>
|
||||||
#include <boost/mpl/front.hpp>
|
#include <boost/mpl/front.hpp>
|
||||||
@ -46,7 +46,7 @@ namespace ns
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_ASSOC_TPL_CLASS(
|
BOOST_FUSION_ADAPT_ASSOC_TPL_ADT(
|
||||||
(X)(Y),
|
(X)(Y),
|
||||||
(ns::point)(X)(Y),
|
(ns::point)(X)(Y),
|
||||||
(X, X, obj.get_x(), obj.set_x(val), ns::x_member)
|
(X, X, obj.get_x(), obj.set_x(val), ns::x_member)
|
@ -5,7 +5,7 @@
|
|||||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/fusion/adapted/class/adapt_class.hpp>
|
#include <boost/fusion/adapted/adt/adapt_adt.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
#include <boost/fusion/sequence/intrinsic/size.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
#include <boost/fusion/sequence/intrinsic/empty.hpp>
|
||||||
@ -54,7 +54,7 @@ namespace ns
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FUSION_ADAPT_TPL_CLASS(
|
BOOST_FUSION_ADAPT_TPL_ADT(
|
||||||
(X)(Y),
|
(X)(Y),
|
||||||
(ns::point)(X)(Y),
|
(ns::point)(X)(Y),
|
||||||
(X, X, obj.get_x(), obj.set_x(val))
|
(X, X, obj.get_x(), obj.set_x(val))
|
Reference in New Issue
Block a user