#include <allocObjectMethod.h>
Inheritance diagram for AllocObjectMethod::
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 AllocObjectMethodKey & | getKey (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 | |
AllocObject * | object |
parent AllocObject. | |
Method * | method |
parent method. | |
List< AllocObjectTrace, LI2 > | objectTraces |
associated AllocObjectTraces. | |
List< AllocThreadObjectMethod, LI2 > | threadObjectMethods |
associated AllocThreadObjectMethods. | |
Static Private Attributes | |
Allocator | _allocator |
allocator. |
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.
Definition at line 58 of file allocObjectMethod.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 allocObjectMethod.cpp. Referenced by AllocThreadObjectMethod::addMemoryStat(), and AllocObjectTrace::addMemoryStat().
|
|
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().
|
|
Class identification.
Reimplemented from IdObject. Definition at line 171 of file allocObjectMethod.h. |
|
Retrieves object's key.
Definition at line 84 of file allocObjectMethod.cpp. Referenced by AllocThreadObjectMethod::getKey().
|
|
Hash function.
Definition at line 96 of file allocObjectMethod.cpp. |
|
State of object. Once an object is unactive, it remains unactive forever.
Reimplemented from IdObject. Definition at line 101 of file allocObjectMethod.cpp. Referenced by AllocThreadObjectMethod::isActive(), and AllocObjectTrace::isActive().
|
|
Indication that object has changed its data.
Reimplemented from IdObject. Definition at line 186 of file allocObjectMethod.h. |
|
Compares object with given key.
Definition at line 91 of file allocObjectMethod.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 allocObjectMethod.cpp. Referenced by AllocThreadObjectMethod::subMemoryStat(), and AllocObjectTrace::subMemoryStat().
|