vrq
cobject.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (C) 1997-2007, Mark Hummel
3  * This file is part of Vrq.
4  *
5  * Vrq is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * Vrq is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301 USA
19  *****************************************************************************
20  */
21 /******************************************************************************
22  *
23  *
24  * cobject.hpp
25  * - base class for bulk allocated objects
26  *
27  *
28  ******************************************************************************
29  */
30 
31 #ifndef COBJECT_HPP
32 #define COBJECT_HPP
33 
34 #include "cobstack.h"
35 
41 class CObject
42 {
43 public:
50  void* operator new( size_t size, CObstack* stack )
51  {
52  return stack->Alloc( size );
53  };
59  void operator delete( void* object )
60  {
61  };
62 };
63 
64 #endif // COBJECT_HPP
Bulk object allocation object.
Definition: cobstack.h:46
Base class for vrq objects.
Definition: cobject.h:41