Added boost header

This commit is contained in:
Christophe Riccio
2012-01-08 01:26:07 +00:00
parent 9c3faaca40
commit c7d752cdf8
8946 changed files with 1732316 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
/*==============================================================================
Copyright (c) 2010 Thomas Heller
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)
==============================================================================*/
#if !BOOST_PP_IS_ITERATING
#include <boost/preprocessor/tuple/elem.hpp>
#ifndef BOOST_PHOENIX_ITERATION_PARAMS
#error "BOOST_PHOENIX_ITERATION_PARAMS not defined"
#endif
#define BOOST_PHOENIX_ITERATION_PARAMS_SIZE \
BOOST_PP_TUPLE_ELEM(2, 0, BOOST_PHOENIX_ITERATION_PARAMS) \
/**/
#define BOOST_PHOENIX_ITERATION_TUPLE \
BOOST_PP_TUPLE_ELEM(2, 1, BOOST_PHOENIX_ITERATION_PARAMS) \
/**/
#define BOOST_PHOENIX_ITERATION_START \
BOOST_PP_TUPLE_ELEM( \
BOOST_PHOENIX_ITERATION_PARAMS_SIZE, 0, BOOST_PHOENIX_ITERATION_TUPLE) \
/**/
#define BOOST_PHOENIX_ITERATION_END \
BOOST_PP_TUPLE_ELEM( \
BOOST_PHOENIX_ITERATION_PARAMS_SIZE, 1, BOOST_PHOENIX_ITERATION_TUPLE) \
/**/
#define BOOST_PHOENIX_ITERATION_FILE() \
BOOST_PP_TUPLE_ELEM( \
BOOST_PHOENIX_ITERATION_PARAMS_SIZE, 2, BOOST_PHOENIX_ITERATION_TUPLE) \
/**/
#if BOOST_PHOENIX_ITERATION_PARAMS_SIZE == 3
#define BOOST_PP_ITERATION_PARAMS_1 \
(3, (BOOST_PHOENIX_ITERATION_START, BOOST_PHOENIX_ITERATION_END, \
<boost/phoenix/support/detail/iterate.hpp>)) \
/**/
#else
#define BOOST_PHOENIX_ITERATION_FLAG \
BOOST_PP_TUPLE_ELEM( \
BOOST_PHOENIX_ITERATION_PARAMS_SIZE, 3, BOOST_PHOENIX_ITERATION_TUPLE) \
/**/
#define BOOST_PP_ITERATION_PARAMS_1 \
(4, (BOOST_PHOENIX_ITERATION_START, BOOST_PHOENIX_ITERATION_END, \
<boost/phoenix/support/detail/iterate.hpp>, \
BOOST_PHOENIX_ITERATION_FLAG)) \
/**/
#endif
#include BOOST_PP_ITERATE()
#undef BOOST_PHOENIX_ITERATION_PARAMS_SIZE
#undef BOOST_PHOENIX_ITERATION_TUPLE
#undef BOOST_PHOENIX_ITERATION_START
#undef BOOST_PHOENIX_ITERATION_END
#undef BOOST_PHOENIX_ITERATION_PARAMS
#else
#undef BOOST_PHOENIX_IS_ITERATING
#define BOOST_PHOENIX_IS_ITERATING 1
#include <boost/phoenix/support/detail/iterate_undef.hpp>
#include <boost/phoenix/support/detail/iterate_define.hpp>
#include BOOST_PHOENIX_ITERATION_FILE()
#undef BOOST_PHOENIX_ITERATION
#undef BOOST_PHOENIX_IS_ITERATING
#define BOOST_PHOENIX_IS_ITERATING 0
#include <boost/phoenix/support/detail/iterate_undef.hpp>
#include <boost/phoenix/support/detail/iterate_define.hpp>
#endif

View File

