GeezerVison is showing taywee.github.io — args: args::MapFlagList< K, T, List, Reader, Map > Class Template Reference
|
args 6.6.1
A simple single-header C++11 STL-only argument parser library
|
Loading...
Searching...
No Matches
args::MapFlagList< K, T, List, Reader, Map > Class Template Reference
A mapping value flag list class.
More...
#include <args.hxx>
Inheritance diagram for args::MapFlagList< K, T, List, Reader, Map >:
Public Types |
|
typedef T | value_type |
| |
|
typedef Container::allocator_type | allocator_type |
| |
|
typedef Container::pointer | pointer |
| |
|
typedef Container::const_pointer | const_pointer |
| |
|
typedef T & | reference |
| |
|
typedef const T & | const_reference |
| |
|
typedef Container::size_type | size_type |
| |
|
typedef Container::difference_type | difference_type |
| |
|
typedef Container::iterator | iterator |
| |
|
typedef Container::const_iterator | const_iterator |
| |
|
typedef std::reverse_iterator< iterator > | reverse_iterator |
| |
|
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| |
Public Member Functions |
|
| MapFlagList (Group &group_, const std::string &name_, const std::string &help_, Matcher &&matcher_, const Map< K, T > &map_, const Container &defaultValues_=Container(), Options options_={}) |
| |
| virtual void | ParseValue (const std::vector< std::string > &values_) override |
| | Parse values of this option.
|
| |
|
Container & | Get () noexcept |
| | Get the value.
|
| |
|
Container & | operator* () noexcept |
| | Get the value.
|
| |
|
const Container & | operator* () const noexcept |
| | Get the values.
|
| |
|
Container * | operator-> () noexcept |
| | Get the values.
|
| |
|
const Container * | operator-> () const noexcept |
| | Get the values.
|
| |
| virtual std::string | Name () const override |
| |
| virtual void | Reset () noexcept override |
| |
| virtual FlagBase * | Match (const EitherFlag &arg) override |
| |
|
iterator | begin () noexcept |
| |
|
const_iterator | begin () const noexcept |
| |
|
const_iterator | cbegin () const noexcept |
| |
|
iterator | end () noexcept |
| |
|
const_iterator | end () const noexcept |
| |
|
const_iterator | cend () const noexcept |
| |
Public Member Functions inherited from args::ValueFlagBase |
|
| ValueFlagBase (const std::string &name_, const std::string &help_, Matcher &&matcher_, const bool extraError_=false) |
| |
|
| ValueFlagBase (const std::string &name_, const std::string &help_, Matcher &&matcher_, Options options_) |
| |
| virtual Nargs | NumberOfArguments () const noexcept override |
| | Defines how many values can be consumed by this option.
|
| |
Public Member Functions inherited from args::FlagBase |
|
| FlagBase (const std::string &name_, const std::string &help_, Matcher &&matcher_, const bool extraError_=false) |
| |
|
| FlagBase (const std::string &name_, const std::string &help_, Matcher &&matcher_, Options options_) |
| |
| virtual bool | IsFlag () const override |
| |
| virtual std::vector< FlagBase * > | GetAllFlags () override |
| |
|
const Matcher & | GetMatcher () const |
| |
| virtual void | Validate (const std::string &shortPrefix, const std::string &longPrefix) const override |
| |
| virtual std::vector< std::string > | GetProgramLine (const HelpParams ¶ms) const override |
| |
| virtual bool | HasFlag () const override |
| |
Public Member Functions inherited from args::NamedBase |
|
| NamedBase (const std::string &name_, const std::string &help_, Options options_={}) |
| |
| void | HelpDefault (const std::string &str) |
| | Sets default value string that will be added to argument description.
|
| |
|
std::string | HelpDefault (const HelpParams ¶ms) const |
| | Gets default value string that will be added to argument description.
|
| |
| void | HelpChoices (const std::vector< std::string > &array) |
| | Sets choices strings that will be added to argument description.
|
| |
|
std::vector< std::string > | HelpChoices (const HelpParams ¶ms) const |
| | Gets choices strings that will be added to argument description.
|
| |
| virtual std::vector< std::tuple< std::string, std::string, unsigned > > | GetDescription (const HelpParams ¶ms, const unsigned indentLevel) const override |
| |
Public Member Functions inherited from args::Base |
|
| Base (const std::string &help_, Options options_={}) |
| |
|
Options | GetOptions () const noexcept |
| |
|
bool | IsRequired () const noexcept |
| |
| virtual bool | Matched () const noexcept |
| |
|
| operator bool () const noexcept |
| |
|
virtual std::vector< Command * > | GetCommands () |
| |
|
virtual bool | IsGroup () const |
| |
| virtual PositionalBase * | GetNextPositional () |
| |
| virtual bool | HasPositional () const |
| |
| virtual bool | HasCommand () const |
| |
|
void | KickOut (bool kickout_) noexcept |
| | Sets a kick-out value for building subparsers.
|
| |
|
bool | KickOut () const noexcept |
| | Gets the kick-out value for building subparsers.
|
| |
Protected Member Functions |
| virtual std::vector< std::string > | GetChoicesStrings (const HelpParams &) const override |
| |
Protected Member Functions inherited from args::FlagBase |
| virtual std::string | GetNameString (const HelpParams ¶ms) const override |
| |
Protected Member Functions inherited from args::NamedBase |
|
virtual std::string | GetDefaultString (const HelpParams &) const |
| |
|
void | AddDescriptionPostfix (std::string &dest, const bool isManual, const std::string &manual, bool isGenerated, const std::string &generated, const std::string &str) const |
| |
Additional Inherited Members |
Protected Attributes inherited from args::FlagBase |
|
const Matcher | matcher |
| |
Protected Attributes inherited from args::NamedBase |
|
const std::string | name |
| |
|
bool | kickout = false |
| |
|
std::string | defaultString |
| |
|
bool | defaultStringManual = false |
| |
|
std::vector< std::string > | choicesStrings |
| |
|
bool | choicesStringManual = false |
| |
Protected Attributes inherited from args::Base |
|
bool | matched = false |
| |
|
const std::string | help |
| |
Detailed Description
template<typename K, typename T, template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
class args::MapFlagList< K, T, List, Reader, Map > A mapping value flag list class.
- Template Parameters
-
| K | the type to extract the argument as |
| T | the type to store the result as |
| List | the list type that houses the values |
| Reader | The functor type used to read the argument, taking the name, value, and destination reference with operator(), and returning a bool (if ARGS_NOEXCEPT is defined) |
| Map | The Map type. Should operate like std::map or std::unordered_map |
Member Function Documentation
◆ GetChoicesStrings()
template<typename K , typename T , template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
|
|
inlineoverrideprotectedvirtual |
◆ Match()
template<typename K , typename T , template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
◆ Name()
template<typename K , typename T , template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
◆ ParseValue()
template<typename K , typename T , template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
| virtual void args::MapFlagList< K, T, List, Reader, Map >::ParseValue |
( |
const std::vector< std::string > & |
value | ) |
|
|
inlineoverridevirtual |
◆ Reset()
template<typename K , typename T , template< typename... > class List = detail::vector, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
|
|
inlineoverridevirtualnoexcept |
The documentation for this class was generated from the following file:
Generated by 1.9.8
|