Unit conversion functor.
More...
#include <unitconvertor.h>
List of all members.
Detailed Description
Unit conversion functor.
Constructor & Destructor Documentation
UnitConvertor::UnitConvertor |
( |
|
) |
|
UnitConvertor::UnitConvertor |
( |
const double & |
factor, |
|
|
const double & |
offset | |
|
) |
| | |
Member Function Documentation
const bool & UnitConvertor::isValid |
( |
|
) |
const |
double UnitConvertor::operator() |
( |
const double & |
input |
) |
const |
{
if (valid) return factor*input + offset;
else return std::numeric_limits<double>::quiet_NaN();
}
void UnitConvertor::reset |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following files: