Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

stackobject.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00024 
00025 #ifndef INTI_STACK_OBJECT_H
00026 #define INTI_STACK_OBJECT_H
00027 
00028 #ifndef _CPP_CSTDDEF
00029 #include <cstddef>
00030 #endif
00031 
00032 #if (__GNUC__ == 2 && __GNUC_MINOR__ <= 96)
00033 #define INTI_SKIP_PRIVATE_DELETE // For GCC 2.95.x
00034 #endif
00035 
00036 namespace Inti {
00037 
00044 
00045 class StackObject
00046 {
00047         StackObject(const StackObject&);
00048         StackObject& operator=(const StackObject&);
00049 
00050         static void *operator new(size_t size);
00051         static void *operator new[](size_t size);
00052 
00053 #ifndef INTI_SKIP_PRIVATE_DELETE
00054         static void operator delete(void *ptr);
00055         static void operator delete[](void *ptr);
00056 #endif
00057 
00058 protected:
00061 
00062         StackObject();
00064 
00066 
00067 public:
00070 
00071         ~StackObject();
00073 
00075 };
00076 
00077 } // namespace Inti
00078 
00079 #endif // INTI_STACK_OBJECT_H
00080 
00081 
Main Page - Footer


Generated on Sun Sep 14 20:08:04 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002