4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
Public Types | Public Member Functions
fcppt::options::many< Parser > Class Template Reference

Detailed Description

template<typename Parser>
class fcppt::options::many< Parser >

A parser for zero or more elements.

Wraps a parser such that it may apply zero or more times. The result type is a record that adds one layer of std::vector to the elements of the result type of Parser.

See also
fcppt::options::make_many

Public Types

using result_type = fcppt::record::map_elements< fcppt::options::result_of< Parser >, fcppt::mpl::bind< fcppt::mpl::lambda< std::vector >, fcppt::mpl::bind< fcppt::mpl::lambda< fcppt::record::element_to_type >, fcppt::mpl::arg< 1 > > > >
 

Public Member Functions

 many (Parser &&)
 
fcppt::options::parse_result< result_typeparse (fcppt::options::state &&, fcppt::options::parse_context const &) const
 
fcppt::options::flag_name_set flag_names () const
 
fcppt::options::option_name_set option_names () const
 
fcppt::options::usage usage () const
 

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ many()

template<typename Parser >
fcppt::options::many< Parser >::many ( Parser &&  )
explicit

Member Function Documentation

◆ flag_names()

template<typename Parser >
fcppt::options::flag_name_set fcppt::options::many< Parser >::flag_names ( ) const

◆ option_names()

template<typename Parser >
fcppt::options::option_name_set fcppt::options::many< Parser >::option_names ( ) const

◆ parse()

template<typename Parser >
fcppt::options::parse_result< result_type > fcppt::options::many< Parser >::parse ( fcppt::options::state &&  ,
fcppt::options::parse_context const &   
) const

◆ usage()

template<typename Parser >
fcppt::options::usage fcppt::options::many< Parser >::usage ( ) const