ESyS-Particle  4.0.1
Public Member Functions | Protected Attributes
CCounter Class Reference

#include <Counter.h>

List of all members.

Public Member Functions

 CCounter (char *Name, int Id=0)
void create (char *Name, int Id=0)
 create counter, call by constructor
CCounteroperator+= (int n)
 increment counter by n
CCounteroperator-= (int n)
 decrement counter by n
CCounteroperator++ ()
 increment counter by 1
CCounteroperator-- ()
 decrement counter by 1
CCounteroperator++ (int)
 increment counter by 1
CCounteroperator-- (int)
 decrement counter by 1
CCounterreset ()
 reset the counter to 0
char * getName ()
 return name of counter
 operator int ()
 return the value of the counter
ostream & print (ostream &Out)
 method to print the value

Protected Attributes

char * Name
 Name is allocated or deallocated on construction or destruction, respectively.
int Value
int Id

Detailed Description

Provide a basic "counter", a counter has a Name and a value and an optional Id.


The documentation for this class was generated from the following files: