# HG changeset patch # User Alpar Juttner # Date 2008-04-12 20:41:48 # Node ID 91c0fed3181e507d1b514c769802832bfd991ecd # Parent 137278093143556e8f046f963a4809f1f21904f3 Change SubNoCounter to NoSubCounter diff --git a/lemon/counter.h b/lemon/counter.h --- a/lemon/counter.h +++ b/lemon/counter.h @@ -29,7 +29,7 @@ namespace lemon { - template class _SubNoCounter; + template class _NoSubCounter; template class _SubCounter @@ -41,7 +41,7 @@ public: typedef _SubCounter<_SubCounter

> SubCounter; - typedef _SubNoCounter<_SubCounter

> SubNoCounter; + typedef _NoSubCounter<_SubCounter

> NoSubCounter; _SubCounter(P &parent) : _parent(parent), _title(), _os(std::cerr), count(0) {} @@ -64,29 +64,29 @@ }; template - class _SubNoCounter + class _NoSubCounter { P &_parent; public: - typedef _SubNoCounter<_SubNoCounter

> SubCounter; - typedef _SubNoCounter<_SubNoCounter

> SubNoCounter; + typedef _NoSubCounter<_NoSubCounter

> SubCounter; + typedef _NoSubCounter<_NoSubCounter

> NoSubCounter; - _SubNoCounter(P &parent) :_parent(parent) {} - _SubNoCounter(P &parent,std::string,std::ostream &) + _NoSubCounter(P &parent) :_parent(parent) {} + _NoSubCounter(P &parent,std::string,std::ostream &) :_parent(parent) {} - _SubNoCounter(P &parent,std::string) + _NoSubCounter(P &parent,std::string) :_parent(parent) {} - _SubNoCounter(P &parent,const char *,std::ostream &) + _NoSubCounter(P &parent,const char *,std::ostream &) :_parent(parent) {} - _SubNoCounter(P &parent,const char *) + _NoSubCounter(P &parent,const char *) :_parent(parent) {} - ~_SubNoCounter() {} - _SubNoCounter &operator++() { ++_parent; return *this;} + ~_NoSubCounter() {} + _NoSubCounter &operator++() { ++_parent; return *this;} int operator++(int) { _parent++; return 0;} - _SubNoCounter &operator--() { --_parent; return *this;} + _NoSubCounter &operator--() { --_parent; return *this;} int operator--(int) { _parent--; return 0;} - _SubNoCounter &operator+=(int c) { _parent+=c; return *this;} - _SubNoCounter &operator-=(int c) { _parent-=c; return *this;} + _NoSubCounter &operator+=(int c) { _parent+=c; return *this;} + _NoSubCounter &operator-=(int c) { _parent-=c; return *this;} void reset(int) {} void reset() {} operator int() {return 0;} @@ -117,7 +117,7 @@ ///\todo document please. /// - typedef _SubNoCounter SubNoCounter; + typedef _NoSubCounter NoSubCounter; ///\e Counter() : _title(), _os(std::cerr), count(0) {} @@ -156,8 +156,8 @@ class NoCounter { public: - typedef _SubNoCounter SubCounter; - typedef _SubNoCounter SubNoCounter; + typedef _NoSubCounter SubCounter; + typedef _NoSubCounter NoSubCounter; NoCounter() {} NoCounter(std::string,std::ostream &) {}