#include <yat/utility/DataWeight.h>
Public Member Functions | |
DataWeight (double data=0.0, double weight=1.0) | |
Default constructor. | |
double & | data (void) |
const double & | data (void) const |
double & | weight (void) |
const double & | weight (void) const |
The class has comparison operators (declared outside class) that are designed to ignore the weights, and behaves like the corresponding double operator behaves for data().
theplu::yat::utility::DataWeight::DataWeight | ( | double | data = 0.0 , |
|
double | weight = 1.0 | |||
) | [explicit] |
Default constructor.
data | data value to hold | |
weight | weight value to hold |
double& theplu::yat::utility::DataWeight::data | ( | void | ) |
const double& theplu::yat::utility::DataWeight::data | ( | void | ) | const |
double& theplu::yat::utility::DataWeight::weight | ( | void | ) |
const double& theplu::yat::utility::DataWeight::weight | ( | void | ) | const |