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

◆ option_names()

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

◆ parse()

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

◆ usage()

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