XMemory Class Reference

This class makes it possible to override the C++ memory management by adding new/delete operators to this base class. More...

Inheritance diagram for XMemory:

AbstractDOMParser BinInputStream BinOutputStream DefaultPanicHandler InputSource OutOfMemoryException PSVIAttributeList PSVIItem QName SAXException SAXParser ValidationContext XMLAttDef XMLAttDefList XMLAttr XMLBigInteger XMLContentModel XMLElementDecl XMLEntityDecl XMLException XMLFormatTarget XMLFormatter XMLGrammarDescription XMLGrammarPool XMLHolder< Type > XMLInteger XMLLCPTranscoder XMLNetAccessor XMLNotationDecl XMLNumber XMLStringTokenizer XMLTranscoder XMLTransService XMLUri XMLURL XMLValidator XSModel XSNamedMap< TVal > XSNamespaceItem XSObject XSValue

List of all members.

Public Member Functions

The C++ memory management
void * operator new (size_t size)
 This method overrides operator new.
void * operator new (size_t size, MemoryManager *memMgr)
 This method defines a custom operator new, that will use the provided memory manager to perform the allocation.
void * operator new (size_t size, void *ptr)
 This method overrides placement operator new.
void operator delete (void *p)
 This method overrides operator delete.
void operator delete (void *p, MemoryManager *memMgr)
 This method provides a matching delete for the custom operator new.
void operator delete (void *p, void *ptr)
 This method provides a matching delete for the placement new.

Protected Member Functions

Constructor
 XMemory ()
 Protected default constructor.


Detailed Description

This class makes it possible to override the C++ memory management by adding new/delete operators to this base class.

This class is used in conjuction with the pluggable memory manager. It allows applications to control Xerces memory management.


Constructor & Destructor Documentation

XMemory::XMemory (  )  [protected]

Protected default constructor.


Member Function Documentation

void* XMemory::operator new ( size_t  size  ) 

This method overrides operator new.

Parameters:
size The requested memory size

void* XMemory::operator new ( size_t  size,
MemoryManager memMgr 
)

This method defines a custom operator new, that will use the provided memory manager to perform the allocation.

Parameters:
size The requested memory size
memMgr An application's memory manager

void* XMemory::operator new ( size_t  size,
void *  ptr 
)

This method overrides placement operator new.

Parameters:
size The requested memory size
ptr The memory location where the object should be allocated

void XMemory::operator delete ( void *  p  ) 

This method overrides operator delete.

Parameters:
p The pointer to the allocated memory

void XMemory::operator delete ( void *  p,
MemoryManager memMgr 
)

This method provides a matching delete for the custom operator new.

Parameters:
p The pointer to the allocated memory
memMgr An application's memory manager

void XMemory::operator delete ( void *  p,
void *  ptr 
)

This method provides a matching delete for the placement new.

Parameters:
p The pointer to the allocated memory
ptr The memory location where the object had to be allocated


The documentation for this class was generated from the following file:
Generated on Thu Feb 19 11:35:45 2009 for Xerces-C++ by  doxygen 1.5.4