Xalan-C++ API Reference  1.12.0
Classes | Public Types | Public Member Functions | List of all members
xalanc::XalanDiagnosticMemoryManager Class Reference

#include <xalanc/Harness/XalanDiagnosticMemoryManager.hpp>

Inheritance diagram for xalanc::XalanDiagnosticMemoryManager:
[legend]
Collaboration diagram for xalanc::XalanDiagnosticMemoryManager:
[legend]

Classes

struct  Data
 
class  LockException
 

Public Types

enum  { defaultBytesToDump = 20u }
 
typedef std::ostream StreamType
 
typedef XalanMap< void *, DataMapType
 
typedef MapType::const_iterator const_iterator
 
- Public Types inherited from xalanc::XalanMemoryManager
typedef std::size_t size_type
 

Public Member Functions

 XalanDiagnosticMemoryManager (MemoryManager &theMemoryManager, bool fAssertErrors=false, StreamType *theStream=0)
 
virtual ~XalanDiagnosticMemoryManager ()
 
virtual void * allocate (size_type size)
 
virtual void deallocate (void *pointer)
 
virtual MemoryManager * getExceptionMemoryManager ()
 
bool getAssertErrors () const
 
void setAssertErrors (bool fFlag)
 
size_type getHighWaterMark () const
 
size_type getAllocated () const
 
size_type getAllocations () const
 
const_iterator getAllocationsIterator () const
 
void lock ()
 
void unlock ()
 
void dumpStatistics (StreamType *theStream=0, size_type theBytesToDump=defaultBytesToDump)
 
- Public Member Functions inherited from xalanc::XalanMemoryManager
 XalanMemoryManager ()
 
virtual ~XalanMemoryManager ()
 
virtual void * allocate (size_type size)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from xalanc::XalanMemoryManager
static MemoryManager & getExceptionMemoryManager (MemoryManager &theMemoryManager)
 
- Protected Member Functions inherited from xalanc::XalanMemoryManager
 XalanMemoryManager (const XalanMemoryManager &theSource)
 
XalanMemoryManageroperator= (const XalanMemoryManager &)
 

Detailed Description

Definition at line 45 of file XalanDiagnosticMemoryManager.hpp.

Member Typedef Documentation

◆ const_iterator

Definition at line 138 of file XalanDiagnosticMemoryManager.hpp.

◆ MapType

Definition at line 136 of file XalanDiagnosticMemoryManager.hpp.

◆ StreamType

Definition at line 49 of file XalanDiagnosticMemoryManager.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
defaultBytesToDump 

Definition at line 158 of file XalanDiagnosticMemoryManager.hpp.

Constructor & Destructor Documentation

◆ XalanDiagnosticMemoryManager()

xalanc::XalanDiagnosticMemoryManager::XalanDiagnosticMemoryManager ( MemoryManager &  theMemoryManager,
bool  fAssertErrors = false,
StreamType theStream = 0 
)

◆ ~XalanDiagnosticMemoryManager()

virtual xalanc::XalanDiagnosticMemoryManager::~XalanDiagnosticMemoryManager ( )
virtual

Member Function Documentation

◆ allocate()

virtual void* xalanc::XalanDiagnosticMemoryManager::allocate ( size_type  size)
virtual

◆ deallocate()

virtual void xalanc::XalanDiagnosticMemoryManager::deallocate ( void *  pointer)
virtual

◆ dumpStatistics()

void xalanc::XalanDiagnosticMemoryManager::dumpStatistics ( StreamType theStream = 0,
size_type  theBytesToDump = defaultBytesToDump 
)

◆ getAllocated()

size_type xalanc::XalanDiagnosticMemoryManager::getAllocated ( ) const
inline

Definition at line 103 of file XalanDiagnosticMemoryManager.hpp.

◆ getAllocations()

size_type xalanc::XalanDiagnosticMemoryManager::getAllocations ( ) const
inline

Definition at line 110 of file XalanDiagnosticMemoryManager.hpp.

◆ getAllocationsIterator()

const_iterator xalanc::XalanDiagnosticMemoryManager::getAllocationsIterator ( ) const
inline

Definition at line 141 of file XalanDiagnosticMemoryManager.hpp.

◆ getAssertErrors()

bool xalanc::XalanDiagnosticMemoryManager::getAssertErrors ( ) const
inline

Definition at line 82 of file XalanDiagnosticMemoryManager.hpp.

◆ getExceptionMemoryManager()

virtual MemoryManager* xalanc::XalanDiagnosticMemoryManager::getExceptionMemoryManager ( )
virtual

◆ getHighWaterMark()

size_type xalanc::XalanDiagnosticMemoryManager::getHighWaterMark ( ) const
inline

Definition at line 96 of file XalanDiagnosticMemoryManager.hpp.

◆ lock()

void xalanc::XalanDiagnosticMemoryManager::lock ( )
inline

Definition at line 147 of file XalanDiagnosticMemoryManager.hpp.

◆ setAssertErrors()

void xalanc::XalanDiagnosticMemoryManager::setAssertErrors ( bool  fFlag)
inline

Definition at line 88 of file XalanDiagnosticMemoryManager.hpp.

◆ unlock()

void xalanc::XalanDiagnosticMemoryManager::unlock ( )
inline

Definition at line 153 of file XalanDiagnosticMemoryManager.hpp.


The documentation for this class was generated from the following file: