File indexing completed on 2025-01-18 09:31:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_HPP
0012 #define BOOST_FUSION_ADAPTED_ADT_ADAPT_ADT_HPP
0013
0014 #include <boost/fusion/support/config.hpp>
0015 #include <boost/preprocessor/cat.hpp>
0016 #include <boost/preprocessor/empty.hpp>
0017 #include <boost/preprocessor/control/if.hpp>
0018 #include <boost/preprocessor/comparison/less.hpp>
0019
0020 #include <boost/fusion/adapted/struct/detail/extension.hpp>
0021 #include <boost/fusion/adapted/struct/detail/adapt_base.hpp>
0022 #include <boost/fusion/adapted/struct/detail/at_impl.hpp>
0023 #include <boost/fusion/adapted/struct/detail/is_view_impl.hpp>
0024 #include <boost/fusion/adapted/struct/detail/proxy_type.hpp>
0025 #include <boost/fusion/adapted/struct/detail/is_sequence_impl.hpp>
0026 #include <boost/fusion/adapted/struct/detail/value_at_impl.hpp>
0027 #include <boost/fusion/adapted/struct/detail/category_of_impl.hpp>
0028 #include <boost/fusion/adapted/struct/detail/size_impl.hpp>
0029 #include <boost/fusion/adapted/struct/detail/begin_impl.hpp>
0030 #include <boost/fusion/adapted/struct/detail/end_impl.hpp>
0031 #include <boost/fusion/adapted/struct/detail/value_of_impl.hpp>
0032 #include <boost/fusion/adapted/struct/detail/deref_impl.hpp>
0033 #include <boost/fusion/adapted/adt/detail/extension.hpp>
0034 #include <boost/fusion/adapted/adt/detail/adapt_base.hpp>
0035 #include <boost/fusion/adapted/adt/detail/adapt_base_attr_filler.hpp>
0036
0037 #define BOOST_FUSION_ADAPT_ADT_C( \
0038 TEMPLATE_PARAMS_SEQ, NAME_SEQ, IS_VIEW, I, ATTRIBUTE) \
0039 BOOST_FUSION_ADAPT_ADT_C_BASE( \
0040 TEMPLATE_PARAMS_SEQ, \
0041 NAME_SEQ, \
0042 I, \
0043 BOOST_PP_IIF(IS_VIEW, BOOST_FUSION_PROXY_PREFIX, BOOST_PP_EMPTY), \
0044 BOOST_FUSION_ADAPT_ADT_WRAPPEDATTR(ATTRIBUTE), \
0045 BOOST_FUSION_ADAPT_ADT_WRAPPEDATTR_SIZE(ATTRIBUTE), \
0046 BOOST_PP_LESS( \
0047 BOOST_FUSION_ADAPT_ADT_WRAPPEDATTR_SIZE(ATTRIBUTE), 4)) \
0048
0049 #define BOOST_FUSION_ADAPT_TPL_ADT(TEMPLATE_PARAMS_SEQ, NAME_SEQ , ATTRIBUTES) \
0050 BOOST_FUSION_ADAPT_STRUCT_BASE( \
0051 (1)TEMPLATE_PARAMS_SEQ, \
0052 (1)NAME_SEQ, \
0053 struct_tag, \
0054 0, \
0055 BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0(0,0,0,0)ATTRIBUTES,_END), \
0056 BOOST_FUSION_ADAPT_ADT_C)
0057
0058 #define BOOST_FUSION_ADAPT_ADT(NAME, ATTRIBUTES) \
0059 BOOST_FUSION_ADAPT_STRUCT_BASE( \
0060 (0), \
0061 (0)(NAME), \
0062 struct_tag, \
0063 0, \
0064 BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0(0,0,0,0)ATTRIBUTES,_END), \
0065 BOOST_FUSION_ADAPT_ADT_C)
0066
0067 #define BOOST_FUSION_ADAPT_ADT_AS_VIEW(NAME, ATTRIBUTES) \
0068 BOOST_FUSION_ADAPT_STRUCT_BASE( \
0069 (0), \
0070 (0)(NAME), \
0071 struct_tag, \
0072 1, \
0073 BOOST_PP_CAT(BOOST_FUSION_ADAPT_ADT_FILLER_0(0,0,0,0)ATTRIBUTES,_END), \
0074 BOOST_FUSION_ADAPT_ADT_C)
0075
0076 #endif