1 /*=============================================================================
2 Copyright (c) 2003 Jonathan de Halleux (dehalleux@pelikhan.com)
3 http://spirit.sourceforge.net/
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef BOOST_SPIRIT_ACTOR_REF_ACTOR_HPP
9 #define BOOST_SPIRIT_ACTOR_REF_ACTOR_HPP
11 #include <boost/spirit/home/classic/namespace.hpp>
13 namespace boost { namespace spirit {
15 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
17 ///////////////////////////////////////////////////////////////////////////
19 // A semantic action policy holder. This holder stores a reference to ref,
20 // act methods are fead with this reference. The parse result is not used
23 // (This doc uses convention available in actors.hpp)
27 // where ref_ is stored.
34 ///////////////////////////////////////////////////////////////////////////
39 class ref_actor : public ActionT
50 void operator()(T2 const& /*val*/) const
52 this->act(ref); // defined in ActionT
56 template<typename IteratorT>
58 IteratorT const& /*first*/,
59 IteratorT const& /*last*/
62 this->act(ref); // defined in ActionT
66 BOOST_SPIRIT_CLASSIC_NAMESPACE_END