[Mockpp-commits] mockpp/mockpp/constraint And.h,1.20,1.21 Constraint.h,1.7,1.8 ConstraintHolder.h,1.
Brought to you by:
ewald-arnold
Update of /cvsroot/mockpp/mockpp/mockpp/constraint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12933/mockpp/constraint Modified Files: And.h Constraint.h ConstraintHolder.h ConstraintList.h ConstraintSet.cpp ConstraintSet.h ConstraintSetN.h IsAnything.cpp IsAnything.h IsCloseTo.h IsEqual.h IsGreaterOrEqual.h IsGreaterThan.h IsInstanceOf.h IsLessOrEqual.h IsLessThan.h IsNot.h IsNothing.cpp IsNothing.h IsSame.h Or.h OutBound.h StringContains.h StringEndsWith.h TypelessConstraint.cpp TypelessConstraint.h gen_constraintset_N.pl Log Message: update copyright date Index: IsAnything.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsAnything.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IsAnything.cpp 30 Dec 2004 20:54:04 -0000 1.2 +++ IsAnything.cpp 29 Dec 2005 19:29:51 -0000 1.3 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ConstraintList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintList.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ConstraintList.h 26 Nov 2005 17:57:00 -0000 1.7 +++ ConstraintList.h 29 Dec 2005 19:29:51 -0000 1.8 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Feb 26 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsGreaterOrEqual.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsGreaterOrEqual.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- IsGreaterOrEqual.h 6 Jan 2005 13:09:22 -0000 1.11 +++ IsGreaterOrEqual.h 29 Dec 2005 19:29:51 -0000 1.12 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: OutBound.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/OutBound.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- OutBound.h 23 Jul 2005 13:31:57 -0000 1.1 +++ OutBound.h 29 Dec 2005 19:29:51 -0000 1.2 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Jul 22 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: StringContains.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/StringContains.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- StringContains.h 6 Jan 2005 13:09:22 -0000 1.16 +++ StringContains.h 29 Dec 2005 19:29:51 -0000 1.17 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsGreaterThan.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsGreaterThan.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- IsGreaterThan.h 6 Jan 2005 13:09:22 -0000 1.15 +++ IsGreaterThan.h 29 Dec 2005 19:29:51 -0000 1.16 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: gen_constraintset_N.pl =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/gen_constraintset_N.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gen_constraintset_N.pl 29 Oct 2005 18:16:22 -0000 1.1 +++ gen_constraintset_N.pl 29 Dec 2005 19:29:51 -0000 1.2 @@ -28,7 +28,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsNot.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsNot.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- IsNot.h 6 Jan 2005 13:09:22 -0000 1.19 +++ IsNot.h 29 Dec 2005 19:29:51 -0000 1.20 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: TypelessConstraint.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/TypelessConstraint.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TypelessConstraint.cpp 4 Mar 2005 23:35:56 -0000 1.1 +++ TypelessConstraint.cpp 29 Dec 2005 19:29:51 -0000 1.2 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sun Oct 24 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsAnything.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsAnything.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- IsAnything.h 6 Jan 2005 13:09:22 -0000 1.19 +++ IsAnything.h 29 Dec 2005 19:29:51 -0000 1.20 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsEqual.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsEqual.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- IsEqual.h 1 Oct 2005 16:25:00 -0000 1.21 +++ IsEqual.h 29 Dec 2005 19:29:51 -0000 1.22 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: TypelessConstraint.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/TypelessConstraint.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- TypelessConstraint.h 24 Mar 2005 20:51:29 -0000 1.8 +++ TypelessConstraint.h 29 Dec 2005 19:29:51 -0000 1.9 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sun Oct 24 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ConstraintSet.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintSet.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- ConstraintSet.h 29 Oct 2005 18:16:22 -0000 1.16 +++ ConstraintSet.h 29 Dec 2005 19:29:51 -0000 1.17 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Constraint.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/Constraint.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Constraint.h 4 Mar 2005 23:35:56 -0000 1.7 +++ Constraint.h 29 Dec 2005 19:29:51 -0000 1.8 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsCloseTo.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsCloseTo.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- IsCloseTo.h 14 Nov 2005 17:24:09 -0000 1.18 +++ IsCloseTo.h 29 Dec 2005 19:29:51 -0000 1.19 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsLessThan.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsLessThan.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- IsLessThan.h 6 Jan 2005 13:09:22 -0000 1.15 +++ IsLessThan.h 29 Dec 2005 19:29:51 -0000 1.16 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsNothing.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsNothing.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- IsNothing.h 6 Jan 2005 13:09:22 -0000 1.17 +++ IsNothing.h 29 Dec 2005 19:29:51 -0000 1.18 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsSame.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsSame.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- IsSame.h 23 Sep 2005 21:32:38 -0000 1.20 +++ IsSame.h 29 Dec 2005 19:29:51 -0000 1.21 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsLessOrEqual.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsLessOrEqual.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- IsLessOrEqual.h 30 Jan 2005 12:09:18 -0000 1.12 +++ IsLessOrEqual.h 29 Dec 2005 19:29:51 -0000 1.13 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: StringEndsWith.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/StringEndsWith.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- StringEndsWith.h 6 Jan 2005 13:09:22 -0000 1.2 +++ StringEndsWith.h 29 Dec 2005 19:29:51 -0000 1.3 @@ -8,7 +8,7 @@ /************************************************************************** begin : Wed Jan 05 2005 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsInstanceOf.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsInstanceOf.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- IsInstanceOf.h 27 Nov 2005 15:34:36 -0000 1.18 +++ IsInstanceOf.h 29 Dec 2005 19:29:51 -0000 1.19 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: IsNothing.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/IsNothing.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- IsNothing.cpp 30 Dec 2004 20:54:04 -0000 1.2 +++ IsNothing.cpp 29 Dec 2005 19:29:51 -0000 1.3 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: Or.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/Or.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Or.h 6 Jan 2005 13:09:22 -0000 1.18 +++ Or.h 29 Dec 2005 19:29:51 -0000 1.19 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: And.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/And.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- And.h 30 Dec 2004 20:54:04 -0000 1.20 +++ And.h 29 Dec 2005 19:29:51 -0000 1.21 @@ -8,7 +8,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ConstraintSet.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintSet.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ConstraintSet.cpp 4 Mar 2005 23:35:56 -0000 1.1 +++ ConstraintSet.cpp 29 Dec 2005 19:29:51 -0000 1.2 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ConstraintSetN.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintSetN.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ConstraintSetN.h 13 Nov 2005 11:53:18 -0000 1.5 +++ ConstraintSetN.h 29 Dec 2005 19:29:51 -0000 1.6 @@ -9,7 +9,7 @@ /************************************************************************** begin : Sat Aug 21 2004 - copyright : (C) 2002-2005 by Ewald Arnold + copyright : (C) 2002-2006 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify Index: ConstraintHolder.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintHolder.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ConstraintHolder.h 25 Mar 2005 18:43:33 -0000 1.8 +++ ConstraintHolder.h 29 Dec 2005 19:29:51 -0000 1.9 @@ -1,104 +1,104 @@ -/** @file - @internal - @brief Container helper for constraint objects. - - $Id$ - - ***************************************************************************/ - -/************************************************************************** - - begin : Sun Oct 24 2004 - copyright : (C) 2002-2005 by Ewald Arnold - email : mockpp at ewald-arnold dot de - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - **/ - -#ifndef MOCKPP_CONSTRAINTHOLDER_H -#define MOCKPP_CONSTRAINTHOLDER_H - -#include <mockpp/util/AutoPointer.h> - -#include <mockpp/mockpp.h> // always first - -#include <mockpp/constraint/Constraint.h> -#include <mockpp/constraint/TypelessConstraint.h> - - -namespace mockpp { - - -/** Proxy class to conveniently move constraints into constraint sets. - * @internal - * @attention Not intended for common use since this class is actually a liar. - */ -template <typename T> -class ConstraintHolder -{ - public: - - /** Constructs the object. - * @param in_constraint pointer to the constraint - */ - ConstraintHolder(Constraint<T> *in_constraint) - : constraint(in_constraint) - {} - - /** Constructs the object. - * @param in_constraint pointer to the typeless constraint - */ - ConstraintHolder(const typename TypelessConstraint::AP &in_constraint) - : constraint(new TypelessConstraintAdapter<T>(in_constraint)) - {} - - /** Constructs the object. - * @param in_constraint pointer to the typeless constraint - */ - ConstraintHolder(TypelessConstraint *in_constraint) - : constraint(new TypelessConstraintAdapter<T>(in_constraint)) - {} - - /** Constructs the object. - * @param in_constraint pointer to the constraint - */ - ConstraintHolder(const typename Constraint<T>::AP &in_constraint) - : constraint(in_constraint) - {} - - /** Returns the constraint object. - * @attention After this method is called this object becomes invalid. - * @return the costraint object - */ -#if defined(__BORLANDC__) && (__BORLANDC__ >= 560) - operator typename AutoPointer<Constraint<T> > () const // we actually lie a bit -#else - operator typename Constraint<T>::AP () const -#endif - { - return constraint; - } - - private: - - mutable typename Constraint<T>::AP constraint; // we actually lie a bit -}; - - -} // namespace mockpp - - -#endif // MOCKPP_CONSTRAINTHOLDER_H +/** @file + @internal + @brief Container helper for constraint objects. + + $Id$ + + ***************************************************************************/ + +/************************************************************************** + + begin : Sun Oct 24 2004 + copyright : (C) 2002-2006 by Ewald Arnold + email : mockpp at ewald-arnold dot de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation; either version 2 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + **/ + +#ifndef MOCKPP_CONSTRAINTHOLDER_H +#define MOCKPP_CONSTRAINTHOLDER_H + +#include <mockpp/util/AutoPointer.h> + +#include <mockpp/mockpp.h> // always first + +#include <mockpp/constraint/Constraint.h> +#include <mockpp/constraint/TypelessConstraint.h> + + +namespace mockpp { + + +/** Proxy class to conveniently move constraints into constraint sets. + * @internal + * @attention Not intended for common use since this class is actually a liar. + */ +template <typename T> +class ConstraintHolder +{ + public: + + /** Constructs the object. + * @param in_constraint pointer to the constraint + */ + ConstraintHolder(Constraint<T> *in_constraint) + : constraint(in_constraint) + {} + + /** Constructs the object. + * @param in_constraint pointer to the typeless constraint + */ + ConstraintHolder(const typename TypelessConstraint::AP &in_constraint) + : constraint(new TypelessConstraintAdapter<T>(in_constraint)) + {} + + /** Constructs the object. + * @param in_constraint pointer to the typeless constraint + */ + ConstraintHolder(TypelessConstraint *in_constraint) + : constraint(new TypelessConstraintAdapter<T>(in_constraint)) + {} + + /** Constructs the object. + * @param in_constraint pointer to the constraint + */ + ConstraintHolder(const typename Constraint<T>::AP &in_constraint) + : constraint(in_constraint) + {} + + /** Returns the constraint object. + * @attention After this method is called this object becomes invalid. + * @return the costraint object + */ +#if defined(__BORLANDC__) && (__BORLANDC__ >= 560) + operator typename AutoPointer<Constraint<T> > () const // we actually lie a bit +#else + operator typename Constraint<T>::AP () const +#endif + { + return constraint; + } + + private: + + mutable typename Constraint<T>::AP constraint; // we actually lie a bit +}; + + +} // namespace mockpp + + +#endif // MOCKPP_CONSTRAINTHOLDER_H |