CVCL::DebugCounter Class Reference

Integer counter for debugging purposes. More...

#include <debug.h>

List of all members.

Public Member Functions

Private Attributes

Friends


Detailed Description

Integer counter for debugging purposes.

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 & Destructor Documentation

CVCL::DebugCounter::DebugCounter int &  c  )  [inline]
 

Constructor.

Takes the pointer to the actual counter, normally stored in class Debug below.

Definition at line 182 of file debug.h.

CVCL::DebugCounter::~DebugCounter  )  [inline]
 

Destructor.

Definition at line 184 of file debug.h.


Member Function Documentation

CVCL::DebugCounter::operator int  )  [inline]
 

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.

int CVCL::DebugCounter::operator--  )  [inline]
 

Prefix auto-decrement.

Definition at line 193 of file debug.h.

int CVCL::DebugCounter::operator++  )  [inline]
 

Prefix auto-increment.

Definition at line 195 of file debug.h.

int CVCL::DebugCounter::operator-- int   )  [inline]
 

Postfix auto-decrement.

Definition at line 197 of file debug.h.

References d_counter.

int CVCL::DebugCounter::operator++ int   )  [inline]
 

Postfix auto-increment.

Definition at line 199 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator= int  x  )  [inline]
 

Value assignment.

Definition at line 201 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator+= int  x  )  [inline]
 

Definition at line 202 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator-= int  x  )  [inline]
 

Definition at line 203 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator= const DebugCounter x  )  [inline]
 

Assignment from another counter.

It copies the value, not the pointer

Definition at line 206 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator-= const DebugCounter x  )  [inline]
 

It copies the value, not the pointer

Definition at line 209 of file debug.h.

References d_counter.

DebugCounter& CVCL::DebugCounter::operator+= const DebugCounter x  )  [inline]
 

It copies the value, not the pointer

Definition at line 212 of file debug.h.

References d_counter.


Friends And Related Function Documentation

bool operator== const DebugCounter c1,
const DebugCounter c2
[friend]
 

Definition at line 225 of file debug.h.

bool operator!= const DebugCounter c1,
const DebugCounter c2
[friend]
 

Definition at line 228 of file debug.h.

bool operator== int  c1,
const DebugCounter c2
[friend]
 

Definition at line 231 of file debug.h.

bool operator!= int  c1,
const DebugCounter c2
[friend]
 

Definition at line 234 of file debug.h.

bool operator== const DebugCounter c1,
int  c2
[friend]
 

Definition at line 237 of file debug.h.

bool operator!= const DebugCounter c1,
int  c2
[friend]
 

Definition at line 240 of file debug.h.

std::ostream& operator<< std::ostream &  os,
const DebugCounter f
[friend]
 

Printing counters.

Definition at line 243 of file debug.h.


Member Data Documentation

int* CVCL::DebugCounter::d_counter [private]
 

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==().


The documentation for this class was generated from the following file:
Generated on Thu Apr 13 16:57:43 2006 for CVC Lite by  doxygen 1.4.4