OutputNumber Class Reference
#include <tester.h>
Collaboration diagram for OutputNumber:
Classes | |
union | NumericValue |
Public Member Functions | |
OutputNumber (OutputNumberType t) | |
OutputNumber (double dval) | |
OutputNumber (long ival) | |
bool | match (const OutputNumber &n) const |
Private Attributes | |
OutputNumberType | type |
union OutputNumber::NumericValue | val |
Constructor & Destructor Documentation
OutputNumber::OutputNumber | ( | OutputNumberType | t | ) |
OutputNumber::OutputNumber constructor
References ON_WILDCARD, and type.
OutputNumber::OutputNumber | ( | double | dv | ) |
OutputNumber::OutputNumber constructor
References OutputNumber::NumericValue::dval, type, and val.
OutputNumber::OutputNumber | ( | long | iv | ) |
OutputNumber::OutputNumber constructor
References OutputNumber::NumericValue::ival, type, and val.
Member Function Documentation
bool OutputNumber::match | ( | const OutputNumber & | n | ) | const |
OutputNumber::match test whether to numbers in the output file match They match if
- at least one of them is a wildcard
- they are both int and identical
- they are both float and nearly equal
References OutputNumber::NumericValue::dval, EPSILON_ZERO, OutputNumber::NumericValue::ival, ON_DOUBLE, ON_WILDCARD, type, and val.
Member Data Documentation
OutputNumberType OutputNumber::type [private] |
Referenced by match(), and OutputNumber().
union OutputNumber::NumericValue OutputNumber::val [private] |
Referenced by match(), and OutputNumber().
The documentation for this class was generated from the following files: