2.10.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
fcppt::options::unit< Label > Class Template Reference

Detailed Description

template<typename Label>
class fcppt::options::unit< Label >

A parser that succeeds when provided with no arguments.

Template Parameters
LabelAn fcppt::record::label.

Public Types

typedef fcppt::record::element< Label, fcppt::unitelement_type
 
typedef fcppt::record::variadic< element_typeresult_type
 

Public Member Functions

 unit ()
 
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::string usage () const
 

Member Typedef Documentation

◆ element_type

template<typename Label >
typedef fcppt::record::element< Label, fcppt::unit > fcppt::options::unit< Label >::element_type

◆ result_type

template<typename Label >
typedef fcppt::record::variadic< element_type > fcppt::options::unit< Label >::result_type

Constructor & Destructor Documentation

◆ unit()

template<typename Label >
fcppt::options::unit< Label >::unit ( )

Member Function Documentation

◆ flag_names()

template<typename Label >
fcppt::options::flag_name_set fcppt::options::unit< Label >::flag_names ( ) const

◆ option_names()

template<typename Label >
fcppt::options::option_name_set fcppt::options::unit< Label >::option_names ( ) const

◆ parse()

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

◆ usage()

template<typename Label >
fcppt::string fcppt::options::unit< Label >::usage ( ) const