Passes a value back via a reference (outbound value). More...
Public Member Functions | |
OutBound (const T &retArg) | |
Constructs the object. | |
template<class I > | |
OutBound (I items, I end) | |
Constructs the object base on a list of values. | |
void | addOutboundObject (const T &retArg) |
Adds another return value. | |
template<class I > | |
OutBound & | addOutboundObject (I items, I end) |
Add a sequence of next objects to the end of the list. | |
virtual | ~OutBound () |
Destroys the object. | |
virtual bool | eval (const T &arg) const |
Evaluates the constraint. | |
virtual bool | verify (const T &) const |
Evaluates the constraint at the end. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Passes a value back via a reference (outbound value).
OutBound
in conjunction with other contraints using And
or Or
as side effects might occur. Definition at line 49 of file OutBound.h.
mockpp::OutBound< T >::OutBound | ( | const T & | retArg | ) | [inline] |
Constructs the object.
retArg | the first value to return |
Definition at line 56 of file OutBound.h.
mockpp::OutBound< T >::OutBound | ( | I | items, | |
I | end | |||
) | [inline] |
Constructs the object base on a list of values.
items | start iterator | |
end | terminating iterator (note: one element "behind" as always with STL) |
Definition at line 67 of file OutBound.h.
OutBound& mockpp::OutBound< T >::addOutboundObject | ( | I | items, | |
I | end | |||
) | [inline] |
Add a sequence of next objects to the end of the list.
items | start iterator | |
end | terminating iterator (note: one element "behind" as always with STL) |
Definition at line 87 of file OutBound.h.
void mockpp::OutBound< T >::addOutboundObject | ( | const T & | retArg | ) | [inline] |
Adds another return value.
retArg | the next value to return |
Definition at line 76 of file OutBound.h.
virtual String mockpp::OutBound< 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 131 of file OutBound.h.
virtual bool mockpp::OutBound< T >::eval | ( | const T & | arg | ) | const [inline, virtual] |
Evaluates the constraint.
The value is not actually evaluated but a value is returned.
arg | the object which is passed the value. |
Implements mockpp::Constraint< T >.
Definition at line 105 of file OutBound.h.
virtual bool mockpp::OutBound< T >::verify | ( | const T & | ) | const [inline, virtual] |
Evaluates the constraint at the end.
arg | the object which is passed the value. |
Reimplemented from mockpp::Constraint< T >.
Definition at line 122 of file OutBound.h.