Traits class for BasicScalar tolerance-based floating-point class. More...
#include <basic_scalar_traits.h>
Public Types | |
| enum | ToleranceType { ABSOLUTE, RELATIVE } |
| Tolerance type values. | |
Static Public Member Functions | |
| static T | getTol () |
| Gets the user-defined tolerance. | |
| static T | getTestTol () |
|
static BasicScalarTraits< T > ::ToleranceType | getTolType () |
| Gets the tolerance type used for comparing scalars. | |
| static size_t | getWidth () |
| Gets width (in characters) the scalar will have when output streamed. | |
| static void | setTol (const T &x) |
| static void | setTolType (const ToleranceType &type) |
| Sets the tolerance used for comparing scalars. | |
Traits class for BasicScalar tolerance-based floating-point class.
|
inlinestatic |
Gets the tolerance used for comparing scalars. This tolerance equals
|
inlinestatic |
Sets the tolerance used for comparing scalars.
Since only positive tolerance values make sense, the absolute value of the input value is taken as the tolerance value.
1.8.1.2