SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::GeneralGridTypeParser Class Reference

Parser class to parse a general grid type into a GeneralGridType enum type and vice versa. More...

#include <GeneralGridTypeParser.hpp>

Static Public Member Functions

static sgpp::base::GeneralGridType parse (const std::string &input)
 Parses an input string and returns the corresponding sgpp::base::GeneralGridType type.
 
static const std::string & toString (sgpp::base::GeneralGridType type)
 Returns the string representation of a sgpp::base::GeneralGridType type.
 

Detailed Description

Parser class to parse a general grid type into a GeneralGridType enum type and vice versa.

Member Function Documentation

◆ parse()

sgpp::base::GeneralGridType sgpp::base::GeneralGridTypeParser::parse ( const std::string &  input)
static

Parses an input string and returns the corresponding sgpp::base::GeneralGridType type.

Throws an exception if the string has no representation

Parameters
inputthe grid type to parse
Returns
the parsed grid type

References sgpp::base::ComponentGrid, sgpp::base::GeometryAwareSparseGrid, sgpp::base::RefinedCoarsenedSparseGrid, and sgpp::base::RegularSparseGrid.

Referenced by sgpp::datadriven::DataMiningConfigParser::getFitterGridConfig().

◆ toString()


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