annotate DEPENDENCIES/generic/include/boost/spirit/home/phoenix/scope/scoped_environment.hpp @ 21:ee6b7d71155b

Some os/x build fixes
author Chris Cannam
date Tue, 05 Aug 2014 12:55:55 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2007 Joel de Guzman
Chris@16 3 Copyright (c) 2004 Daniel Wallin
Chris@16 4
Chris@16 5 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 ==============================================================================*/
Chris@16 8 #ifndef PHOENIX_SCOPE_SCOPED_ENVIRONMENT_HPP
Chris@16 9 #define PHOENIX_SCOPE_SCOPED_ENVIRONMENT_HPP
Chris@16 10
Chris@16 11 namespace boost { namespace phoenix
Chris@16 12 {
Chris@16 13 template <typename Env, typename OuterEnv, typename Locals, typename Map>
Chris@16 14 struct scoped_environment
Chris@16 15 {
Chris@16 16 typedef Env env_type;
Chris@16 17 typedef OuterEnv outer_env_type;
Chris@16 18 typedef Locals locals_type;
Chris@16 19 typedef Map map_type;
Chris@16 20 typedef typename Env::args_type args_type;
Chris@16 21 typedef typename Env::tie_type tie_type;
Chris@16 22
Chris@16 23 scoped_environment(
Chris@16 24 Env const& env
Chris@16 25 , OuterEnv const& outer_env
Chris@16 26 , Locals& locals)
Chris@16 27 : env(env)
Chris@16 28 , outer_env(outer_env)
Chris@16 29 , locals(locals) {}
Chris@16 30
Chris@16 31 tie_type const&
Chris@16 32 args() const
Chris@16 33 {
Chris@16 34 return env.args();
Chris@16 35 }
Chris@16 36
Chris@16 37 Env const& env;
Chris@16 38 OuterEnv const& outer_env;
Chris@16 39 Locals& locals;
Chris@16 40
Chris@16 41 private:
Chris@16 42 // silence MSVC warning C4512: assignment operator could not be generated
Chris@16 43 scoped_environment& operator= (scoped_environment const&);
Chris@16 44 };
Chris@16 45 }}
Chris@16 46
Chris@16 47 #endif