Tests whether the value is derived from the given class. More...
Public Member Functions | |
virtual bool | eval (const pBASE &obj) const |
Evaluates the constraint. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Tests whether the value is derived from the given class.
A base class is needed since dynamic_cast checks for an existing traversal from derived
to base
.
Definition at line 55 of file IsInstanceOf.h.
virtual String mockpp::IsInstanceOf< BASE, DERIVED >::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 75 of file IsInstanceOf.h.
virtual bool mockpp::IsInstanceOf< BASE, DERIVED >::eval | ( | const pBASE & | obj | ) | const [inline, virtual] |
Evaluates the constraint.
obj | the object against which the constraint is evaluated. |
Implements mockpp::Constraint< BASE * >.
Definition at line 66 of file IsInstanceOf.h.