NOMAD Source  Version 4.0.0 Beta
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Uncopyable.hpp
Go to the documentation of this file.
1 /**
2  \file Uncopyable.hpp
3  \brief Base class for uncopyable classes (headers)
4  \author Sebastien Le Digabel
5  \date 2010-04-02
6 */
7 #ifndef __NOMAD400_UNCOPYABLE__
8 #define __NOMAD400_UNCOPYABLE__
9 
10 #include "../nomad_nsbegin.hpp"
11 
12  /// Base class for uncopyable classes
13  /**
14  See Scott Meyer's Effective C++, 3rd ed., item #6.
15  */
16  class Uncopyable {
17 
18  protected:
19 
20  /// Constructor.
21  explicit Uncopyable ( void ) {}
22 
23  /// Destructor.
24  virtual ~Uncopyable ( void ) {}
25 
26  private:
27 
28  /// Undefined copy constructor.
29  Uncopyable ( const Uncopyable & );
30 
31  /// Undefined affectation operator.
32  Uncopyable & operator = ( const Uncopyable & );
33  };
34 #include "../nomad_nsend.hpp"
35 
36 #endif
37 
Uncopyable & operator=(const Uncopyable &)
Undefined affectation operator.
Uncopyable(void)
Constructor.
Definition: Uncopyable.hpp:21
virtual ~Uncopyable(void)
Destructor.
Definition: Uncopyable.hpp:24
Base class for uncopyable classes.
Definition: Uncopyable.hpp:16