Configurable memory manager. More...
Public Member Functions
|virtual MemoryManager *||getExceptionMemoryManager ()=0|
|This method is called to obtain the memory manager that should be used to allocate memory used in exceptions. |
|Default destructor. |
The pure virtual methods in this interface.
|virtual void *||allocate (XMLSize_t size)=0|
|This method allocates requested memory. |
|virtual void||deallocate (void *p)=0|
|This method deallocates memory. |
Protected Member Functions
|Protected default constructor. |
Configurable memory manager.
This interface allows outside applications to plug in their own memory manager to be used by Xerces for memory allocation/deallocation.
Protected default constructor.
|virtual void* xercesc::MemoryManager::allocate||(||XMLSize_t||size||)||
|virtual void xercesc::MemoryManager::deallocate||(||void *||p||)||
This method deallocates memory.
|p||The pointer to the allocated memory to be deleted|
Implemented in XPath2MemoryManager.
|virtual MemoryManager* xercesc::MemoryManager::getExceptionMemoryManager||(||)||
This method is called to obtain the memory manager that should be used to allocate memory used in exceptions.
If the same memory manager can be used, simply return 'this' from this function. Note, however, that if there is a possibility that an exception thrown can outlive the memory manager (for example, because the memory manager object is allocated on the stack or is managed by a stack-bound object), it is recommended that you return XMLPlatformUtils::fgMemoryManager.
Referenced by xercesc::DOMException::DOMException().