#include <allocThreadObject.h>
Inheritance diagram for AllocThreadObject::
Public Methods | |
AllocThreadObject () | |
Default constructor. | |
virtual | ~AllocThreadObject () |
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 AllocThreadObjectKey & | getKey (AllocThreadObjectKey &key) |
Retrieves object's key. More... | |
int | operator== (const AllocThreadObjectKey &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 AllocThreadObjectKey &key) |
Hash function. More... | |
Public Attributes | |
Thread * | thread |
parent. | |
AllocObject * | object |
parent AllocObject. | |
List< AllocThreadObjectMethod, LI1 > | threadObjectMethods |
associated AllocThreadObjectMethod. | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
This class defines a relation between a thread and an object. Each object specified by its object type can be allocated in various threads. So, it would be useful to have an information in which thread an object was allocated. The statistics is done for a couple (object,thread).
Definition at line 57 of file allocThreadObject.h.
|
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.
Reimplemented from AllocAbstractStatThreadObject. Definition at line 44 of file allocThreadObject.cpp. Referenced by AllocThreadObjectMethod::addMemoryStat().
|
|
Clearing of flag. This method sets the modification flag to zero. Reimplemented from AllocAbstractStatThreadObject. Definition at line 66 of file allocThreadObject.cpp. Referenced by AllocThreadObjectMethod::clearFlag().
|
|
Class identification.
Reimplemented from IdObject. Definition at line 167 of file allocThreadObject.h. |
|
Retrieves object's key.
Definition at line 84 of file allocThreadObject.cpp. |
|
Hash function.
Definition at line 96 of file allocThreadObject.cpp. |
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented from IdObject. Definition at line 101 of file allocThreadObject.cpp. Referenced by AllocThreadObjectMethod::isActive().
|
|
Indication that object has changed its data.
Reimplemented from IdObject. Definition at line 182 of file allocThreadObject.h. |
|
Compares object with given key.
Definition at line 91 of file allocThreadObject.cpp. |
|
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.
Reimplemented from AllocAbstractStatThreadObject. Definition at line 55 of file allocThreadObject.cpp. Referenced by AllocThreadObjectMethod::subMemoryStat().
|