2 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
3 #ifndef BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP
4 #define BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP
6 #include <boost/phoenix/support/iterate.hpp>
8 #include <boost/phoenix/scope/detail/cpp03/preprocessed/dynamic.hpp>
13 #if !BOOST_PHOENIX_IS_ITERATING
15 #ifndef BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP
16 #define BOOST_PHOENIX_SCOPE_DETAIL_DYNAMIC_HPP
18 #include <boost/phoenix/support/iterate.hpp>
20 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
21 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/dynamic_" BOOST_PHOENIX_LIMIT_STR ".hpp")
24 /*==============================================================================
25 Copyright (c) 2005-2010 Joel de Guzman
26 Copyright (c) 2010 Thomas Heller
28 Distributed under the Boost Software License, Version 1.0. (See accompanying
29 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
30 ==============================================================================*/
32 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
33 #pragma wave option(preserve: 1)
36 #define BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER(_, N, __) \
38 typename expression::dynamic_member< \
42 BOOST_PP_CAT(member, BOOST_PP_INC(N)); \
45 #define BOOST_PHOENIX_ITERATION_PARAMS \
46 (3, (1, BOOST_PHOENIX_DYNAMIC_LIMIT, \
47 <boost/phoenix/scope/detail/cpp03/dynamic.hpp>))
48 #include BOOST_PHOENIX_ITERATE()
50 #undef BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER
54 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
55 #pragma wave option(output: null)
60 template <BOOST_PHOENIX_typename_A>
61 struct dynamic<BOOST_PHOENIX_A> : noncopyable
64 BOOST_PP_CAT(vector, BOOST_PHOENIX_ITERATION)<BOOST_PHOENIX_A>
67 dynamic<BOOST_PHOENIX_A>
70 dynamic_frame<self_type>
78 typename expression::dynamic_member<mpl::int_<N>, self_type *>::type const
79 init(self_type * scope)
83 dynamic_member<mpl::int_<N>, self_type *>::
84 make(mpl::int_<N>(), scope);
88 BOOST_PHOENIX_ITERATION
89 , BOOST_PHOENIX_SCOPE_DYNAMIC_MEMBER
93 mutable dynamic_frame_type* frame;
98 #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES