# HG changeset patch # User Peter Kovacs # Date 2010-03-02 10:03:07 # Node ID 930ddeafdb209dd86cb111029bb344b18ac3b348 # Parent e77b621e6e7ecd5a325e1546bdfd51aa01c7b395 Add tolerance() functions for HaoOrlin (#306) 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 (*this) + 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) {