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::action< Subject, Action > Struct Template Reference

#include <parser.hpp>

Inheritance diagram for boost::spirit::x3::action< Subject, Action >:
Collaboration diagram for boost::spirit::x3::action< Subject, Action >:

Public Types

typedef unary_parser< Subject,
action< Subject, Action > > 
base_type
 
typedef unary_category category
 
typedef Subject subject_type
 
typedef action< Subject, Action > derived_type
 

Public Member Functions

 action (Subject const &subject, Action f)
 
template<typename Iterator , typename Context , typename RuleContext , typename Attribute >
bool call_action (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, Attribute &attr) const
 
template<typename Iterator , typename Context , typename RuleContext , typename Attribute >
bool parse_main (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, Attribute &attr) const
 
template<typename Iterator , typename Context , typename RuleContext >
bool parse_main (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, raw_attribute_type &) const
 
template<typename Iterator , typename Context , typename RuleContext >
bool parse (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, unused_type) const
 
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
 
action< Subject, Action >const & derived () const
 
action< action< Subject,
Action >, Action > 
operator[] (Action f) const
 
guard< action< Subject, Action >
, Handler > 
on_error (Handler f) const
 

Public Attributes

Action f
 
Subject subject
 

Static Public Attributes

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename Subject , typename Action >
boost::spirit::x3::action< Subject, Action >::action ( Subject const &  subject,
Action  f 
)
inline

Member Function Documentation

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

Member Data Documentation

template<typename Subject , typename Action >
Action boost::spirit::x3::action< Subject, Action >::f
bool const boost::spirit::x3::parser< action< Subject, Action > >::handles_container
staticinherited
template<typename Subject , typename Action >
bool const boost::spirit::x3::action< Subject, Action >::has_action = true
static
template<typename Subject , typename Action >
bool const boost::spirit::x3::action< Subject, Action >::is_pass_through_unary = true
static
Subject boost::spirit::x3::unary_parser< Subject, action< Subject, Action > >::subject
inherited

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