/usr/include/boost/phoenix/core
NameSizeModeActions
detail/-0755rm
actor.hpp77720644editdlrm
argument.hpp46950644editdlrm
arity.hpp25520644editdlrm
as_actor.hpp7980644editdlrm
call.hpp40880644editdlrm
debug.hpp6550644editdlrm
domain.hpp23430644editdlrm
environment.hpp149390644editdlrm
expression.hpp30330644editdlrm
function_equal.hpp55110644editdlrm
is_actor.hpp13030644editdlrm
is_nullary.hpp52970644editdlrm
is_value.hpp16190644editdlrm
limits.hpp61100644editdlrm
meta_grammar.hpp48670644editdlrm
nothing.hpp17300644editdlrm
reference.hpp46650644editdlrm
terminal.hpp51240644editdlrm
terminal_fwd.hpp8080644editdlrm
v2_eval.hpp17560644editdlrm
value.hpp41180644editdlrm
Edit: /usr/include/boost/phoenix/core/actor.hpp (7772B)
/*============================================================================= Copyright (c) 2005-2010 Joel de Guzman Copyright (c) 2010 Eric Niebler Copyright (c) 2010 Thomas Heller Copyright (c) 2014 John Fletcher 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) ==============================================================================*/ #ifndef BOOST_PHOENIX_CORE_ACTOR_HPP #define BOOST_PHOENIX_CORE_ACTOR_HPP #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef BOOST_PHOENIX_NO_VARIADIC_ACTOR # include # include # include #endif #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable: 4522) // 'this' used in base member initializer list #pragma warning(disable: 4510) // default constructor could not be generated #pragma warning(disable: 4610) // can never be instantiated - user defined cons #endif namespace boost { namespace phoenix { template struct actor; namespace detail { struct error_expecting_arguments { template error_expecting_arguments(T const&) {} }; struct error_invalid_lambda_expr { template error_invalid_lambda_expr(T const&) {} }; template struct result_type_deduction_helper { typedef T const & type; }; template struct result_type_deduction_helper { typedef T & type; }; template struct result_type_deduction_helper { typedef T const & type; }; } namespace result_of { #ifdef BOOST_PHOENIX_NO_VARIADIC_ACTOR // Bring in the result_of::actor<> #include #else template struct actor_impl { typedef typename boost::phoenix::evaluator::impl< Expr const& , vector2< typename vector_chooser:: template apply *, A...>::type& , default_actions > const & , proto::empty_env >::result_type type; }; template struct actor : actor_impl {}; template struct nullary_actor_result : actor_impl {}; #endif template struct actor { typedef // avoid calling result_of::actor when this is false typename mpl::eval_if_c< result_of::is_nullary::value , nullary_actor_result , mpl::identity >::type type; }; } //////////////////////////////////////////////////////////////////////////// // // actor // // The actor class. The main thing! In phoenix, everything is an actor // This class is responsible for full function evaluation. Partial // function evaluation involves creating a hierarchy of actor objects. // //////////////////////////////////////////////////////////////////////////// template struct actor { typedef typename mpl::eval_if_c< mpl::or_< is_custom_terminal , mpl::bool_::value> >::value , proto::terminal , mpl::identity >::type expr_type; BOOST_PROTO_BASIC_EXTENDS(expr_type, actor, phoenix_domain) BOOST_PROTO_EXTENDS_SUBSCRIPT() BOOST_PROTO_EXTENDS_ASSIGN_() template struct result; typename result_of::actor::type operator()() { typedef vector1 *> env_type; env_type env = {this}; return phoenix::eval(*this, phoenix::context(env, default_actions())); } typename result_of::actor::type operator()() const { typedef vector1 *> env_type; env_type env = {this}; return phoenix::eval(*this, phoenix::context(env, default_actions())); } template typename evaluator::impl< proto_base_expr const & , typename result_of::context< Env const & , default_actions const & >::type , proto::empty_env >::result_type eval(Env const & env) const { return phoenix::eval(*this, phoenix::context(env, default_actions())); } #ifdef BOOST_PHOENIX_NO_VARIADIC_ACTOR // Bring in the rest #include #else template struct result : result_of::actor< proto_base_expr , typename mpl::if_, A, A const &>::type... > {}; template typename result::type operator()(A &&... a) { typedef typename vector_chooser::template apply< const actor * , typename mpl::if_, A, A const &>::type... >::type env_type; env_type env = {this, a...}; return phoenix::eval(*this, phoenix::context(env, default_actions())); } template typename result::type operator()(A &&... a) const { typedef typename vector_chooser::template apply< const actor * , typename mpl::if_, A, A const &>::type... >::type env_type; env_type env = {this, a...}; return phoenix::eval(*this, phoenix::context(env, default_actions())); } #endif BOOST_DELETED_FUNCTION(actor& operator=(actor const&)) }; }} namespace boost { // specialize boost::result_of to return the proper result type template struct result_of()> : phoenix::result_of::actor::proto_base_expr> {}; template struct result_of const()> : phoenix::result_of::actor::proto_base_expr> {}; } #ifdef BOOST_MSVC #pragma warning(pop) #endif #endif