RiCounter

A counter that prints it's value when it goes out of scope.

[ Common | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class RiCounter
{
public:
// Constructors and assignment
RiCounter(char *label, unsigned long ival );
~RiCounter();
// Accessors
long long GetValue();
// Members
void operator+++(int);
void operator+==(int num);
protected:
}; // RiCounter


DESCRIPTION


RiCounter(char *label, unsigned long ival );

Default Constructor

    RiCounter(char *label, unsigned long ival = 0);

~RiCounter();

Destructor

    ~RiCounter();

long long GetValue();

Return the current value of the counter.

    long long  GetValue();

void operator++(int);

increment

    void operator++(int);

void operator+=(int num);

add to the counter

    void operator+=(int num);

All Members

public:
// Accessors
long long GetValue();
// Members
void operator+++(int);
void operator+==(int num);
protected:

Ancestors

Class does not inherit from any other class.


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:04 2000 .