#include <XMemory.hpp>
Inheritance diagram for xercesc::XMemory:
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. |
This class is used in conjuction with the pluggable memory manager. It allows applications to control Xerces memory management.
xercesc::XMemory::XMemory | ( | ) | [inline, protected] |
Protected default constructor.
xercesc::XMemory::XMemory | ( | ) | [inline, protected] |
Protected default constructor.
void* xercesc::XMemory::operator new | ( | size_t | size | ) |
This method overrides operator new.
size | The requested memory size |
void* xercesc::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.
size | The requested memory size | |
memMgr | An application's memory manager |
void* xercesc::XMemory::operator new | ( | size_t | size, | |
void * | ptr | |||
) |
This method overrides placement operator new.
size | The requested memory size | |
ptr | The memory location where the object should be allocated |
void xercesc::XMemory::operator delete | ( | void * | p | ) |
This method overrides operator delete.
p | The pointer to the allocated memory |
void xercesc::XMemory::operator delete | ( | void * | p, | |
MemoryManager * | memMgr | |||
) |
This method provides a matching delete for the custom operator new.
p | The pointer to the allocated memory | |
memMgr | An application's memory manager |
void xercesc::XMemory::operator delete | ( | void * | p, | |
void * | ptr | |||
) |
This method provides a matching delete for the placement new.
p | The pointer to the allocated memory | |
ptr | The memory location where the object had to be allocated |