sigx++
2.0.1
Main Page
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
sigx
nonheapallocatable.h
Go to the documentation of this file.
1
#ifndef _SIGX_NONHEAPALLOCATABLE_HPP_
2
#define _SIGX_NONHEAPALLOCATABLE_HPP_
3
4
/*
5
* Copyright 2006 Klaus Triendl
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
16
*
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free
19
* Software Foundation, 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
#include <new>
24
#include <sigxconfig.h>
25
26
27
namespace
sigx
28
{
29
35
class
SIGX_API
nonheapallocatable
36
{
37
protected
:
38
nonheapallocatable
() {}
39
~nonheapallocatable
() {}
40
41
42
private
:
43
void
*
operator
new
(std::size_t);
44
void
operator
delete
(
void
*);
45
};
46
47
48
}
// namespace sigx
49
50
51
#endif // #ifndef _SIGX_NONHEAPALLOCATABLE_HPP_
sigx::nonheapallocatable
Private operator new and delete ensure derived classes cannot be created with new on the heap...
Definition:
nonheapallocatable.h:35
sigx::nonheapallocatable::~nonheapallocatable
~nonheapallocatable()
Definition:
nonheapallocatable.h:39
sigx::nonheapallocatable::nonheapallocatable
nonheapallocatable()
Definition:
nonheapallocatable.h:38
Generated on Mon May 25 2015 08:20:03 for sigx++ by
1.8.6