Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::parsing::classic::ConfigParser< Ts > Struct Template Reference

Base variadic parser for parsing many config structs at once. More...

#include <settings_parsers.hpp>

Static Public Member Functions

static std::tuple< Ts... > Parse (std::string const &config)
 The primary idea for filling a tuple using variadic templates comes from: http://stackoverflow.com/questions/10014713/build-tuple-using-variadic-templates.

Detailed Description

template<typename ... Ts>
struct bertini::parsing::classic::ConfigParser< Ts >

Base variadic parser for parsing many config structs at once.

A specialization for a typelist of configs appears below.

Template Parameters
RealTReal number type
TsConfiguration structures to be filled by the parser

Member Function Documentation

◆ Parse()

template<typename ... Ts>
std::tuple< Ts... > bertini::parsing::classic::ConfigParser< Ts >::Parse ( std::string const & config)
inlinestatic

The primary idea for filling a tuple using variadic templates comes from: http://stackoverflow.com/questions/10014713/build-tuple-using-variadic-templates.

Reads in a comment-stripped, config portion of a Bertini classic input file. Parses the config settings and returns the structures passed into the template parameters with the relevant config settings.

Parameters
configThe string containing the comment-stripped config portion of the Bertini classic input file.
Returns
A tuple containing all the required config structures.