#include <counter.h>
Public Methods | |
jint | getValue () |
Get current value. More... | |
Static Public Methods | |
Counter * | getCounter () |
Get static instance. More... | |
Public Attributes | |
Hash< ObjectTable, jint, LI1 > | table |
hashtable of couples (unique_id, pointer_to_object). | |
Protected Methods | |
Counter () | |
Default constructor. | |
Private Attributes | |
jint | _value |
current value of counter. |
This class implements counter. Each call to getValue() method increments stored value, so each call returns unique value. This class is used for generating unique IDs of profiler library objects (these IDs are needed during communication between profiler library and java part - gui to uniquely identify each object).
Definition at line 55 of file counter.h.
|
Get static instance. It returns static instance of Counter object.
Definition at line 37 of file counter.cpp. Referenced by IdObject::IdObject(), Prof::getData(), Prof::getInfo(), and Prof::getInfoBinaryFormat().
|
|
Get current value. This method returns current value of the counter and increments it, so next time, greater value will be returned.
Definition at line 82 of file counter.h. Referenced by IdObject::IdObject().
|