/usr/include/boost/phoenix/core
Edit: /usr/include/boost/phoenix/core/domain.hpp (2343B)
/*=============================================================================
Copyright (c) 2005-2010 Joel de Guzman
Copyright (c) 2010 Eric Niebler
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_DOMAIN_HPP
#define BOOST_PHOENIX_CORE_DOMAIN_HPP
#include
#include
#include
#include
#include
namespace boost { namespace phoenix
{
template
struct actor;
struct meta_grammar;
struct phoenix_generator
: proto::switch_
{
BOOST_PROTO_USE_BASIC_EXPR()
template
struct case_
: proto::otherwise(proto::_)> >
{};
};
// proto's assignment operator takes rhs by reference
template<>
struct phoenix_generator::case_
: proto::otherwise
>(proto::_)> >
{};
// proto's subscript operator takes rhs by reference
template<>
struct phoenix_generator::case_
: proto::otherwise
>(proto::_)> >
{};
struct phoenix_default_domain
: proto::domain<
proto::basic_default_generator
, proto::_
, proto::basic_default_domain
>
{
template
struct as_child
//: proto_base_domain::as_expr // proto lambda example.
: as_expr
{};
};
struct phoenix_domain
: proto::domain<
phoenix_generator
, meta_grammar
, proto::basic_default_domain
>
{
template
struct as_child
//: proto_base_domain::as_expr // proto lambda example.
: as_expr
{};
};
}}
#endif