arbitraryprecisioncalculation::parse Namespace Reference

Contains a large set of functions for parsing the configuration file. More...

Functions

RandomNumberGeneratorParseRandomNumberGenerator (const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
 Parses the given vector for a random number generator starting at the given index. More...
 

Detailed Description

Contains a large set of functions for parsing the configuration file.

Function Documentation

RandomNumberGenerator* arbitraryprecisioncalculation::parse::ParseRandomNumberGenerator ( const std::vector< std::string > &  parameters,
unsigned int &  parsed_parameters 
)

Parses the given vector for a random number generator starting at the given index.

The parameter parsed_parameters will store the number of parsed parameters after successful parsing of a random number generator. If nothing can be parsed as a random number generator then the parameter parsed_parameters will store the initial number of parsed parameters at the time when the function is called. If a random number generator can be parsed partially but without success then the parameter parsed_parameters will store the number of elements of the specification vector.

Parameters
parametersThe vector containing the specification.
parsed_parametersThe number of already parsed parameters by previous functions.
Returns
A pointer to the parsed random number generator if the parsing process was successful and NULL otherwise.