Lattice Builder Manual
Software Package for Constructing Rank-1 Lattices
LatBuilder::Parser Namespace Reference

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

Classes

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