This is Unofficial EPICS BASE Doxygen Site
noDefaultMethods.h File Reference
#include <shareLib.h>
+ Include dependency graph for noDefaultMethods.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  epics::pvData::NoDefaultMethods
 Base class for not allowing default methods. More...
 

Namespaces

 epics
 TODO only here because of the Lockable.
 
 epics::pvData
 pvData
 

Macros

#define EPICS_NOT_COPYABLE(CLASS)   private: CLASS(const CLASS&); CLASS& operator=(const CLASS&);
 Disable implicit copyable. More...
 

Macro Definition Documentation

#define EPICS_NOT_COPYABLE (   CLASS)    private: CLASS(const CLASS&); CLASS& operator=(const CLASS&);

Disable implicit copyable.

Author
mrk EPICS_NOT_COPYABLE(CLASS) Prevent the default copy constructor and assignment operator from being usable.

For >= C++11 explicitly disable. Attempts to copy/assign will fail to compile.

For C++98 make these private, and don't implement them. User code will fail to compile, implementation code will fail to link.

1 struct MyClass {
2  EPICS_NOT_COPYABLE(MyClass)
3 public:
4  ...
5 };
Note
This macro contains 'private:'.

Definition at line 38 of file noDefaultMethods.h.