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

AllocThreadMethod Class Reference

Crossroad of threads and methods. More...

#include <allocThreadMethod.h>

Inheritance diagram for AllocThreadMethod::

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

Public Methods

 AllocThreadMethod ()
 Default constructor.

virtual ~AllocThreadMethod ()
 Destructor.

const AllocThreadMethodKeygetKey (AllocThreadMethodKey &key)
 Retrieves object's key. More...

int operator== (const AllocThreadMethodKey &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 AllocThreadMethodKey &key)
 Hash function. More...


Public Attributes

Threadthread
 parent thread.

Methodmethod
 parent method.

List< AllocThreadObjectMethod,
LI3
threadObjectMethods
 associated AllocThreadObjectMethods.

List< AllocThreadTrace, LI1threadTraces
 associated AllocThreadTraces.


Static Private Attributes

Allocator _allocator
 allocator.


Detailed Description

Crossroad of threads and methods.

This class consists of statistic information about method while running in the thread. Same method can run in different threads. So it would be useful to have an information about each method (doing an allocation) in each thread.

See also:
Thread, AllocThreadObjectMethod, AllocThreadTrace
Author:
Marek Przeczek, Petr Luner

Definition at line 58 of file allocThreadMethod.h.


Member Function Documentation

virtual eClassIdent AllocThreadMethod::getClassIdent   [inline, virtual]
 

Class identification.

Returns:
unique class type identifier

Reimplemented from IdObject.

Definition at line 146 of file allocThreadMethod.h.

const AllocThreadMethodKey & AllocThreadMethod::getKey AllocThreadMethodKey   key
 

Retrieves object's key.

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

Definition at line 54 of file allocThreadMethod.cpp.

int AllocThreadMethod::hashKey const AllocThreadMethodKey   key [static]
 

Hash function.

Parameters:
key  reference to a key
Returns:
hash value

Definition at line 66 of file allocThreadMethod.cpp.

int AllocThreadMethod::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 71 of file allocThreadMethod.cpp.

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

virtual int AllocThreadMethod::isChanged   [inline, virtual]
 

Indication that object has changed its data.

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

Reimplemented from IdObject.

Definition at line 161 of file allocThreadMethod.h.

int AllocThreadMethod::operator== const AllocThreadMethodKey   key
 

Compares object with given key.

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

Definition at line 61 of file allocThreadMethod.cpp.


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