Lattice Tester Online Documentation 0.1.0-861
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
|
Defines projection-dependent weights. More...
#include <latticetester/WeightsProjectionDependent.h>
Public Member Functions | |
WeightsProjectionDependent () | |
Constructs projection-dependent weights. | |
WeightsProjectionDependent (const WeightsProjectionDependent &) | |
Copy constructor. | |
virtual | ~WeightsProjectionDependent () |
Destructor. | |
virtual Weight | getWeight (const Coordinates &projection) const |
Returns the weight of the projection specified by projection . | |
virtual uint64_t | getSize () const |
Returns the number of weights. | |
virtual const WeightsMap & | getWeightsForLargestIndex (Coordinates::value_type largestIndex) const |
Returns a map of weights for all projections whose largest index is largestIndex . | |
virtual void | setWeight (const Coordinates &projection, Weight weight) |
Static factory method; create a WeightsProjectionDependent object by parsing XML data. | |
Public Member Functions inherited from LatticeTester::Weights | |
virtual | ~Weights () |
Destructor. | |
virtual uint64_t | interlacingFactor () const |
Returns the interlacing factor of the weights. | |
Protected Types | |
typedef std::map< Coordinates, Weight > | WeightsMap |
Protected Member Functions | |
virtual void | format (std::ostream &os) const |
Identifies the type of weights, formats them and outputs them on os . | |
Protected Member Functions inherited from LatticeTester::Weights |
Protected Attributes | |
std::vector< WeightsMap > | m_weights |
Per-projection weights, regrouped by largest coordinate index. | |
Static Protected Attributes | |
static const WeightsMap | m_emptyWeights |
Used only to return an empty map. | |
Friends | |
std::istream & | operator>> (std::istream &is, WeightsProjectionDependent &weights) |
Related Symbols | |
(Note that these are not member symbols.) | |
std::istream & | operator>> (std::istream &is, WeightsProjectionDependent &weights) |
Reads formatted projection-dependent weights into the object weights . | |
Related Symbols inherited from LatticeTester::Weights | |
std::ostream & | operator<< (std::ostream &os, const Weights &o) |
Identifies the type of weights, formats them and outputs them on os . | |
Defines projection-dependent weights.
The weight for any given projection can be set with setWeight(). Internally, the weights are regrouped by largest coordinate index in different std::map
objects. This is useful for use with CBC constructions.
|
protected |
LatticeTester::WeightsProjectionDependent::WeightsProjectionDependent | ( | ) |
Constructs projection-dependent weights.
LatticeTester::WeightsProjectionDependent::WeightsProjectionDependent | ( | const WeightsProjectionDependent & | o | ) |
Copy constructor.
|
inlinevirtual |
Destructor.
|
protectedvirtual |
Identifies the type of weights, formats them and outputs them on os
.
Subclasses that implement Weights should identify themselves in the output.
Implements LatticeTester::Weights.
|
inlinevirtual |
Returns the number of weights.
|
virtual |
Returns the weight of the projection specified by projection
.
Implements LatticeTester::Weights.
|
virtual |
Returns a map of weights for all projections whose largest index is largestIndex
.
|
virtual |
Static factory method; create a WeightsProjectionDependent object by parsing XML data.
Sets the weight of the projection specified by projection
.
|
friend |
|
related |
Reads formatted projection-dependent weights into the object weights
.
The input should be a sequence of projection-to-weight mappings, of the format:
where <weightn>
is the weight (a floating point number) associated to the projection-match <matchn>
, and <matchn>
is one of:
order m
to implicitly set the weights of projections of order m
;default
to set the default weight for other projections.#
character.
:) can be replaced with =>
or ->
.
|
staticprotected |
Used only to return an empty map.
|
protected |
Per-projection weights, regrouped by largest coordinate index.