@@ -0,0 +1,155 @@
/*==============================================================================
Copyright (c) 2010 Thomas Heller
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)
==============================================================================*/
#if !BOOST_PHOENIX_IS_ITERATING
#define BOOST_PHOENIX_typename_A(N) \
BOOST_PP_ENUM_PARAMS(N, typename A) \
/**/
#define BOOST_PHOENIX_typename_A_void(N) \
BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(N, typename A, void) \
/**/
#define BOOST_PHOENIX_A(N) \
BOOST_PP_ENUM_PARAMS(N, A) \
/**/
#define BOOST_PHOENIX_A_ref(N) \
BOOST_PP_ENUM_BINARY_PARAMS(N, A, & BOOST_PP_INTERCEPT) \
/**/
#define BOOST_PHOENIX_A_const_ref(N) \
BOOST_PP_ENUM_BINARY_PARAMS(N, A, const& BOOST_PP_INTERCEPT) \
/**/
#define BOOST_PHOENIX_A_a(N) \
BOOST_PP_ENUM_BINARY_PARAMS(N, A, a) \
/**/
#define BOOST_PHOENIX_A_ref_a(N) \
BOOST_PP_ENUM_BINARY_PARAMS(N, A, & a) \
/**/
#define BOOST_PHOENIX_A_const_ref_a(N) \
BOOST_PP_ENUM_BINARY_PARAMS(N, A, const& a) \
/**/
#define BOOST_PHOENIX_a(N) \
BOOST_PP_ENUM_PARAMS(N, a) \
/**/
#else
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
#include <boost/preprocessor/seq/elem.hpp>
#include <boost/preprocessor/seq/enum.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/seq/for_each_product.hpp>
#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#define BOOST_PHOENIX_ITERATION \
BOOST_PP_ITERATION() \
/**/
#define BOOST_PHOENIX_typename_A \
BOOST_PP_ENUM_PARAMS(BOOST_PHOENIX_ITERATION, typename A) \
/**/
#define BOOST_PHOENIX_typename_A_void \
BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(BOOST_PHOENIX_ITERATION, typename A, void)
/**/
#define BOOST_PHOENIX_A \
BOOST_PP_ENUM_PARAMS(BOOST_PHOENIX_ITERATION, A) \
/**/
#define BOOST_PHOENIX_A_ref \
BOOST_PP_ENUM_BINARY_PARAMS(BOOST_PHOENIX_ITERATION, A, & BOOST_PP_INTERCEPT)\
/**/
#define BOOST_PHOENIX_A_const_ref \
BOOST_PP_ENUM_BINARY_PARAMS(BOOST_PHOENIX_ITERATION, A, const& BOOST_PP_INTERCEPT)\
/**/
#define BOOST_PHOENIX_A_a \
BOOST_PP_ENUM_BINARY_PARAMS(BOOST_PHOENIX_ITERATION, A, a) \
/**/
#define BOOST_PHOENIX_A_ref_a \
BOOST_PP_ENUM_BINARY_PARAMS(BOOST_PHOENIX_ITERATION, A, & a) \
/**/
#define BOOST_PHOENIX_A_const_ref_a \
BOOST_PP_ENUM_BINARY_PARAMS(BOOST_PHOENIX_ITERATION, A, const& a) \
/**/
#define BOOST_PHOENIX_a \
BOOST_PP_ENUM_PARAMS(BOOST_PHOENIX_ITERATION, a) \
/**/
/////////////////////////////////////////////////////////////////////////////
// Begin Perfect Forward argument permutation calculation
/////////////////////////////////////////////////////////////////////////////
#define BOOST_PHOENIX_M0_R(_, N, __) \
(((A ## N)(&))((A ## N)(const&))) \
/**/
#define BOOST_PHOENIX_M0 \
BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_M0_R, _) \
/**/
#define BOOST_PHOENIX_M1_R_R(_, N, SEQ) \
BOOST_PP_SEQ_ELEM(N, SEQ) \
/**/
#define BOOST_PHOENIX_M1_R(R, __, ___, ELEM) \
(BOOST_PP_REPEAT(BOOST_PP_SEQ_SIZE(ELEM), BOOST_PHOENIX_M1_R_R, ELEM)) \
/**/
#define BOOST_PHOENIX_M1(R, PRODUCT) \
((BOOST_PP_SEQ_ENUM \
(BOOST_PP_SEQ_FOR_EACH_I_R \
(R, BOOST_PHOENIX_M1_R, _, PRODUCT)))) \
/**/
#define BOOST_PHOENIX_PERM_SEQ \
BOOST_PP_SEQ_FOR_EACH_PRODUCT(BOOST_PHOENIX_M1, BOOST_PHOENIX_M0) \
/**/
////////////////////////////////////////////////////////////////////////////
// End
////////////////////////////////////////////////////////////////////////////
#define BOOST_PHOENIX_PERM_SIZE \
BOOST_PP_SEQ_SIZE(BOOST_PHOENIX_PERM_SEQ) \
/**/
#define BOOST_PHOENIX_M2(_, N, TUPLE) \
BOOST_PP_COMMA_IF(N) BOOST_PP_TUPLE_ELEM(BOOST_PHOENIX_ITERATION, N, TUPLE) \
/**/
#define BOOST_PHOENIX_M3(_, N, TUPLE) \
BOOST_PP_COMMA_IF(N) BOOST_PP_TUPLE_ELEM(BOOST_PHOENIX_ITERATION, N, TUPLE) a ## N\
/**/
#define BOOST_PHOENIX_PERM_ELEM(N) \
BOOST_PP_SEQ_ELEM(N, BOOST_PHOENIX_PERM_SEQ) \
/**/
#define BOOST_PHOENIX_PERM_A(N) \
BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_M2, BOOST_PHOENIX_PERM_ELEM(N))\
/**/
#define BOOST_PHOENIX_PERM_A_a(N) \
BOOST_PP_REPEAT(BOOST_PHOENIX_ITERATION, BOOST_PHOENIX_M3, BOOST_PHOENIX_PERM_ELEM(N))\
/**/
#endif

View File

@@ -0,0 +1,35 @@
/*==============================================================================
Copyright (c) 2010 Thomas Heller
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)
==============================================================================*/
#undef BOOST_PHOENIX_typename_A
#undef BOOST_PHOENIX_typename_A_void
#undef BOOST_PHOENIX_A
#undef BOOST_PHOENIX_A_a
#undef BOOST_PHOENIX_A_ref
#undef BOOST_PHOENIX_A_const_ref
#undef BOOST_PHOENIX_A_ref_a
#undef BOOST_PHOENIX_A_const_ref_a
#undef BOOST_PHOENIX_a
#if BOOST_PHOENIX_IS_ITERATING
#undef PHEONIX_ITERATION
#undef BOOST_PHOENIX_PERM_A
#undef BOOST_PHOENIX_PERM_A_a
#undef BOOST_PHOENIX_M0_R
#undef BOOST_PHOENIX_M0
#undef BOOST_PHOENIX_M1_R_R
#undef BOOST_PHOENIX_M1_R
#undef BOOST_PHOENIX_M1
#undef BOOST_PHOENIX_M2
#undef BOOST_PHOENIX_M3
#undef BOOST_PHOENIX_PERM_SEQ
#undef BOOST_PHOENIX_PERM_SIZE
#undef BOOST_PHOENIX_PERM_ELEM
#endif