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

Public Member Functions | |
| Or (const ConstraintHolder< T > &in_left, const ConstraintHolder< T > &in_right, bool in_short=true) | |
| Constructs the object. | |
| virtual | ~Or () |
| 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 disjunction of two constraints.
Evaluation is shortcut, so that the second constraint is not called if the first constraint returns true.
Definition at line 52 of file Or.h.
| mockpp::Or< T >::Or | ( | const ConstraintHolder< T > & | in_left, | |
| const ConstraintHolder< T > & | in_right, | |||
| bool | in_short = true | |||
| ) | [inline] |
| virtual String mockpp::Or< 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::Or< 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::Or< 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