|
JX Application Framework
|
#include <JMMTable.h>
Public Member Functions | |
| JMMTable (JMemoryManager *manager) | |
| virtual | ~JMMTable () |
| void | AddNewRecord (const JMMRecord &record, const bool checkDoubleAllocation) |
| bool | SetRecordDeleted (JMMRecord *record, const void *block, const JUtf8Byte *file, const JUInt32 line, const bool isArray) |
| virtual JSize | GetAllocatedCount () const =0 |
| virtual JSize | GetAllocatedBytes () const =0 |
| virtual JSize | GetDeletedCount () const =0 |
| virtual JSize | GetTotalCount () const =0 |
| virtual void | SaveSnapshot ()=0 |
| virtual void | StreamSnapshotDiffForDebug (std::ostream &output, const JMemoryManager::RecordFilter &filter) const =0 |
| virtual void | PrintAllocated (const JMemoryManager::RecordFilter &filter) const =0 |
| virtual void | StreamAllocatedForDebug (std::ostream &output, const JMemoryManager::RecordFilter &filter) const =0 |
| virtual void | StreamAllocationSizeHistogram (std::ostream &output, const JMemoryManager::RecordFilter &filter) const =0 |
Protected Member Functions | |
| virtual void | _AddNewRecord (const JMMRecord &record, const bool checkDoubleAllocation)=0 |
| virtual bool | _SetRecordDeleted (JMMRecord *record, const void *block, const JUtf8Byte *file, const JUInt32 line, const bool isArray)=0 |
| void | BeginRecursiveBlock () |
| void | EndRecursiveBlock () |
| void | NotifyObjectDeletedAsArray (const JMMRecord &record) |
| void | NotifyArrayDeletedAsObject (const JMMRecord &record) |
| void | NotifyUnallocatedDeletion (const JUtf8Byte *file, const JUInt32 line, const bool isArray) |
| void | NotifyMultipleDeletion (const JMMRecord &firstRecord, const JUtf8Byte *file, const JUInt32 line, const bool isArray) |
| void | NotifyMultipleAllocation (const JMMRecord &thisRecord, const JMMRecord &firstRecord) |
| void | PrintAllocatedRecord (const JMMRecord &record) const |
| void | AddToHistogram (const JMMRecord &record, JSize histo[JMemoryManager::kHistogramSlotCount]) const |
| void | StreamHistogram (std::ostream &output, const JSize histo[JMemoryManager::kHistogramSlotCount]) const |
An abstract base class for a JMemoryManager memory table. Base code generated by Codemill v0.1.0
| JMMTable::JMMTable | ( | JMemoryManager * | manager | ) |
|
virtual |
|
protectedpure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
protectedpure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
protected |
|
protected |
|
protected |
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
protected |
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
| bool JMMTable::SetRecordDeleted | ( | JMMRecord * | record, |
| const void * | block, | ||
| const JUtf8Byte * | file, | ||
| const JUInt32 | line, | ||
| const bool | isArray | ||
| ) |
If the block is currently allocated, *record is set to its record and true is return. If not, *record is unchanged and false is returned.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.
|
protected |
The dual function is in jx_memory_debugger.
|
pure virtual |
Implemented in JMMArrayTable, and JMMHashTable.