16 #if !defined(XALANMEMMGRHELPER_HEADER_GUARD_1357924680)
17 #define XALANMEMMGRHELPER_HEADER_GUARD_1357924680
31 XALAN_CPP_NAMESPACE_BEGIN
40 Type* theResult = theGuard.
get();
42 new (theResult) Type(other, theManager);
58 Type* theResult = theGuard.
get();
60 new (theResult) Type(other);
79 Type* theResult = theGuard.
get();
81 new (theResult) Type(theManager);
95 Type*
const nonConstPointer =
96 #if defined(XALAN_OLD_STYLE_CASTS)
99 const_cast<Type*
>(ptr);
101 nonConstPointer->~Type();
103 theManager.deallocate(nonConstPointer);
109 XALAN_CPP_NAMESPACE_END
113 #endif // if !defined(XALANMEMMGRHELPER_HEADER_GUARD_1357924680)
Definition: XalanMemMgrHelper.hpp:70
XALAN_CPP_NAMESPACE_BEGIN Type * cloneObjWithMemMgr(const Type &other, MemoryManagerType &theManager)
Definition: XalanMemMgrHelper.hpp:35
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Type * operator()(MemoryManagerType &theManager)
Definition: XalanMemMgrHelper.hpp:74
Type * get() const
Definition: XalanMemMgrAutoPtr.hpp:164
Definition: XalanMemMgrAutoPtr.hpp:46
Type * cloneObj(const Type &other, MemoryManagerType &theManager)
Definition: XalanMemMgrHelper.hpp:53
void destroyObjWithMemMgr(const Type *ptr, MemoryManagerType &theManager)
Definition: XalanMemMgrHelper.hpp:91