An adapter for the "translation" typeless constrains. More...
Public Member Functions | |
TypelessConstraintAdapter (typename TypelessConstraint::AP tc) | |
Creates the object. | |
virtual | ~TypelessConstraintAdapter () |
Destroys the object. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. | |
virtual bool | eval (const T &o) const |
Evaluates the constraint. |
An adapter for the "translation" typeless constrains.
Definition at line 69 of file TypelessConstraint.h.
mockpp::TypelessConstraintAdapter< T >::TypelessConstraintAdapter | ( | typename TypelessConstraint::AP | tc | ) | [inline] |
Creates the object.
tc | pointer to the constraint |
Definition at line 76 of file TypelessConstraint.h.
virtual String mockpp::TypelessConstraintAdapter< 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.
Definition at line 91 of file TypelessConstraint.h.
virtual bool mockpp::TypelessConstraintAdapter< T >::eval | ( | const T & | o | ) | const [inline, virtual] |
Evaluates the constraint.
o | The object against which the constraint is evaluated. Actually only a dummy value for syntactical reasons. |
Implements mockpp::Constraint< T >.
Definition at line 102 of file TypelessConstraint.h.