18#if !defined(XALANMEMORYMANAGEMENT_HEADER_GUARD_1357924680)
19#define XALANMEMORYMANAGEMENT_HEADER_GUARD_1357924680
33#include <xercesc/framework/MemoryManager.hpp>
42using xercesc::MemoryManager;
50#if XERCES_VERSION_MAJOR < 3
68 virtual MemoryManager*
74#if XERCES_VERSION_MAJOR < 3
122 m_memoryManager.deallocate(m_pointer);
141 MemoryManager& m_memoryManager;
495 static MemoryManager&
498 static MemoryManager&
501 static MemoryManager&
504 return getDefaultXercesMemMgr();
511#if defined (XALAN_DEVELOPMENT)
512#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR
513#define XALAN_DEFAULT_MEMMGR = XalanMemMgrs::getDummyMemMgr()
515#define XALAN_DEFAULT_CONSTRUCTOR_MEMMGR = XalanMemMgrs::getDefaultXercesMemMgr()
516#define XALAN_DEFAULT_MEMMGR = XalanMemMgrs::getDefaultXercesMemMgr()
550 return (
C*)
new (address)
C();
555 return (
C*)
new (address)
C(
theRhs);
566 return (
C*)
new (address)
C(
mgr);
589#define XALAN_USES_MEMORY_MANAGER(Type) \
591struct MemoryManagedConstructionTraits<Type> \
593 typedef ConstructWithMemoryManager<Type> Constructor; \
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
XalanAllocationGuard(MemoryManager &theMemoryManager, void *thePointer)
XalanAllocationGuard(MemoryManager &theMemoryManager, size_type theSize)
MemMgrAutoPtrData release()
static MemoryManager & getDefaultXercesMemMgr()
static MemoryManager & getDefault()
static MemoryManager & getDummyMemMgr()
XalanMemoryManager(const XalanMemoryManager &theSource)
virtual void * allocate(size_type size)=0
XalanMemoryManager & operator=(const XalanMemoryManager &)
static MemoryManager & getExceptionMemoryManager(MemoryManager &theMemoryManager)
virtual MemoryManager * getExceptionMemoryManager()=0
virtual void deallocate(void *pointer)=0
virtual ~XalanMemoryManager()
MemoryManager MemoryManagerType
Type * XalanConstruct(MemoryManager &theMemoryManager, Type *&theInstance)
Type * XalanCopyConstruct(MemoryManager &theMemoryManager, const Type &theSource)
void XalanDestroy(Type &theArg)
ConstructValueWithMemoryManager(MemoryManager &mgr)
ConstructValueWithNoMemoryManager(MemoryManager &)
ConstructWithMemoryManager< C > Constructor
ConstructValueWithMemoryManager< C > ConstructableType
static C * construct(C *address, const C &theRhs, MemoryManager &mgr)
static C * construct(C *address, MemoryManager &mgr)
ConstructWithNoMemoryManager< C > Constructor
static C * construct(C *address, MemoryManager &)
static C * construct(C *address, const C &theRhs, MemoryManager &)
ConstructValueWithNoMemoryManager< C > ConstructableType
ConstructWithMemoryManager< C > Constructor
ConstructWithNoMemoryManager< C > Constructor