[Lemon-commits] Peter Kovacs: Add tolerance() functions for HaoO...
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/930ddeafdb20
changeset: 934:930ddeafdb20
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Tue Mar 02 10:03:07 2010 +0100
description:
Add tolerance() functions for HaoOrlin (#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