[Mockpp-commits] mockpp/mockpp ReturnObjectList.h,1.23,1.24
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-03-22 18:43:46
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14244/mockpp Modified Files: ReturnObjectList.h Log Message: add counter value Index: ReturnObjectList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ReturnObjectList.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- ReturnObjectList.h 27 Feb 2005 11:48:14 -0000 1.23 +++ ReturnObjectList.h 22 Mar 2005 18:43:34 -0000 1.24 @@ -91,6 +91,17 @@ } + /** Adds a series of equal next objects to the end of the list. + * @param anObjectToReturn object to be added to the list + * @param count the count the object is added + */ + void addObjectToReturn(const T &anObjectToReturn, unsigned count) + { + for (unsigned i = 0; i < count; ++i) + addObjectToReturn(anObjectToReturn); + } + + /** Add a sequence of next objects to the end of the list. * @param items start iterator * @param end terminating iterator (note: one element "behind" as always with STL) |