LogIt++
Loading...
Searching...
No Matches
argument_utils.hpp File Reference

Functions for working with arguments and converting them to value arrays. More...

Go to the source code of this file.

Namespaces

namespace  logit
 The primary namespace for the LogIt++ library.
 

Typedefs

using logit::crev_it_t = std::string::const_reverse_iterator
 

Functions

std::vector< VariableValuelogit::args_to_array (std::vector< std::string >::const_iterator name_iter)
 Base case of recursion for argument conversion — when there are no more arguments.
 
template<typename T, typename... Ts>
std::vector< VariableValuelogit::args_to_array (std::vector< std::string >::const_iterator name_iter, const T &first_arg, const Ts &... args)
 Recursive function to convert arguments into an array of tuples (name, value).
 
bool logit::is_closing_template (crev_it_t left_it, crev_it_t right_it)
 Checks if the '>' character is the closing of a template argument list.
 
std::vector< std::string > logit::split_arguments (const std::string &all_names)
 Splits a string of argument names into individual names, ignoring nested templates, parentheses, and quotes.
 

Detailed Description

Functions for working with arguments and converting them to value arrays.

Definition in file argument_utils.hpp.