#include <objectTable.h>
Inheritance diagram for ObjectTable::
Public Methods | |
ObjectTable (jint i, IdObject *o) | |
Constructor. More... | |
virtual | ~ObjectTable () |
Destructor. | |
const jint & | getKey (jint &key) |
Retrieves object's key. More... | |
int | operator== (const jint &key) |
Compares object with given key. More... | |
void * | operator new (size_t sz) |
Overloaded new() operator. | |
void | operator delete (void *unit) |
Overloaded delete() operator. | |
Static Public Methods | |
int | hashKey (const jint &key) |
Hash function. More... | |
Public Attributes | |
jint | id |
unique ID. | |
IdObject * | obj |
pointer to object. | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
This class consists of two items: unique ID of the object in profiler library's memory (having information about corresponding Java object) and pointer to this object. ID is used during the communication between Java and C++ part of Java profiler, ID uniquely identifies the object - pointers to objects cannot be transfered between Java and C++ - profiled JVM can be run on various platforms with various pointer length and/or on different machine than IDE, too. So, that's why "jint" IDs are used and later transformed to pointers by the profiler library.
Definition at line 57 of file objectTable.h.
|
Constructor. It initializes member variables.
Definition at line 73 of file objectTable.h. |
|
Retrieves object's key.
Definition at line 91 of file objectTable.h. |
|
Hash function.
Definition at line 110 of file objectTable.h. |
|
Compares object with given key.
Definition at line 102 of file objectTable.h. |