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
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019