Calculates the logical conjunction of two constraints. More...

Public Member Functions | |
| And (const ConstraintHolder< T > &in_left, const ConstraintHolder< T > &in_right, bool in_short=true) | |
| Constructs the object. | |
| virtual | ~And () |
| Destroys the object. | |
| virtual bool | eval (const T &o) const |
| Evaluates the constraint. | |
| virtual bool | verify (const T &arg) const |
| Evaluates the constraint at the end. | |
| virtual String | describeTo (String &buffer) const |
| Appends the description of this object to the buffer. | |
Calculates the logical conjunction of two constraints.
Evaluation is shortcut by default, so that the second constraint is not called if the first constraint returns false.
Definition at line 50 of file And.h.
| mockpp::And< T >::And | ( | const ConstraintHolder< T > & | in_left, | |
| const ConstraintHolder< T > & | in_right, | |||
| bool | in_short = true | |||
| ) | [inline] |
| virtual String mockpp::And< 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::And< T >::eval | ( | const T & | o | ) | const [inline, virtual] |
Evaluates the constraint.
| o | the object against which the constraint is evaluated. |
Implements mockpp::Constraint< T >.
| virtual bool mockpp::And< T >::verify | ( | const T & | arg | ) | const [inline, virtual] |
Evaluates the constraint at the end.
| arg | the object against which the constraint is evaluated. |
Reimplemented from mockpp::Constraint< T >.
1.6.1