This is specialized version of a Xerces * memory manager, which allocates memory using * using new[](size) syntax. Such memory may * legally be deleted with delete[]. *
*This version is used in special cases where it is desired * that allocated memory be able to be delete[]d. *
*/ class XMLUTIL_EXPORT MemoryManagerArrayImpl : public MemoryManager { public: /** @name Constructor */ //@{ /** * Default constructor */ MemoryManagerArrayImpl() { } //@} /** @name Destructor */ //@{ /** * Default destructor */ virtual ~MemoryManagerArrayImpl() { } //@} /** @name The virtual methods in MemoryManager */ //@{ /** * This method allocates requested memory. * * @param size The requested memory size * * @return A pointer to the allocated memory */ virtual void* allocate(size_t size); /** * This method deallocates memory * * @param p The pointer to the allocated memory to be deleted */ virtual void deallocate(void* p); //@} private: // ----------------------------------------------------------------------- // Unimplemented constructors and operators // ----------------------------------------------------------------------- MemoryManagerArrayImpl(const MemoryManagerArrayImpl&); MemoryManagerArrayImpl& operator=(const MemoryManagerArrayImpl&); }; XERCES_CPP_NAMESPACE_END #endif