Is the value of a number equal to a value within some range of acceptable deviation? More...
Public Member Functions | |
IsCloseTo (const NumberType &in_value, const NumberType &in_deviation) | |
Constructs the object. | |
virtual bool | eval (const NumberType &arg) const |
Evaluates the constraint. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Is the value of a number equal to a value within some range of acceptable deviation?
Definition at line 52 of file IsCloseTo.h.
mockpp::IsCloseTo< NumberType >::IsCloseTo | ( | const NumberType & | in_value, | |
const NumberType & | in_deviation | |||
) | [inline] |
Constructs the object.
in_value | the value for the comparison | |
in_deviation | the allowed deviation |
Definition at line 60 of file IsCloseTo.h.
virtual String mockpp::IsCloseTo< NumberType >::describeTo | ( | String & | buffer | ) | const [inline, virtual] |
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Implements mockpp::SelfDescribing.
Definition at line 81 of file IsCloseTo.h.
virtual bool mockpp::IsCloseTo< NumberType >::eval | ( | const NumberType & | arg | ) | const [inline, virtual] |
Evaluates the constraint.
arg | the object against which the constraint is evaluated. |
Implements mockpp::Constraint< NumberType >.
Definition at line 70 of file IsCloseTo.h.