# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1267520587 -3600
# Node ID 930ddeafdb209dd86cb111029bb344b18ac3b348
# Parent  e77b621e6e7ecd5a325e1546bdfd51aa01c7b395
Add tolerance() functions for HaoOrlin (#306)

diff -r e77b621e6e7e -r 930ddeafdb20 lemon/hao_orlin.h
--- a/lemon/hao_orlin.h	Mon Mar 01 07:51:45 2010 +0100
+++ b/lemon/hao_orlin.h	Tue Mar 02 10:03:07 2010 +0100
@@ -165,6 +165,23 @@
       }
     }
 
+    /// \brief Set the tolerance used by the algorithm.
+    ///
+    /// This function sets the tolerance object used by the algorithm.
+    /// \return <tt>(*this)</tt>
+    HaoOrlin& tolerance(const Tolerance& tolerance) {
+      _tolerance = tolerance;
+      return *this;
+    }
+
+    /// \brief Returns a const reference to the tolerance.
+    ///
+    /// This function returns a const reference to the tolerance object
+    /// used by the algorithm.
+    const Tolerance& tolerance() const {
+      return _tolerance;
+    }
+
   private:
 
     void activate(const Node& i) {