Add tolerance() functions for HaoOrlin (#306)
authorPeter Kovacs <kpeter@inf.elte.hu>
Tue, 02 Mar 2010 10:03:07 +0100
changeset 860930ddeafdb20
parent 850 e77b621e6e7e
child 861 ab21ca093745
Add tolerance() functions for HaoOrlin (#306)
lemon/hao_orlin.h
     1.1 --- a/lemon/hao_orlin.h	Mon Mar 01 07:51:45 2010 +0100
     1.2 +++ b/lemon/hao_orlin.h	Tue Mar 02 10:03:07 2010 +0100
     1.3 @@ -165,6 +165,23 @@
     1.4        }
     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 +    /// \return <tt>(*this)</tt>
    1.11 +    HaoOrlin& tolerance(const Tolerance& tolerance) {
    1.12 +      _tolerance = tolerance;
    1.13 +      return *this;
    1.14 +    }
    1.15 +
    1.16 +    /// \brief Returns a const reference to the tolerance.
    1.17 +    ///
    1.18 +    /// This function returns a const reference to the tolerance object
    1.19 +    /// used by the algorithm.
    1.20 +    const Tolerance& tolerance() const {
    1.21 +      return _tolerance;
    1.22 +    }
    1.23 +
    1.24    private:
    1.25  
    1.26      void activate(const Node& i) {