COIN-OR::LEMON - Graph Library

Changeset 168:8ceb318224b1 in lemon-main


Ignore:
Timestamp:
06/14/08 19:52:08 (17 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Remove reset() functions from SubCounter? classes (ticket #82)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/counter.h

    r160 r168  
    6060    _SubCounter &operator+=(int c) { count+=c; return *this;}
    6161    _SubCounter &operator-=(int c) { count-=c; return *this;}
    62     void reset(int c=0) {count=c;}
    6362    operator int() {return count;}
    6463  };
     
    8887    _NoSubCounter &operator+=(int c) { _parent+=c; return *this;}
    8988    _NoSubCounter &operator-=(int c) { _parent-=c; return *this;}
    90     void reset(int) {}
    91     void reset() {}
    9289    operator int() {return 0;}
    9390  };
     
    204201    Counter &operator-=(int c) { count-=c; return *this;}
    205202    /// Resets the counter to the given value.
     203
     204    /// Resets the counter to the given value.
     205    /// \note This function does not reset the values of
     206    /// \ref SubCounter "SubCounter"s but it resets \ref NoSubCounter
     207    /// "NoSubCounter"s along with the main counter.
    206208    void reset(int c=0) {count=c;}
    207209    /// Returns the value of the counter.
Note: See TracChangeset for help on using the changeset viewer.