yat
0.14.5pre
|
Holds a pair of data and associated weight. More...
#include <yat/utility/DataWeight.h>
Public Member Functions | |
DataWeight (double data=0.0, double weight=1.0) | |
Default constructor. More... | |
double & | data (void) |
const double & | data (void) const |
double & | weight (void) |
const double & | weight (void) const |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const DataWeight &lhs, const DataWeight &rhs) |
equality operator More... | |
bool | operator!= (const DataWeight &, const DataWeight &) |
inequality operator More... | |
bool | operator< (const DataWeight &, const DataWeight &) |
comparison operator More... | |
bool | operator> (const DataWeight &, const DataWeight &) |
comparison operator More... | |
bool | operator<= (const DataWeight &, const DataWeight &) |
comparison operator More... | |
bool | operator>= (const DataWeight &, const DataWeight &) |
comparison operator More... | |
Holds a pair of data and associated weight.
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().
|
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 |
|
related |
inequality operator
|
related |
|
related |
comparison operator
|
related |
equality operator
|
related |
comparison operator
|
related |
comparison operator