Chris@16: Chris@16: #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES) Chris@16: #ifndef BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP Chris@16: #define BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #include Chris@16: Chris@16: #endif Chris@16: #else Chris@16: Chris@16: #if !BOOST_PHOENIX_IS_ITERATING Chris@16: Chris@16: #ifndef BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP Chris@16: #define BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 2, line: 0, output: "preprocessed/dynamic_" BOOST_PHOENIX_LIMIT_STR ".hpp") Chris@16: #endif Chris@16: Chris@16: /*============================================================================== Chris@16: Copyright (c) 2005-2010 Joel de Guzman Chris@16: Copyright (c) 2010 Thomas Heller Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 1) Chris@16: #endif Chris@16: Chris@16: #define BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER(_, N, __) \ Chris@16: typedef \ Chris@16: typename expression::dynamic_member< \ Chris@16: mpl::int_ \ Chris@16: , self_type * \ Chris@16: >::type const \ Chris@16: BOOST_PP_CAT(member, BOOST_PP_INC(N)); \ Chris@16: /**/ Chris@16: Chris@16: #define BOOST_PHOENIX_ITERATION_PARAMS \ Chris@16: (3, (1, BOOST_PHOENIX_DYNAMIC_LIMIT, \ Chris@16: )) Chris@16: #include BOOST_PHOENIX_ITERATE() Chris@16: Chris@16: #undef BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER Chris@16: Chris@16: #endif Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(output: null) Chris@16: #endif Chris@16: Chris@16: #else Chris@16: Chris@16: template Chris@16: struct dynamic : noncopyable Chris@16: { Chris@16: typedef Chris@16: BOOST_PP_CAT(vector, BOOST_PHOENIX_ITERATION) Chris@16: tuple_type; Chris@16: typedef Chris@16: dynamic Chris@16: self_type; Chris@16: typedef Chris@16: dynamic_frame Chris@16: dynamic_frame_type; Chris@16: Chris@16: dynamic() Chris@16: : frame(0) {} Chris@16: Chris@16: template Chris@16: static Chris@16: typename expression::dynamic_member, self_type *>::type const Chris@16: init(self_type * scope) Chris@16: { Chris@16: return Chris@16: expression:: Chris@16: dynamic_member, self_type *>:: Chris@16: make(mpl::int_(), scope); Chris@16: } Chris@16: Chris@16: BOOST_PP_REPEAT( Chris@16: BOOST_PHOENIX_ITERATION Chris@16: , BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER Chris@16: , _ Chris@16: ) Chris@16: Chris@16: mutable dynamic_frame_type* frame; Chris@16: }; Chris@16: Chris@16: #endif Chris@16: Chris@16: #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES