1 /*==============================================================================
2 Copyright (c) 2001-2010 Joel de Guzman
3 Copyright (c) 2010 Eric Niebler
4 Copyright (c) 2010-2011 Thomas Heller
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9 #ifndef BOOST_PHOENIX_CORE_ARGUMENT_HPP
10 #define BOOST_PHOENIX_CORE_ARGUMENT_HPP
12 #include <boost/phoenix/core/limits.hpp>
13 #include <boost/phoenix/core/actor.hpp>
14 #include <boost/phoenix/core/expression.hpp>
15 #include <boost/phoenix/core/terminal.hpp>
16 #include <boost/mpl/int.hpp>
18 namespace boost { namespace phoenix
20 ////////////////////////////////////////////////////////////////////////////
24 // function for evaluating argument placeholders like: _1
26 ////////////////////////////////////////////////////////////////////////////
32 typedef typename mpl::int_<I>::value_type value_type;
33 static const value_type value = mpl::int_<I>::value;
35 bool operator==(argument) const
41 bool operator==(argument<I2>) const
50 struct is_placeholder<phoenix::argument<I> >
55 namespace boost { namespace phoenix
61 : expression::terminal<phoenix::argument<I> >
63 typedef typename expression::terminal<phoenix::argument<I> >::type type;
64 static const type make()
66 type const e = {{{}}};
72 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
74 #include <boost/phoenix/core/detail/cpp03/preprocessed/argument.hpp>
78 #if !defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
79 #include <boost/phoenix/core/detail/argument.hpp>
82 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
83 #pragma wave option(preserve: 2, line: 0, output: "detail/cpp03/preprocessed/argument_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp")
85 /*==============================================================================
86 Copyright (c) 2001-2010 Joel de Guzman
87 Copyright (c) 2010-2011 Thomas Heller
89 Distributed under the Boost Software License, Version 1.0. (See accompanying
90 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
91 ==============================================================================*/
93 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
94 #pragma wave option(preserve: 1)
97 #ifdef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
98 #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
99 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
102 #include <boost/phoenix/core/detail/argument.hpp>
104 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
105 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
106 #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE
109 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
110 #pragma wave option(output: null)
113 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
114 #pragma wave option(preserve: 2, line: 0, output: "detail/cpp03/preprocessed/argument_no_predefined_" BOOST_PHOENIX_LIMIT_STR ".hpp")
116 /*==============================================================================
117 Copyright (c) 2001-2010 Joel de Guzman
118 Copyright (c) 2010-2011 Thomas Heller
120 Distributed under the Boost Software License, Version 1.0. (See accompanying
121 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
122 ==============================================================================*/
124 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
125 #pragma wave option(preserve: 1)
128 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
129 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
130 #define BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
133 #include <boost/phoenix/core/detail/argument.hpp>
135 #ifndef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS_RESTORE
136 #undef BOOST_PHOENIX_NO_PREDEFINED_TERMINALS
137 #undef BOOST_PHOENIX_NO_PREDEFINED_TERIMINALS_RESTORE
140 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
141 #pragma wave option(output: null)