#include <debug.h>
Intended use is to count events (e.g. number of function calls), but can be used to store any integer value (e.g. size of some data structure)
Definition at line 175 of file debug.h.
|
Constructor. Takes the pointer to the actual counter, normally stored in class Debug below. |
|
Destructor.
|
|
Auto-cast to int. In particular, arithmetic comparisons like <, >, <=, >= will work because of this. Definition at line 188 of file debug.h. References d_counter. |
|
Prefix auto-decrement.
|
|
Prefix auto-increment.
|
|
Postfix auto-decrement.
Definition at line 197 of file debug.h. References d_counter. |
|
Postfix auto-increment.
Definition at line 199 of file debug.h. References d_counter. |
|
Value assignment.
Definition at line 201 of file debug.h. References d_counter. |
|
Definition at line 202 of file debug.h. References d_counter. |
|
Definition at line 203 of file debug.h. References d_counter. |
|
Assignment from another counter. It copies the value, not the pointer Definition at line 206 of file debug.h. References d_counter. |
|
It copies the value, not the pointer Definition at line 209 of file debug.h. References d_counter. |
|
It copies the value, not the pointer Definition at line 212 of file debug.h. References d_counter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Printing counters.
|
|
We don't own the pointer.
Definition at line 177 of file debug.h. Referenced by operator int(), CVCL::operator!=(), operator++(), operator+=(), operator--(), operator-=(), CVCL::operator<<(), operator=(), and CVCL::operator==(). |