Main MRPT website > C++ reference for MRPT 1.5.6
CUncopiable.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef CUNCOPIABLE_H
10 #define CUNCOPIABLE_H
11 
12 #include <mrpt/base/link_pragmas.h>
13 
14 namespace mrpt
15 {
16  namespace utils
17  {
18  /** The base class of classes that cannot be copied: compile-time errors will be issued on any copy operation.
19  * An example:
20  *
21  * \code
22  * class MyFancyClass : public mrpt::utils::CUncopiable
23  * {
24  * public:
25  * ...
26  * };
27  * \endcode
28  * \ingroup mrpt_base_grp
29  */
31  {
32  private:
33  CUncopiable(const CUncopiable &); // This doesn't need to be implemented anywhere
34  const CUncopiable& operator =(const CUncopiable &); // This doesn't need to be implemented anywhere
35  public:
37  }; // End of class def.
38 
39  } // End of namespace
40 } // end of namespace
41 #endif
The base class of classes that cannot be copied: compile-time errors will be issued on any copy opera...
Definition: CUncopiable.h:30



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018