4.4.1
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
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

using element_type = fcppt::record::element< Label, fcppt::unit >
 
using result_type = fcppt::record::object< element_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::options::usage usage () const
 

Member Typedef Documentation

◆ element_type

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

◆ result_type

template<typename Label >
using fcppt::options::unit< Label >::result_type = fcppt::record::object<element_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::options::usage fcppt::options::unit< Label >::usage ( ) const