8 #ifndef TD_TEST_ASSIGN_UTIL
9 #define TD_TEST_ASSIGN_UTIL
22 mTol = (tol < 0) ? 1.0e-6 : tol;
23 mDTol = (dTol < 0) ? 1.0e-9 : dTol;
29 if (fabs(oldVal - newVal) >
mTol)
35 bool test (
const float& oldVal,
const float & newVal)
43 if (fabs(oldVal - newVal) >
mDTol)
49 bool test (
const double& oldVal,
const double & newVal)
59 if (!(oldVal == newVal))
67 bool test(
const _T& oldVal,
const _T& newVal)
70 if (!(oldVal == newVal))
Definition: testAssignUtil.h:18
double mDTol
Definition: testAssignUtil.h:95
bool changed() const
Definition: testAssignUtil.h:81
float mTol
Definition: testAssignUtil.h:94
void operator()(float &oldVal, const float &newVal)
Definition: testAssignUtil.h:27
void operator()(_T &oldVal, const _T &newVal)
Definition: testAssignUtil.h:56
TdTestAssignUtil(float tol=-1.0, double dTol=-1.0)
Definition: testAssignUtil.h:20
bool test(const double &oldVal, const double &newVal)
Definition: testAssignUtil.h:49
void reset()
Definition: testAssignUtil.h:87
bool test(const _T &oldVal, const _T &newVal)
Definition: testAssignUtil.h:67
bool myChanged
Definition: testAssignUtil.h:93
bool test(const float &oldVal, const float &newVal)
Definition: testAssignUtil.h:35