SG++-Doxygen-Documentation
|
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... | |
Parser class to parse a general grid type into a GeneralGridType enum type and vice versa.
|
static |
Parses an input string and returns the corresponding sgpp::base::GeneralGridType type.
Throws an exception if the string has no representation
input | the grid type to parse |
References sgpp::base::ComponentGrid, sgpp::base::GeometryAwareSparseGrid, sgpp::base::RefinedCoarsenedSparseGrid, and sgpp::base::RegularSparseGrid.
Referenced by sgpp::datadriven::DBMatDatabase::putDataMatrix().
|
static |
Returns the string representation of a sgpp::base::GeneralGridType type.
type | the grid type to retrieve the string representation from |
References sgpp::base::ComponentGrid, sgpp::base::GeometryAwareSparseGrid, sgpp::base::RefinedCoarsenedSparseGrid, and sgpp::base::RegularSparseGrid.
Referenced by sgpp::datadriven::DBMatDatabase::putDataMatrix().