Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:08

0001 /*=============================================================================
0002     Copyright (c) 2009-2010 Hartmut Kaiser
0003     Copyright (c) 2010 Christopher Schmidt
0004 
0005     Distributed under the Boost Software License, Version 1.0. (See accompanying
0006     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 ==============================================================================*/
0008 
0009 #ifndef BOOST_FUSION_ADAPTED_DETAIL_STRUCT_NAMESPACE_HPP
0010 #define BOOST_FUSION_ADAPTED_DETAIL_STRUCT_NAMESPACE_HPP
0011 
0012 #include <boost/fusion/support/config.hpp>
0013 #include <boost/preprocessor/dec.hpp>
0014 #include <boost/preprocessor/control/if.hpp>
0015 #include <boost/preprocessor/seq/seq.hpp>
0016 #include <boost/preprocessor/seq/for_each.hpp>
0017 #include <boost/preprocessor/seq/size.hpp>
0018 #include <boost/preprocessor/repetition/repeat.hpp>
0019 #include <boost/preprocessor/tuple/eat.hpp>
0020 
0021 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_BEGIN_I(R,DATA,ELEM)                \
0022     namespace ELEM {
0023 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_END_I(Z,I,DATA) }
0024 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION_I(Z,I,ELEM) ELEM::
0025 
0026 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DEFINITION_BEGIN(NAMESPACE_SEQ)     \
0027     BOOST_PP_IF(                                                                \
0028         BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)),                         \
0029         BOOST_PP_SEQ_FOR_EACH_R,                                                \
0030         BOOST_PP_TUPLE_EAT(4))(                                                 \
0031             1,                                                                  \
0032             BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_BEGIN_I,                        \
0033             _,                                                                  \
0034             BOOST_PP_SEQ_TAIL(NAMESPACE_SEQ))
0035 
0036 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DEFINITION_END(NAMESPACE_SEQ)       \
0037     BOOST_PP_REPEAT_1(                                                          \
0038         BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)),                         \
0039         BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_END_I,                              \
0040         _)
0041 
0042 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION(NAMESPACE_SEQ)          \
0043     BOOST_PP_IF(                                                                \
0044         BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)),                         \
0045         BOOST_PP_SEQ_FOR_EACH_R,                                                \
0046         BOOST_PP_TUPLE_EAT(4))(                                                 \
0047             1,                                                                  \
0048             BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION_I,                  \
0049             _,                                                                  \
0050             BOOST_PP_SEQ_TAIL(NAMESPACE_SEQ))
0051 
0052 #endif