Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::spirit::x3::guard< Subject, Handler > Struct Template Reference

#include <parser.hpp>

Inheritance diagram for boost::spirit::x3::guard< Subject, Handler >:
Collaboration diagram for boost::spirit::x3::guard< Subject, Handler >:

Public Types

typedef unary_parser< Subject,
guard< Subject, Handler > > 
base_type
 
typedef unary_category category
 
typedef Subject subject_type
 
typedef guard< Subject, Handler > derived_type
 

Public Member Functions

 guard (Subject const &subject, Handler handler)
 
template<typename Iterator , typename Context , typename RuleContext , typename Attribute >
bool parse (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, Attribute &attr) const
 
unary_parser const & get_unary () const
 
guard< Subject, Handler >const & derived () const
 
action< guard< Subject,
Handler >, Action > 
operator[] (Action f) const
 
guard< guard< Subject, Handler >
, Handler > 
on_error (Handler f) const
 

Public Attributes

Handler handler
 
Subject subject
 

Static Public Attributes

static bool const is_pass_through_unary = true
 
static bool const has_action
 
static bool const handles_container
 

Member Typedef Documentation

template<typename Subject , typename Handler >
typedef unary_parser<Subject, guard<Subject, Handler> > boost::spirit::x3::guard< Subject, Handler >::base_type
typedef unary_category boost::spirit::x3::unary_parser< Subject, guard< Subject, Handler > >::category
inherited
typedef guard< Subject, Handler > boost::spirit::x3::parser< guard< Subject, Handler > >::derived_type
inherited
typedef Subject boost::spirit::x3::unary_parser< Subject, guard< Subject, Handler > >::subject_type
inherited

Constructor & Destructor Documentation

template<typename Subject , typename Handler >
boost::spirit::x3::guard< Subject, Handler >::guard ( Subject const &  subject,
Handler  handler 
)
inline

Member Function Documentation

guard< Subject, Handler > const& boost::spirit::x3::parser< guard< Subject, Handler > >::derived ( ) const
inlineinherited
unary_parser const& boost::spirit::x3::unary_parser< Subject, guard< Subject, Handler > >::get_unary ( ) const
inlineinherited
guard<guard< Subject, Handler > , Handler> boost::spirit::x3::parser< guard< Subject, Handler > >::on_error ( Handler  f) const
inlineinherited
action<guard< Subject, Handler > , Action> boost::spirit::x3::parser< guard< Subject, Handler > >::operator[] ( Action  f) const
inlineinherited
template<typename Subject , typename Handler >
template<typename Iterator , typename Context , typename RuleContext , typename Attribute >
bool boost::spirit::x3::guard< Subject, Handler >::parse ( Iterator &  first,
Iterator const &  last,
Context const &  context,
RuleContext &  rcontext,
Attribute &  attr 
) const
inline

Member Data Documentation

template<typename Subject , typename Handler >
Handler boost::spirit::x3::guard< Subject, Handler >::handler
bool const boost::spirit::x3::parser< guard< Subject, Handler > >::handles_container
staticinherited
bool const boost::spirit::x3::unary_parser< Subject, guard< Subject, Handler > >::has_action
staticinherited
template<typename Subject , typename Handler >
bool const boost::spirit::x3::guard< Subject, Handler >::is_pass_through_unary = true
static
Subject boost::spirit::x3::unary_parser< Subject, guard< Subject, Handler > >::subject
inherited

The documentation for this struct was generated from the following file: