# HG changeset patch # User alpar # Date 1153241974 0 # Node ID bbc79b698f6291c8d4623d1751e6ce0d8f5797ab # Parent b1fb96088350d8971b4d6b660ae3ce0c1504cfe2 Tolerance and Tolerance added. diff -r b1fb96088350 -r bbc79b698f62 lemon/tolerance.h --- a/lemon/tolerance.h Tue Jul 18 15:57:55 2006 +0000 +++ b/lemon/tolerance.h Tue Jul 18 16:59:34 2006 +0000 @@ -49,6 +49,8 @@ ///\sa Tolerance ///\sa Tolerance ///\sa Tolerance + ///\sa Tolerance + ///\sa Tolerance template class Tolerance @@ -271,12 +273,46 @@ static Value zero() {return 0;} }; + ///Unsigned integer specialization of \ref Tolerance. + + ///Unsigned integer specialization of \ref Tolerance. + ///\sa Tolerance + template<> + class Tolerance + { + public: + ///\e + typedef unsigned int Value; + + ///\name Comparisons + ///See \ref Tolerance for more details. + + ///@{ + + ///Returns \c true if \c a is \e surely strictly less than \c b + static bool less(Value a,Value b) { return along long) + ///is not ansi compatible. ///\sa Tolerance template<> class Tolerance @@ -307,6 +343,41 @@ static Value zero() {return 0;} }; + ///Unsigned long long integer specialization of \ref Tolerance. + + ///Unsigned long long integer specialization of \ref Tolerance. + ///\warning This class (more exactly, type unsigned long long) + ///is not ansi compatible. + ///\sa Tolerance + template<> + class Tolerance + { + public: + ///\e + typedef unsigned long long int Value; + + ///\name Comparisons + ///See \ref Tolerance for more details. + + ///@{ + + ///Returns \c true if \c a is \e surely strictly less than \c b + static bool less(Value a,Value b) { return a