|
ESyS-Particle
2.3.4
|
#include <Counter.h>
Public Member Functions | |
| CCounter () | |
| CCounter (char *Name, int Id=0) | |
| virtual | ~CCounter () |
| void | create (char *Name, int Id=0) |
| create counter, call by constructor More... | |
| CCounter & | operator+= (int n) |
| increment counter by n More... | |
| CCounter & | operator-= (int n) |
| decrement counter by n More... | |
| CCounter & | operator++ () |
| increment counter by 1 More... | |
| CCounter & | operator-- () |
| decrement counter by 1 More... | |
| CCounter & | operator++ (int) |
| increment counter by 1 More... | |
| CCounter & | operator-- (int) |
| decrement counter by 1 More... | |
| CCounter & | reset () |
| reset the counter to 0 More... | |
| char * | getName () |
| return name of counter More... | |
| operator int () | |
| return the value of the counter More... | |
| ostream & | print (ostream &Out) |
| method to print the value More... | |
Protected Attributes | |
| char * | Name |
| Name is allocated or deallocated on construction or destruction, respectively. More... | |
| int | Value |
| int | Id |
Provide a basic "counter", a counter has a Name and a value and an optional Id.
| CCounter::CCounter | ( | char * | Name, |
| int | Id = 0 |
||
| ) |
|
virtual |
References Name.
| void CCounter::create | ( | char * | Name, |
| int | Id = 0 |
||
| ) |
create counter, call by constructor
References Id, Name, and Value.
Referenced by CCounter().

| char * CCounter::getName | ( | ) |
return name of counter
References Name.
Referenced by CCounterList::counter(), and CCounterList::operator<<().

| CCounter::operator int | ( | ) |
return the value of the counter
| ostream & CCounter::print | ( | ostream & | Out | ) |
method to print the value
Referenced by operator<<(), and CCounterList::print().

|
protected |
Referenced by CCounter(), and create().
|
protected |
Name is allocated or deallocated on construction or destruction, respectively.
Referenced by CCounter(), create(), getName(), print(), and ~CCounter().
|
protected |
Referenced by CCounter(), create(), operator++(), operator+=(), operator--(), operator-=(), print(), and reset().