[Mockpp-commits] mockpp/mockpp/chaining ChainingMockObjectSupport.h,1.20,1.21
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-07-23 13:55:56
|
Update of /cvsroot/mockpp/mockpp/mockpp/chaining In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31959/mockpp/chaining Modified Files: ChainingMockObjectSupport.h Log Message: OutBound abbreviation Index: ChainingMockObjectSupport.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/chaining/ChainingMockObjectSupport.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ChainingMockObjectSupport.h 13 Mar 2005 19:13:24 -0000 1.20 +++ ChainingMockObjectSupport.h 23 Jul 2005 13:55:47 -0000 1.21 @@ -56,6 +56,7 @@ #include <mockpp/constraint/IsGreaterOrEqual.h> #include <mockpp/constraint/IsLessThan.h> #include <mockpp/constraint/IsLessOrEqual.h> +#include <mockpp/constraint/OutBound.h> #include <mockpp/chaining/CoreMock.h> @@ -109,6 +110,20 @@ TypelessConstraint::AP nothing(); +/** Passes a value back via a reference (outbound value). + * @ingroup grp_constraint_abbrev + * @see mockpp::OutBound + * @param op object to return at invoationwith + * @return the new constraint + */ +template <typename T> +typename Constraint<T>::AP +outBound( const T& op ) +{ + return new OutBound<T>( op ); +} + + /** Creates a constraint that tests for equality * @ingroup grp_constraint_abbrev * @see mockpp::IsEqual @@ -658,6 +673,7 @@ using mockpp::never; using mockpp::isVoid; using mockpp::unlimited; +using mockpp::outBound; #endif |