gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Remove reset() functions from SubCounter classes (ticket #82)
0 1 0
default
1 file changed with 5 insertions and 3 deletions:
↑ Collapse diff ↑
Show white space 6 line context
... ...
@@ -61,3 +61,2 @@
61 61
    _SubCounter &operator-=(int c) { count-=c; return *this;}
62
    void reset(int c=0) {count=c;}
63 62
    operator int() {return count;}
... ...
@@ -89,4 +88,2 @@
89 88
    _NoSubCounter &operator-=(int c) { _parent-=c; return *this;}
90
    void reset(int) {}
91
    void reset() {}
92 89
    operator int() {return 0;}
... ...
@@ -205,2 +202,7 @@
205 202
    /// 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. 
206 208
    void reset(int c=0) {count=c;}
0 comments (0 inline)