xorp

xorp_noncopyable.hh

00001 /* -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*- */
00002 /* vim:set sts=4 ts=8: */
00003 
00004 /*
00005  * Copyright (c) 2001-2011 XORP, Inc and Others
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License, Version
00009  * 2.1, June 1999 as published by the Free Software Foundation.
00010  * Redistribution and/or modification of this program under the terms of
00011  * any other version of the GNU Lesser General Public License is not
00012  * permitted.
00013  * 
00014  * This program is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00017  * see the GNU Lesser General Public License, Version 2.1, a copy of
00018  * which can be found in the XORP LICENSE.lgpl file.
00019  * 
00020  * XORP, Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00021  * http://xorp.net
00022  */
00023 
00024 // Idea from boost::noncopyable
00025 
00031 #ifndef __XORP_NONCOPYABLE__INC_
00032 #define __XORP_NONCOPYABLE__INC_
00033 
00034 class xorp_noncopyable {
00035 private:
00036    xorp_noncopyable(const xorp_noncopyable& rhs);
00037    xorp_noncopyable& operator=(const xorp_noncopyable& rhs);
00038 
00039 public:
00040    xorp_noncopyable() { }
00041 
00042 };
00043 
00044 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations