16 #if !defined(XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680)
17 #define XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680
30 XALAN_CPP_NAMESPACE_BEGIN
44 (Type*)memoryManager.allocate(
sizeof(Type)*size),
49 for ( Type* runPtr = theGuard.get() ; allocated < size ; ++ allocated )
51 new ( runPtr + allocated ) Type();
56 Type* theResult = theGuard.
get();
68 (Type*)memoryManager.allocate(
sizeof(Type)*size),
73 for ( Type* runPtr = theGuard.get() ; allocated < size ; ++ allocated )
75 new ( runPtr + allocated ) Type(memoryManager);
80 Type* theResult = theGuard.
get();
96 for (
size_t i = 0; i < size ; ++i )
101 memoryManager.deallocate ( ptr);
107 XALAN_CPP_NAMESPACE_END
111 #endif // if !defined(XALANMEMMGRARRAYALLOCATE_HEADER_GUARD_1357924680)
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: XalanMemMgrAutoPtr.hpp:219
Definition: XalanMemMngArrayAllocate.hpp:34
static Type * allocateMemMgr(size_t size, MemoryManagerType &memoryManager)
Definition: XalanMemMngArrayAllocate.hpp:64
static Type * allocate(size_t size, MemoryManagerType &memoryManager)
Definition: XalanMemMngArrayAllocate.hpp:40
static void deallocate(Type *ptr, size_t size, MemoryManagerType &memoryManager)
Definition: XalanMemMngArrayAllocate.hpp:88
size_t size_type
Definition: XalanMemMgrAutoPtr.hpp:226
Type * get() const
Definition: XalanMemMgrAutoPtr.hpp:361