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

Combined weights. More...

#include <CombinedWeights.h>

+ Inheritance diagram for LatBuilder::CombinedWeights:
+ Collaboration diagram for LatBuilder::CombinedWeights:

Public Types

typedef std::list
< std::unique_ptr
< LatCommon::Weights > > 
WeightsList
 

Public Member Functions

 CombinedWeights ()
 Constructs an empty set of combined weights.
 
virtual ~CombinedWeights ()
 Destructor.
 
virtual LatCommon::Weight getWeight (const LatCommon::Coordinates &projection) const
 Returns the weight of the projection specified by projection.
 
void add (std::unique_ptr< LatCommon::Weights > weights)
 Adds a weight specification to the set of combined weights.
 
const WeightsList & list () const
 

Protected Member Functions

virtual void format (std::ostream &os) const
 

Protected Attributes

WeightsList m_weights
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, const CombinedWeights &weights)
 

Detailed Description

Combined weights.

Sum of different instances of weights (possibly be of different concrete types).

Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  os,
const CombinedWeights weights 
)
related

Outputs the projection-dependent weights to os in a format readable.


The documentation for this class was generated from the following file: