1 [/==============================================================================
2 Copyright (C) 2001-2010 Joel de Guzman
3 Copyright (C) 2001-2005 Dan Marsden
4 Copyright (C) 2001-2010 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 ===============================================================================/]
12 The `Actor` is the main concept behind the library. Actors are function objects.
13 An actor can accept 0 to `BOOST_PHOENIX_LIMIT` arguments.
15 [note You can set `BOOST_PHOENIX_LIMIT`, the predefined maximum arity an
16 actor can take. By default, `BOOST_PHOENIX_LIMIT` is set to 10.]
18 Phoenix supplies an `actor` class template whose specializations
19 model the `Actor` concept. `actor` has one template parameter, `Expr`,
20 that supplies the underlying expression to evaluate.
22 template <typename Expr>
31 template <typename T0>
33 operator()(T0& _0) const;
35 template <typename T0>
37 operator()(T0 const& _0) const;
39 template <typename T0>
43 template <typename T0>
45 operator()(T0 const& _0);
51 The actor class accepts the arguments through a set of function call operators
52 for 0 to `BOOST_PHOENIX_LIMIT` arities (Don't worry about the details, for now. Note, for example,
53 that we skimed over the details regarding `return_type`). The arguments
54 are then forwarded to the actor's `Expr` for evaluation.