LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
Loading...
Searching...
No Matches
LatBuilder::Parser::CombinedWeights Struct Reference

Parser for weights. More...

#include <CombinedWeights.h>

Static Public Member Functions

static bool parseFile (const std::string &arg, LatBuilder::CombinedWeights &weights, Real powerScale)
 Parses a string specifying a file containing a description of combined weights.
static std::unique_ptr< LatBuilder::CombinedWeightsparse (const std::vector< std::string > &args, Real powerScale)
 Parses a vector of strings specifying weights.

Detailed Description

Parser for weights.

Member Function Documentation

◆ parse()

std::unique_ptr< LatBuilder::CombinedWeights > LatBuilder::Parser::CombinedWeights::parse ( const std::vector< std::string > & args,
Real powerScale )
static

Parses a vector of strings specifying weights.

For example strings, see parseFile(), Parser::Weights::parseProjectionDependent(), Parser::Weights::parseOrderDependent() and Parser::Weights::parseProduct().

Returns
A pointer to a newly created object or nullptr on failure.

◆ parseFile()

bool LatBuilder::Parser::CombinedWeights::parseFile ( const std::string & arg,
LatBuilder::CombinedWeights & weights,
Real powerScale )
static

Parses a string specifying a file containing a description of combined weights.

Adds projection-dependent and order-dependent weights to an existing CombinedWeights instance.

Example strings: file:filename

Returns
true on success; false on failure

The documentation for this struct was generated from the following file:
  • include/latbuilder/Parser/CombinedWeights.h