Changeset 1855:c72636dcf0bd in lemon-0.x for lemon/counter.h
- Timestamp:
- 12/07/05 16:43:44 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/counter.h
r1851 r1855 72 72 73 73 _SubNoCounter(P &parent) :_parent(parent) {} 74 _SubNoCounter(P &parent,std::string title,std::ostream &os=std::cerr)74 _SubNoCounter(P &parent,std::string,std::ostream &) 75 75 :_parent(parent) {} 76 _SubNoCounter(P &parent,const char *title,std::ostream &os=std::cerr) 76 _SubNoCounter(P &parent,std::string) 77 :_parent(parent) {} 78 _SubNoCounter(P &parent,const char *,std::ostream &) 79 :_parent(parent) {} 80 _SubNoCounter(P &parent,const char *) 77 81 :_parent(parent) {} 78 82 ~_SubNoCounter() {} … … 83 87 _SubNoCounter &operator+=(int c) { _parent+=c; return *this;} 84 88 _SubNoCounter &operator-=(int c) { _parent-=c; return *this;} 85 void reset(int c=0) {} 89 void reset(int) {} 90 void reset() {} 86 91 operator int() {return 0;} 87 92 }; … … 155 160 156 161 NoCounter() {} 157 NoCounter(std::string title,std::ostream &os=std::cerr) {} 158 NoCounter(const char *title,std::ostream &os=std::cerr) {} 162 NoCounter(std::string,std::ostream &) {} 163 NoCounter(const char *,std::ostream &) {} 164 NoCounter(std::string) {} 165 NoCounter(const char *) {} 159 166 NoCounter &operator++() { return *this; } 160 167 int operator++(int) { return 0; } 161 168 NoCounter &operator--() { return *this; } 162 169 int operator--(int) { return 0; } 163 NoCounter &operator+=(int c) { return *this;} 164 NoCounter &operator-=(int c) { return *this;} 165 void reset(int c=0) {} 170 NoCounter &operator+=(int) { return *this;} 171 NoCounter &operator-=(int) { return *this;} 172 void reset(int) {} 173 void reset() {} 166 174 operator int() {return 0;} 167 175 };
Note: See TracChangeset
for help on using the changeset viewer.