Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:33:39

0001 /*=============================================================================
0002     Copyright (c) 2001-2011 Joel de Guzman
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 #ifndef BOOST_PP_IS_ITERATING
0008 #if !defined(FUSION_AS_MAP_0932005_1339)
0009 #define FUSION_AS_MAP_0932005_1339
0010 
0011 #include <boost/preprocessor/iterate.hpp>
0012 #include <boost/preprocessor/repetition/enum_params.hpp>
0013 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
0014 #include <boost/preprocessor/repetition/repeat.hpp>
0015 #include <boost/preprocessor/cat.hpp>
0016 #include <boost/preprocessor/inc.hpp>
0017 #include <boost/preprocessor/dec.hpp>
0018 #include <boost/fusion/container/map/detail/cpp03/map.hpp>
0019 #include <boost/fusion/iterator/value_of.hpp>
0020 #include <boost/fusion/iterator/deref.hpp>
0021 #include <boost/fusion/iterator/next.hpp>
0022 
0023 namespace boost { namespace fusion { namespace detail
0024 {
0025 BOOST_FUSION_BARRIER_BEGIN
0026 
0027     template <int size, bool is_assoc>
0028     struct as_map
0029     {
0030         BOOST_STATIC_ASSERT_MSG(
0031             size <= FUSION_MAX_MAP_SIZE
0032           , "FUSION_MAX_MAP_SIZE limit is too low"
0033         );
0034     };
0035 
0036     template <bool is_assoc>
0037     struct as_map<0, is_assoc>
0038     {
0039         template <typename Iterator>
0040         struct apply
0041         {
0042             typedef map<> type;
0043         };
0044 
0045         template <typename Iterator>
0046         BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0047         static typename apply<Iterator>::type
0048         call(Iterator)
0049         {
0050             return map<>();
0051         }
0052     };
0053 
0054 BOOST_FUSION_BARRIER_END
0055 }}}
0056 
0057 #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES)
0058 #include <boost/fusion/container/map/detail/cpp03/preprocessed/as_map.hpp>
0059 #else
0060 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0061 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/as_map" FUSION_MAX_MAP_SIZE_STR ".hpp")
0062 #endif
0063 
0064 /*=============================================================================
0065     Copyright (c) 2001-2011 Joel de Guzman
0066 
0067     Distributed under the Boost Software License, Version 1.0. (See accompanying
0068     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0069 
0070     This is an auto-generated file. Do not edit!
0071 ==============================================================================*/
0072 
0073 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0074 #pragma wave option(preserve: 1)
0075 #endif
0076 
0077 namespace boost { namespace fusion { namespace detail
0078 {
0079 BOOST_FUSION_BARRIER_BEGIN
0080 
0081 #define BOOST_FUSION_NEXT_ITERATOR(z, n, data)                                  \
0082     typedef typename fusion::result_of::next<BOOST_PP_CAT(I, n)>::type          \
0083         BOOST_PP_CAT(I, BOOST_PP_INC(n));
0084 
0085 #define BOOST_FUSION_NEXT_CALL_ITERATOR(z, n, data)                             \
0086     typename gen::BOOST_PP_CAT(I, BOOST_PP_INC(n))                              \
0087         BOOST_PP_CAT(i, BOOST_PP_INC(n)) = fusion::next(BOOST_PP_CAT(i, n));
0088 
0089 #define BOOST_FUSION_PAIR_FROM_ITERATOR(z, n, data)                             \
0090     typedef pair_from<BOOST_PP_CAT(I, n), is_assoc> BOOST_PP_CAT(D, n);         \
0091     typedef typename BOOST_PP_CAT(D, n)::type BOOST_PP_CAT(T, n);
0092 
0093 #define BOOST_FUSION_DREF_CALL_ITERATOR(z, n, data)                             \
0094     gen::BOOST_PP_CAT(D, n)::call(BOOST_PP_CAT(i, n))
0095 
0096 #define BOOST_PP_FILENAME_1 <boost/fusion/container/map/detail/cpp03/as_map.hpp>
0097 #define BOOST_PP_ITERATION_LIMITS (1, FUSION_MAX_MAP_SIZE)
0098 #include BOOST_PP_ITERATE()
0099 
0100 #undef BOOST_FUSION_NEXT_ITERATOR
0101 #undef BOOST_FUSION_NEXT_CALL_ITERATOR
0102 #undef BOOST_FUSION_PAIR_FROM_ITERATOR
0103 #undef BOOST_FUSION_DREF_CALL_ITERATOR
0104 
0105 BOOST_FUSION_BARRIER_END
0106 }}}
0107 
0108 #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)
0109 #pragma wave option(output: null)
0110 #endif
0111 
0112 #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES
0113 
0114 #endif
0115 #else // defined(BOOST_PP_IS_ITERATING)
0116 ///////////////////////////////////////////////////////////////////////////////
0117 //
0118 //  Preprocessor vertical repetition code
0119 //
0120 ///////////////////////////////////////////////////////////////////////////////
0121 
0122 #define N BOOST_PP_ITERATION()
0123 
0124     template <bool is_assoc>
0125     struct as_map<N, is_assoc>
0126     {
0127         template <typename I0>
0128         struct apply
0129         {
0130             BOOST_PP_REPEAT(BOOST_PP_DEC(N), BOOST_FUSION_NEXT_ITERATOR, _)
0131             BOOST_PP_REPEAT(N, BOOST_FUSION_PAIR_FROM_ITERATOR, _)
0132             typedef map<BOOST_PP_ENUM_PARAMS(N, T)> type;
0133         };
0134 
0135         template <typename Iterator>
0136         BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
0137         static typename apply<Iterator>::type
0138         call(Iterator const& i0)
0139         {
0140             typedef apply<Iterator> gen;
0141             typedef typename gen::type result;
0142             BOOST_PP_REPEAT(BOOST_PP_DEC(N), BOOST_FUSION_NEXT_CALL_ITERATOR, _)
0143             return result(BOOST_PP_ENUM(N, BOOST_FUSION_DREF_CALL_ITERATOR, _));
0144         }
0145     };
0146 
0147 #undef N
0148 #endif // defined(BOOST_PP_IS_ITERATING)
0149