Merge branch 'db/rev'
[plumiferos.git] / intern / memutil / MEM_NonCopyable.h
blobbfb9a8c748fa18b5ee5fd20f0399c2d4ca4b9607
1 /**
2 * $Id: MEM_NonCopyable.h 247 2002-12-30 12:11:03Z maarten $
3 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version. The Blender
9 * Foundation also sells licenses for use in proprietary software under
10 * the Blender License. See http://www.blender.org/BL/ for information
11 * about this.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23 * All rights reserved.
25 * The Original Code is: all of this file.
27 * Contributor(s): none yet.
29 * ***** END GPL/BL DUAL LICENSE BLOCK *****
31 /**
32 * @file MEM_NonCopyable.h
33 * Declaration of MEM_NonCopyable class.
36 #ifndef NAN_INCLUDED_NonCopyable_h
37 #define NAN_INCLUDED_NonCopyable_h
39 /**
40 * Simple class that makes sure sub classes cannot
41 * generate standard copy constructors.
42 * If you want to make sure that your class does
43 * not have any of these cheesy hidden constructors
44 * inherit from this class.
47 class MEM_NonCopyable {
48 protected :
50 MEM_NonCopyable(
51 ) {
54 private :
56 MEM_NonCopyable (const MEM_NonCopyable *);
57 MEM_NonCopyable (const MEM_NonCopyable &);
60 #endif