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::optional< Subject > Struct Template Reference

#include <optional.hpp>

Inheritance diagram for boost::spirit::x3::optional< Subject >:
Collaboration diagram for boost::spirit::x3::optional< Subject >:

Public Types

typedef proxy< Subject,
optional< Subject > > 
base_type
 
typedef unary_category category
 
typedef Subject subject_type
 
typedef optional< Subject > derived_type
 

Public Member Functions

 optional (Subject const &subject)
 
template<typename Iterator , typename Context , typename RContext , typename Attribute >
bool parse_subject (Iterator &first, Iterator const &last, Context const &context, RContext &rcontext, Attribute &attr, traits::container_attribute) const
 
template<typename Iterator , typename Context , typename RContext , typename Attribute >
bool parse_subject (Iterator &first, Iterator const &last, Context const &context, RContext &rcontext, Attribute &attr, traits::optional_attribute) const
 
bool parse_subject (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, Attribute &attr, Category) const
 
bool parse (Iterator &first, Iterator const &last, Context const &context, RuleContext &rcontext, Attribute &attr) const
 
unary_parser const & get_unary () const
 
optional< Subject >const & derived () const
 
action< optional< Subject >
, Action > 
operator[] (Action f) const
 
guard< optional< Subject >
, Handler > 
on_error (Handler f) const
 

Public Attributes

Subject subject
 

Static Public Attributes

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

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename Subject >
boost::spirit::x3::optional< Subject >::optional ( Subject const &  subject)
inline

Member Function Documentation

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

Member Data Documentation

template<typename Subject >
bool const boost::spirit::x3::optional< Subject >::handles_container = true
static
bool const boost::spirit::x3::unary_parser< Subject, optional< Subject > >::has_action
staticinherited
bool const boost::spirit::x3::proxy< Subject, optional< Subject > >::is_pass_through_unary
staticinherited
Subject boost::spirit::x3::unary_parser< Subject, optional< Subject > >::subject
inherited

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