#include <idObject.h>
Inheritance diagram for IdObject::
Public Types | |
enum | eClassIdent |
class type. | |
Public Methods | |
IdObject () | |
Default constructor. More... | |
virtual | ~IdObject () |
Destructor. | |
jint | getProfID () |
Get object ID. More... | |
int | isOfType (eClassIdent classIdent) |
Check the type. More... | |
virtual eClassIdent | getClassIdent ()=0 |
Class identification. More... | |
virtual int | isActive () |
State of object. More... | |
int | activeChanged () |
Active flag of an object has changed. More... | |
virtual int | isChanged () |
Indication that object has changed its data. More... | |
virtual void | setUnchanged () |
Set the structure is unchanged although it may not be. | |
Private Attributes | |
jint | profId |
unique ID. | |
int | _active |
active or not ? |
Each class inherited from this class contains special private unique ID. Each instance of that class will have different ID.
Definition at line 48 of file idObject.h.
|
Default constructor. It gets object ID from static Counter instance and adds this object to special ObjectTable hashtable. Definition at line 38 of file idObject.cpp. |
|
Active flag of an object has changed.
Definition at line 47 of file idObject.cpp. Referenced by Thread::isChanged(), MonTrace::isChanged(), MonThreadTrace::isChanged(), MonThreadMethod::isChanged(), Method::isChanged(), isChanged(), CpuTrace::isChanged(), CpuThreadTrace::isChanged(), CpuThreadMethod::isChanged(), AllocTrace::isChanged(), AllocThreadTrace::isChanged(), AllocThreadObjectTrace::isChanged(), AllocThreadObjectMethod::isChanged(), AllocThreadObject::isChanged(), AllocThreadMethod::isChanged(), AllocObjectTrace::isChanged(), AllocObjectMethod::isChanged(), and AllocObject::isChanged().
|
|
Class identification.
Reimplemented in AllocArena, AllocObject, AllocObjectMethod, AllocObjectTrace, AllocThreadMethod, AllocThreadObject, AllocThreadObjectMethod, AllocThreadObjectTrace, AllocThreadTrace, AllocTrace, CpuThreadMethod, CpuThreadTrace, CpuTrace, GC, MonThreadMethod, MonThreadTrace, MonTrace, Class, ClassField, GroupThread, Method, and Thread. Referenced by Prof::copy(), Prof::getData(), Prof::getDataFromList_filter(), Prof::getInfo(), Prof::getInfoBinaryFormat(), and isOfType().
|
|
Get object ID. This method returns ID given to this object. ID is unique.
Definition at line 105 of file idObject.h. Referenced by Prof::copy(), Prof::getInfoId(), Thread::infoToBin(), Method::infoToBin(), and AllocObject::infoToBin().
|
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented in AllocArena, AllocObject, AllocObjectMethod, AllocObjectTrace, AllocThreadMethod, AllocThreadObject, AllocThreadObjectMethod, AllocThreadObjectTrace, AllocThreadTrace, AllocTrace, CpuThreadMethod, CpuThreadTrace, CpuTrace, MonThreadMethod, MonThreadTrace, MonTrace, Class, Method, and Thread. Definition at line 131 of file idObject.h. Referenced by activeChanged(), Prof::copy(), Prof::getData(), and setUnchanged().
|
|
Indication that object has changed its data.
Reimplemented in AllocObject, AllocObjectMethod, AllocObjectTrace, AllocThreadMethod, AllocThreadObject, AllocThreadObjectMethod, AllocThreadObjectTrace, AllocThreadTrace, AllocTrace, CpuThreadMethod, CpuThreadTrace, CpuTrace, MonThreadMethod, MonThreadTrace, MonTrace, Method, and Thread. Definition at line 145 of file idObject.h. |
|
Check the type. Returns true, if class is of given type.
Definition at line 114 of file idObject.h. |