SG++-Doxygen-Documentation
sgpp::datadriven::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. More...
 
static const std::string & toString (sgpp::base::GeneralGridType type)
 Returns the string representation of a sgpp::base::GeneralGridType type. More...
 

Detailed Description

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

Member Function Documentation

sgpp::base::GeneralGridType sgpp::datadriven::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::DBMatDatabase::putDataMatrix().

const std::string & sgpp::datadriven::GeneralGridTypeParser::toString ( sgpp::base::GeneralGridType  type)
static

Returns the string representation of a sgpp::base::GeneralGridType type.

Parameters
typethe grid type to retrieve the string representation from
Returns
the string representation of the the grid type

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

Referenced by sgpp::datadriven::DBMatDatabase::putDataMatrix().


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