Simo 0.0.1
Loading...
Searching...
No Matches
Simo::Parameter::ParameterTrie Class Reference

#include <ParameterTrie.h>

Public Member Functions

 ParameterTrie (const ParameterTrie &other)
ParameterTrie & operator= (const ParameterTrie &other)
template<typename T, typename... Args>
ParameterTyped< T > & add (const std::string_view name, Args... args)
template<typename T>
ParameterTyped< T > & add_unset (const std::string_view name)
Parameterfind (const std::string_view name) const
template<typename T>
ParameterTyped< T > * find (const std::string_view name) const
const ParameterTrie * get_subtrie (const std::string_view name) const
template<typename Function>
bool all (Function f) const
template<typename Function>
void visit (Function f) const
template<typename Function>
void visit_impl (std::string_view name, Function f) const

Public Attributes

std::unique_ptr< Parametervalue

Protected Member Functions

template<typename T, typename... Args>
ParameterTyped< T > & add_generic (const std::string_view name, bool has_value, Args &&... args)

Detailed Description

Store parameters in a trie structure

Parameters can be expressed in a trie-like system by using '/' command in a path-like style

Member Function Documentation

◆ all()

template<typename Function>
bool Simo::Parameter::ParameterTrie::all ( Function f) const
inlinenodiscard

Verify that predicate function is valid for all the parameters. Return false as soon as possible

◆ visit()

template<typename Function>
void Simo::Parameter::ParameterTrie::visit ( Function f) const
inline

Use function on all the elements of the trie The function must accept a T* argument


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