Is the value the same object as another value? Basically the same as IsEqual
which compares with a value.
More...
Public Member Functions | |
IsSame (const T &object) | |
Constructs the object. | |
virtual | ~IsSame () |
Destroys the object. | |
virtual bool | eval (const T &arg) const |
Evaluates the constraint. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Is the value the same object as another value? Basically the same as IsEqual
which compares with a value.
IsSame
compares by reference and a comparison template which can be specialized.
Definition at line 72 of file IsSame.h.
mockpp::IsSame< T >::IsSame | ( | const T & | object | ) | [inline] |
virtual String mockpp::IsSame< T >::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.
virtual bool mockpp::IsSame< T >::eval | ( | const T & | arg | ) | const [inline, virtual] |
Evaluates the constraint.
arg | the object against which the constraint is evaluated. |
Implements mockpp::Constraint< T >.