Argument class interface.
More...
#include <argument_base.hpp>
Argument class interface.
Definition at line 26 of file argument_base.hpp.
◆ ~argument_base()
| virtual ap::detail::argument_base::~argument_base |
( |
| ) |
|
|
virtualdefault |
◆ count()
| virtual std::size_t ap::detail::argument_base::count |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ has_parsed_values()
| virtual bool ap::detail::argument_base::has_parsed_values |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ has_predefined_values()
| virtual bool ap::detail::argument_base::has_predefined_values |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ has_value()
| virtual bool ap::detail::argument_base::has_value |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ help()
| virtual const std::optional< std::string > & ap::detail::argument_base::help |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ help_builder()
|
|
protectedpure virtualnoexcept |
- Parameters
-
| verbose | The verbosity mode value. If true all non-default parameters will be included in the output. |
- Returns
- A help message builder object for the argument.
Implemented in ap::argument< ArgT, T >.
◆ is_greedy()
| virtual bool ap::detail::argument_base::is_greedy |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ is_hidden()
| virtual bool ap::detail::argument_base::is_hidden |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ is_optional()
| virtual bool ap::detail::argument_base::is_optional |
( |
| ) |
const |
|
pure virtualnoexcept |
- Returns
true if the argument is an optional argument instance, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ is_positional()
| virtual bool ap::detail::argument_base::is_positional |
( |
| ) |
const |
|
pure virtualnoexcept |
- Returns
true if the argument is a positional argument instance, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ is_required()
| virtual bool ap::detail::argument_base::is_required |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ is_used()
| virtual bool ap::detail::argument_base::is_used |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ mark_used()
| virtual bool ap::detail::argument_base::mark_used |
( |
| ) |
|
|
protectedpure virtual |
Mark the argument as used.
- Returns
true if the argument accepts further values, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ name()
| virtual const argument_name & ap::detail::argument_base::name |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ nvalues_ordering()
| virtual std::weak_ordering ap::detail::argument_base::nvalues_ordering |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
◆ set_value()
| virtual bool ap::detail::argument_base::set_value |
( |
const std::string & |
value | ) |
|
|
protectedpure virtual |
Set the value for the argument.
- Parameters
-
| value | The string representation of the value. |
- Returns
true if the argument accepts further values, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ suppresses_arg_checks()
| virtual bool ap::detail::argument_base::suppresses_arg_checks |
( |
| ) |
const |
|
pure virtualnoexcept |
- Returns
true if argument checks suppressing is enabled for the argument, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ suppresses_group_checks()
| virtual bool ap::detail::argument_base::suppresses_group_checks |
( |
| ) |
const |
|
pure virtualnoexcept |
- Returns
true if argument group checks suppressing is enabled for the argument, false otherwise.
Implemented in ap::argument< ArgT, T >.
◆ value()
| virtual const std::any & ap::detail::argument_base::value |
( |
| ) |
const |
|
protectedpure virtual |
◆ values()
| virtual const std::vector< std::any > & ap::detail::argument_base::values |
( |
| ) |
const |
|
protectedpure virtual |
◆ ::ap::argument_parser
The documentation for this class was generated from the following file: