| API Docs for SAX and DOM |
| Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages # XMemory.hpp Go to the documentation of this file.
    00001 /*
    00002  * Copyright 2003,2004 The Apache Software Foundation.
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00017 /*
    00018  * $Id: XMemory.hpp 176295 2005-01-26 13:29:32Z amassari $
    00019  */
    00020
    00021
    00022 #if !defined(XMEMORY_HPP)
    00023 #define XMEMORY_HPP
    00024
    00025 #include <xercesc/util/XercesDefs.hpp>
    00026 #include <stdlib.h>
    00027
    00028 XERCES_CPP_NAMESPACE_BEGIN
    00029
    00030 class MemoryManager;
    00031
    00040 class  XMemory
    00041 {
    00042 public :
    00043     // -----------------------------------------------------------------------
    00044     //  The C++ memory management
    00045     // -----------------------------------------------------------------------
    00048
    00054     void* operator new(size_t size);
    00055
    00056 #if defined(XML_VISUALCPP)
    00057
    00064     void* operator new(size_t size, const char* file, int line);
    00072     void operator delete(void* p, const char* file, int line);
    00073 #endif
    00074
    00082     void* operator new(size_t size, MemoryManager* memMgr);
    00083
    00090     void* operator new(size_t size, void* ptr);
    00091
    00097     void operator delete(void* p);
    00098
    00099      //The Borland compiler is complaining about duplicate overloading of delete
    00100 #if !defined(XML_BORLAND)
    00101
    00107     void operator delete(void* p, MemoryManager* memMgr);
    00108
    00115     void operator delete(void* p, void* ptr);
    00116 #endif
    00117
    00119
    00120 protected :
    00121     // -----------------------------------------------------------------------
    00122     //  Hidden Constructors
    00123     // -----------------------------------------------------------------------
    00126
    00130     XMemory()
    00131     {
    00132     }
    00134
    00135 #if defined(XML_BORLAND)
    00136     virtual ~XMemory()
    00137     {
    00138     }
    00139 #endif
    00140
    00141 };
    00142
    00143 XERCES_CPP_NAMESPACE_END
    00144
    00145 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.