Lattice Builder
Software Package for Constructing Rank-1 Lattices
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Groups Pages
LatBuilder::Parser Namespace Reference

String parsing facilities for Lattice Builder objects. More...

Classes

struct  CombinedWeights
 Parser for weights. More...
 
struct  CommandLine
 Collection of arguments required to construct a Search instance. More...
 
struct  CommandLine< LatBuilder::LatType::ORDINARY >
 Specialization of CommandLine for ordinary lattices. More...
 
struct  CommandLine< LatBuilder::LatType::EMBEDDED >
 Specialization of CommandLine for embedded lattices. More...
 
class  ParserError
 Base class for parsing errors. More...
 
class  BadCoordSymFigureOfMerit
 Exception thrown when trying to parse an invalid figure of merit. More...
 
struct  CoordSymFigureOfMerit
 Parser for coordinate-symmetric figures of merit. More...
 
struct  FigureOfMerit
 Parser for generic weighted figures of merit. More...
 
class  BadKernel
 Exception thrown when trying to parse an invalid kernel. More...
 
struct  Kernel
 Parser for kernels for coordinate-symmetric figures of merit. More...
 
class  BadLatType
 Exception thrown when trying to parse an invalid size parameter. More...
 
struct  LatType
 Parser for size parameters. More...
 
class  BadLevelWeights
 Exception thrown when trying to parse an invalid filter. More...
 
struct  LevelWeights
 Parser for per-level weights. More...
 
class  BadCombiner
 Exception thrown when trying to parse an invalid combiner. More...
 
struct  MeritCombiner
 Parser for filters combiners for use with embedded lattices. More...
 
class  BadFilter
 Exception thrown when trying to parse an invalid filter string. More...
 
struct  MeritFilter
 
struct  MeritFilterList
 Parser for merit transformation filters. More...
 
class  BadProjDepMerit
 Exception thrown when trying to parse an invalid combiner. More...
 
struct  ProjDepMerit
 Parser for projection-dependent figures of merit. More...
 
class  Search
 Parser for coordinate-symmetric figures of merit. More...
 
struct  SizeParam
 Parser for size parameters. More...
 
class  BadNorm
 Exception thrown when trying to parse an invalid accumulator. More...
 
struct  WeightedFigureOfMerit
 Parser for generic weighted figures of merit. More...
 
class  BadWeights
 Exception thrown when trying to parse an invalid weights specificaiton. More...
 
struct  Weights
 Parser for weights. More...
 

Functions

template<typename T1 = std::string, typename T2 = std::string>
std::pair< T1, T2 > splitPair (const std::string &input, char sep, const T2 &def=T2())
 Splits two tokens separated by sep into a pair of values. More...
 
template<typename T = std::string>
std::vector< T > splitCSV (const std::string &input)
 Splits a list comma-separated values into a vector.
 
template LatBuilder::SizeParam
< LatBuilder::LatType::ORDINARY > 
SizeParam::parse< LatBuilder::LatType::ORDINARY > (const std::string &)
 
template LatBuilder::SizeParam
< LatBuilder::LatType::EMBEDDED > 
SizeParam::parse< LatBuilder::LatType::EMBEDDED > (const std::string &)
 

Detailed Description

String parsing facilities for Lattice Builder objects.

For polymorphic objects, the parser functions return a shared pointer to a newly created object, or a null pointer on failure, without throwing exceptions. For other object types, the parser functions return a newly created instance, or throw a ParserError exception on failure.

Function Documentation

template<typename T1 = std::string, typename T2 = std::string>
std::pair<T1, T2> LatBuilder::Parser::splitPair ( const std::string &  input,
char  sep,
const T2 &  def = T2() 
)

Splits two tokens separated by sep into a pair of values.

Parameters
inputInput string.
sepSeparator character.
defDefault value for the second element in the returned pair, used when the separator cannot be found in the string.