lemon/howard.h
changeset 816 e746fb14e680
parent 815 0a42883c8221
child 818 8452ca46e29a
     1.1 --- a/lemon/howard.h	Wed Aug 12 09:45:15 2009 +0200
     1.2 +++ b/lemon/howard.h	Tue Aug 18 10:08:28 2009 +0200
     1.3 @@ -273,6 +273,24 @@
     1.4        return *this;
     1.5      }
     1.6  
     1.7 +    /// \brief Set the tolerance used by the algorithm.
     1.8 +    ///
     1.9 +    /// This function sets the tolerance object used by the algorithm.
    1.10 +    ///
    1.11 +    /// \return <tt>(*this)</tt>
    1.12 +    Howard& tolerance(const Tolerance& tolerance) {
    1.13 +      _tolerance = tolerance;
    1.14 +      return *this;
    1.15 +    }
    1.16 +
    1.17 +    /// \brief Return a const reference to the tolerance.
    1.18 +    ///
    1.19 +    /// This function returns a const reference to the tolerance object
    1.20 +    /// used by the algorithm.
    1.21 +    const Tolerance& tolerance() const {
    1.22 +      return _tolerance;
    1.23 +    }
    1.24 +
    1.25      /// \name Execution control
    1.26      /// The simplest way to execute the algorithm is to call the \ref run()
    1.27      /// function.\n