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

AllocObjectMethod Class Reference

Crossroad of objects and methods. More...

#include <allocObjectMethod.h>

Inheritance diagram for AllocObjectMethod::

LI1 LI2 LI3 AllocAbstractStatThreadObject IdObject ListItem ListItem ListItem AllocStatData RefCount RefCount RefCount DataBinaryFormat StatDataModification List of all members.

Public Methods

 AllocObjectMethod ()
 Default constructor.

virtual ~AllocObjectMethod ()
 Destructor.

virtual void addMemoryStat (jint size)
 Addition of the object's size to statistics. More...

virtual void subMemoryStat (jint size)
 Subtraction of the object's size from statistics. More...

virtual void clearFlag ()
 Clearing of flag. More...

const AllocObjectMethodKeygetKey (AllocObjectMethodKey &key)
 Retrieves object's key. More...

int operator== (const AllocObjectMethodKey &key)
 Compares object with given key. More...

void deactivate ()
 Performs deactivation.

void * operator new (size_t sz)
 Overloaded new() operator.

void operator delete (void *unit)
 Overloaded delete() operator.

virtual eClassIdent getClassIdent ()
 Class identification. More...

virtual int isActive ()
 State of object. 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.


Static Public Methods

int hashKey (const AllocObjectMethodKey &key)
 Hash function. More...


Public Attributes

AllocObjectobject
 parent AllocObject.

Methodmethod
 parent method.

List< AllocObjectTrace, LI2objectTraces
 associated AllocObjectTraces.

List< AllocThreadObjectMethod,
LI2
threadObjectMethods
 associated AllocThreadObjectMethods.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Crossroad of objects and methods.

This class defines a relation between an object and a method. Each object can be allocated in various methods, each method can allocate various objects. So it would be nice to have an information about where an object was allocated.

See also:
AllocObject, AllocObjectTrace, Method, AllocThreadObjectMethod
Author:
Marek Przeczek, Petr Luner

Definition at line 58 of file allocObjectMethod.h.


Member Function Documentation

void AllocObjectMethod::addMemoryStat jint    size [virtual]
 

Addition of the object's size to statistics.

This method adds size of object to the statistic data. It changes number of live/total instances, too.

Parameters:
size  size of object (in number of bytes)
See also:
subMemoryStat()

Reimplemented from AllocAbstractStatThreadObject.

Definition at line 44 of file allocObjectMethod.cpp.

Referenced by AllocThreadObjectMethod::addMemoryStat(), and AllocObjectTrace::addMemoryStat().

void AllocObjectMethod::clearFlag   [virtual]
 

Clearing of flag.

This method sets the modification flag to zero.

Reimplemented from AllocAbstractStatThreadObject.

Definition at line 66 of file allocObjectMethod.cpp.

Referenced by AllocThreadObjectMethod::clearFlag(), and AllocObjectTrace::clearFlag().

virtual eClassIdent AllocObjectMethod::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 171 of file allocObjectMethod.h.

const AllocObjectMethodKey & AllocObjectMethod::getKey AllocObjectMethodKey   key
 

Retrieves object's key.

Parameters:
key  where to store the key
Returns:
key
See also:
Hash

Definition at line 84 of file allocObjectMethod.cpp.

Referenced by AllocThreadObjectMethod::getKey().

int AllocObjectMethod::hashKey const AllocObjectMethodKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 96 of file allocObjectMethod.cpp.

int AllocObjectMethod::isActive   [virtual]
 

State of object.

Once an object is unactive, it remains unactive forever.

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

Reimplemented from IdObject.

Definition at line 101 of file allocObjectMethod.cpp.

Referenced by AllocThreadObjectMethod::isActive(), and AllocObjectTrace::isActive().

virtual int AllocObjectMethod::isChanged   [inline, virtual]
 

Indication that object has changed its data.

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

Reimplemented from IdObject.

Definition at line 186 of file allocObjectMethod.h.

int AllocObjectMethod::operator== const AllocObjectMethodKey   key
 

Compares object with given key.

Parameters:
key  key
Returns:
1 (true); 0 (false)
See also:
Hash

Definition at line 91 of file allocObjectMethod.cpp.

void AllocObjectMethod::subMemoryStat jint    size [virtual]
 

Subtraction of the object's size from statistics.

This method subtracts size of object from the statistic data. It changes number of live instances, too.

Parameters:
size  size of object (in number of bytes)
See also:
addMemoryStat()

Reimplemented from AllocAbstractStatThreadObject.

Definition at line 55 of file allocObjectMethod.cpp.

Referenced by AllocThreadObjectMethod::subMemoryStat(), and AllocObjectTrace::subMemoryStat().


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