lemon/hartmann_orlin.h
changeset 769 e746fb14e680
parent 768 0a42883c8221
child 771 8452ca46e29a
     1.1 --- a/lemon/hartmann_orlin.h	Wed Aug 12 09:45:15 2009 +0200
     1.2 +++ b/lemon/hartmann_orlin.h	Tue Aug 18 10:08:28 2009 +0200
     1.3 @@ -282,6 +282,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 +    HartmannOrlin& 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