Public Types | |
typedef AutoPointer < Constraint< T > > | AP |
internal shorthand | |
Public Member Functions | |
virtual | ~Constraint () |
Destroys the object. | |
virtual bool | eval (const T &arg) const =0 |
Evaluates the constraint. | |
virtual bool | verify (const T &arg) const |
Evaluates the constraint at the end. |
Definition at line 53 of file Constraint.h.
virtual bool mockpp::Constraint< T >::eval | ( | const T & | arg | ) | const [pure virtual] |
Evaluates the constraint.
arg | the object against which the constraint is evaluated. |
Implemented in mockpp::And< T >, mockpp::IsCloseTo< NumberType >, mockpp::IsEqual< T >, mockpp::IsGreaterOrEqual< T >, mockpp::IsGreaterThan< T >, mockpp::IsInstanceOf< BASE, DERIVED >, mockpp::IsLessOrEqual< T >, mockpp::IsLessThan< T >, mockpp::IsNot< T >, mockpp::IsSame< T >, mockpp::Or< T >, mockpp::OutBound< T >, mockpp::StringContains< StringType >, mockpp::StringEndsWith< StringType >, mockpp::StringStartsWith< StringType >, mockpp::TriggeredOutbound< T >, and mockpp::TypelessConstraintAdapter< T >.
virtual bool mockpp::Constraint< T >::verify | ( | const T & | arg | ) | const [inline, virtual] |
Evaluates the constraint at the end.
arg | the object against which the constraint is evaluated. |
Reimplemented in mockpp::And< T >, mockpp::IsNot< T >, mockpp::Or< T >, mockpp::OutBound< T >, and mockpp::TriggeredOutbound< T >.
Definition at line 76 of file Constraint.h.