arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::parsing::pre_parse_data_base< Validator, HasTarget > Class Template Reference

#include <arg_router/parsing/pre_parse_data.hpp>

Public Member Functions

vector< parsing::token_type > & args () noexcept
 
const vector< parsing::token_type > & args () const noexcept
 
const Validator & validator () const noexcept
 

Static Public Attributes

constexpr static auto has_target = HasTarget
 

Detailed Description

template<typename Validator, bool HasTarget>
class arg_router::parsing::pre_parse_data_base< Validator, HasTarget >

Base class for pre_parse_data.

This is only used for pre_parse_data.

Template Parameters
ValidatorValidation checker type, see derived class documentation for more info
HasTargetTrue if this instance contains a parse_target reference

Definition at line 29 of file pre_parse_data.hpp.

Member Function Documentation

◆ args() [1/2]

template<typename Validator , bool HasTarget>
const vector<parsing::token_type>& arg_router::parsing::pre_parse_data_base< Validator, HasTarget >::args ( ) const
inlinenoexcept

Const overload.

Returns
Arg list

Definition at line 45 of file pre_parse_data.hpp.

◆ args() [2/2]

template<typename Validator , bool HasTarget>
vector<parsing::token_type>& arg_router::parsing::pre_parse_data_base< Validator, HasTarget >::args ( )
inlinenoexcept

Returns the arg list reference.

Returns
Arg list

Definition at line 39 of file pre_parse_data.hpp.

◆ validator()

template<typename Validator , bool HasTarget>
const Validator& arg_router::parsing::pre_parse_data_base< Validator, HasTarget >::validator ( ) const
inlinenoexcept

Returns the validator reference.

Returns
Validator

Definition at line 51 of file pre_parse_data.hpp.

Member Data Documentation

◆ has_target

template<typename Validator , bool HasTarget>
constexpr static auto arg_router::parsing::pre_parse_data_base< Validator, HasTarget >::has_target = HasTarget
staticconstexpr

True if this instance contains a parse_target reference

Definition at line 33 of file pre_parse_data.hpp.


The documentation for this class was generated from the following file: