|
cli20 0.1.2
A C++20 typed-schema command-line parser
|
Partial specialisation of ActionCtx used for intermediate pipeline steps. More...
#include <action.hh>
Public Member Functions | |
| template<class T> | |
| ActionCtx (const ActionCtx< T > &other) | |
| Constructs from a typed ActionCtx<T>, copying the counters. | |
| ActionCtx ()=default | |
Public Attributes | |
| size_t | index {} |
| Zero-based index into argv of the current token. | |
| size_t | occurrences {} |
| Number of times the parent option token has appeared. | |
| size_t | nargs {} |
| Number of values in this option occurrence. | |
| size_t | value_index {} |
| 0-based index of current value in this occurrence. | |
| size_t | total_values {} |
| Total values across all occurrences of this option. | |
| std::reference_wrapper< void > | arg |
| Reference to the argument's storage value. | |
Partial specialisation of ActionCtx used for intermediate pipeline steps.
Conversion and validation actions do not have access to the final storage; they receive ActionCtx<void> which carries only the positional counters. This specialisation also provides a converting constructor from ActionCtx<T> so that the parser can downcast when invoking non-terminal actions.
|
inline |
|
default |
| std::reference_wrapper<void> cli::ActionCtx< void >::arg |
| size_t cli::ActionCtx< void >::index {} |
| size_t cli::ActionCtx< void >::nargs {} |
| size_t cli::ActionCtx< void >::occurrences {} |
| size_t cli::ActionCtx< void >::total_values {} |
| size_t cli::ActionCtx< void >::value_index {} |