arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::list< Children > Class Template Reference

#include <arg_router/list.hpp>

Public Types

using children_type = std::tuple< std::decay_t< Children >... >
 

Public Member Functions

constexpr list (Children... children) noexcept
 
children_typechildren () noexcept
 
const children_typechildren () const noexcept
 

Detailed Description

template<typename... Children>
class arg_router::list< Children >

This is arg and flag container, that when used a child in another tree_node is 'flattened' i.e. the children of the list become the direct children of the parent.

This is used to easily copy groups of args and flags into multiple modes.

Template Parameters
ParamsChild types

Definition at line 21 of file list.hpp.

Member Typedef Documentation

◆ children_type

template<typename... Children>
using arg_router::list< Children >::children_type = std::tuple<std::decay_t<Children>...>

A tuple of all the child tree node types in parameters_type.

Definition at line 25 of file list.hpp.

Constructor & Destructor Documentation

◆ list()

template<typename... Children>
constexpr arg_router::list< Children >::list ( Children...  children)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
childrenChild instances

Definition at line 34 of file list.hpp.

Member Function Documentation

◆ children() [1/2]

template<typename... Children>
const children_type& arg_router::list< Children >::children ( ) const
inlinenoexcept

Const overload.

Returns
Children

Definition at line 46 of file list.hpp.

◆ children() [2/2]

template<typename... Children>
children_type& arg_router::list< Children >::children ( )
inlinenoexcept

Returns a reference to the children.

Returns
Children

Definition at line 40 of file list.hpp.


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