void JMMArrayTable::StreamAllocatedForDebug ( ostream& output, const JMemoryManager::RecordFilter& filter ) const { const JSize count = itsAllocatedTable->GetElementCount(); for (JIndex i=1;i<=count;i++) { const JMMRecord thisRecord = itsAllocatedTable->GetElement(i); if (filter.Match(thisRecord)) { output << ' ' << kJTrue; output << ' '; thisRecord.StreamForDebug(output); } } output << ' ' << kJFalse; }
void JMMHashTable::StreamAllocatedForDebug ( ostream& output, const JMemoryManager::RecordFilter& filter ) const { JConstHashCursor<JMMRecord> cursor(itsAllocatedTable); JSize totalSize = 0; while ( cursor.NextFull() ) { const JMMRecord thisRecord = cursor.GetValue(); if (filter.Match(thisRecord)) { output << ' ' << kJTrue; output << ' '; thisRecord.StreamForDebug(output); } } output << ' ' << kJFalse; }