Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

IdObject Class Reference

Unique ID of object. More...

#include <idObject.h>

Inheritance diagram for IdObject::

AllocArena AllocObject AllocObjectMethod AllocObjectTrace AllocThreadMethod AllocThreadObject AllocThreadObjectMethod AllocThreadObjectTrace AllocThreadTrace AllocTrace Class ClassField CpuThreadMethod CpuThreadTrace CpuTrace GC GroupThread Method MonThreadMethod MonThreadTrace MonTrace Thread List of all members.

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 ?


Detailed Description

Unique ID of object.

Each class inherited from this class contains special private unique ID. Each instance of that class will have different ID.

See also:
Counter, ObjectTable
Author:
Marek Przeczek

Definition at line 48 of file idObject.h.


Constructor & Destructor Documentation

IdObject::IdObject  
 

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.


Member Function Documentation

int IdObject::activeChanged  
 

Active flag of an object has changed.

Returns:
0 (not changed); 1 (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().

virtual eClassIdent IdObject::getClassIdent   [pure virtual]
 

Class identification.

Returns:
unique class type identifier

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().

jint IdObject::getProfID   [inline]
 

Get object ID.

This method returns ID given to this object. ID is unique.

Returns:
value

Definition at line 105 of file idObject.h.

Referenced by Prof::copy(), Prof::getInfoId(), Thread::infoToBin(), Method::infoToBin(), and AllocObject::infoToBin().

virtual int IdObject::isActive   [inline, virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

Returns:
0 (not active); 1 (active)

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().

virtual int IdObject::isChanged   [inline, virtual]
 

Indication that object has changed its data.

Returns:
0 (no change); 1 (data changed)

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.

int IdObject::isOfType eClassIdent    classIdent [inline]
 

Check the type.

Returns true, if class is of given type.

Parameters:
classIdent  class type identification
Returns:
0 (no); 1 (yes)

Definition at line 114 of file idObject.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 28 14:53:29 2002 for Java Profiler Dynamic Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001