|
arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/policy/dependent.hpp>
Public Types | |
| using | depends_policies_type = std::tuple< std::decay_t< DependsPolicies >... > |
Public Member Functions | |
| constexpr | dependent_t ([[maybe_unused]] const DependsPolicies &... policies) noexcept |
| template<typename ProcessedTarget , typename... Parents> | |
| parsing::pre_parse_result | pre_parse_phase ([[maybe_unused]] parsing::dynamic_token_adapter &tokens, utility::compile_time_optional< ProcessedTarget > processed_target, [[maybe_unused]] parsing::parse_target &target, [[maybe_unused]] const Parents &... parents) const |
Causes the owning node to be 'dependent' on others, i.e. that other node must also appear on the command line.
The depends targets must have long or short names.
| DependsPolicies | Pack of name policies, referring to nodes under the same mode, to depend on |
Definition at line 23 of file dependent.hpp.
| using arg_router::policy::dependent_t< DependsPolicies >::depends_policies_type = std::tuple<std::decay_t<DependsPolicies>...> |
Tuple of policy types.
Definition at line 27 of file dependent.hpp.
|
inlineexplicitconstexprnoexcept |
|
inline |
Scans the processed tokens to find all the dependent node names.
| ProcessedTarget | processed_target payload type |
| Parents | Pack of parent tree nodes in ascending ancestry order |
| tokens | Currently processed tokens |
| processed_target | Previously processed parse_target of parent node, or empty is there is no non-root parent |
| target | Pre-parse generated target |
| parents | Parent node instances |
Definition at line 48 of file dependent.hpp.