18#if !defined(XERCESC_INCLUDE_GUARD_DOMMEMORYMANAGER_HPP)
19#define XERCESC_INCLUDE_GUARD_DOMMEMORYMANAGER_HPP
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
The DOMMemoryManager interface exposes the memory allocation-related functionalities of a DOMDocument...
Definition DOMMemoryManager.hpp:33
virtual XMLCh * cloneString(const XMLCh *src)=0
Allocate a memory block from the mnaged pool and copy the provided string.
NodeObjectType
Definition DOMMemoryManager.hpp:70
@ ELEMENT_OBJECT
Definition DOMMemoryManager.hpp:77
@ CDATA_SECTION_OBJECT
Definition DOMMemoryManager.hpp:73
@ NOTATION_OBJECT
Definition DOMMemoryManager.hpp:81
@ DOCUMENT_TYPE_OBJECT
Definition DOMMemoryManager.hpp:76
@ ATTR_NS_OBJECT
Definition DOMMemoryManager.hpp:72
@ TEXT_OBJECT
Definition DOMMemoryManager.hpp:83
@ PROCESSING_INSTRUCTION_OBJECT
Definition DOMMemoryManager.hpp:82
@ DOCUMENT_FRAGMENT_OBJECT
Definition DOMMemoryManager.hpp:75
@ ATTR_OBJECT
Definition DOMMemoryManager.hpp:71
@ COMMENT_OBJECT
Definition DOMMemoryManager.hpp:74
@ ENTITY_REFERENCE_OBJECT
Definition DOMMemoryManager.hpp:80
@ ENTITY_OBJECT
Definition DOMMemoryManager.hpp:79
@ ELEMENT_NS_OBJECT
Definition DOMMemoryManager.hpp:78
virtual void release(DOMNode *object, DOMMemoryManager::NodeObjectType type)=0
Release a DOM object and place its memory back in the pool.
virtual ~DOMMemoryManager()
Destructor.
Definition DOMMemoryManager.hpp:64
virtual void * allocate(XMLSize_t amount)=0
Allocate a memory block of the requested size from the managed pool.
virtual void setMemoryAllocationBlockSize(XMLSize_t size)=0
Set the size of the chunks of memory allocated by the memory manager.
DOMMemoryManager()
Definition DOMMemoryManager.hpp:40
virtual void * allocate(XMLSize_t amount, DOMMemoryManager::NodeObjectType type)=0
Allocate a memory block of the requested size from the managed pool of DOM objects.
virtual XMLSize_t getMemoryAllocationBlockSize() const =0
Returns the size of the chunks of memory allocated by the memory manager.
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition DOMNode.hpp:139