COIN-OR::LEMON - Graph Library

Changeset 816:e746fb14e680 in lemon for lemon/howard.h


Ignore:
Timestamp:
08/18/09 10:08:28 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add tolerance() functions for MMC classes (#179)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/howard.h

    r815 r816  
    274274    }
    275275
     276    /// \brief Set the tolerance used by the algorithm.
     277    ///
     278    /// This function sets the tolerance object used by the algorithm.
     279    ///
     280    /// \return <tt>(*this)</tt>
     281    Howard& tolerance(const Tolerance& tolerance) {
     282      _tolerance = tolerance;
     283      return *this;
     284    }
     285
     286    /// \brief Return a const reference to the tolerance.
     287    ///
     288    /// This function returns a const reference to the tolerance object
     289    /// used by the algorithm.
     290    const Tolerance& tolerance() const {
     291      return _tolerance;
     292    }
     293
    276294    /// \name Execution control
    277295    /// The simplest way to execute the algorithm is to call the \ref run()
Note: See TracChangeset for help on using the changeset viewer.