[Lemon-commits] Alpar Juttner: Merge #306

Lemon HG hg at lemon.cs.elte.hu
Wed Mar 3 21:58:56 CET 2010


details:   http://lemon.cs.elte.hu/hg/lemon/rev/ab21ca093745
changeset: 935:ab21ca093745
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Wed Mar 03 20:48:29 2010 +0000
description:
	Merge #306

diffstat:

 lemon/hao_orlin.h |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (27 lines):

diff --git a/lemon/hao_orlin.h b/lemon/hao_orlin.h
--- a/lemon/hao_orlin.h
+++ b/lemon/hao_orlin.h
@@ -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) {



More information about the Lemon-commits mailing list