List of all members
blaze::NonCopyable Class Reference

Base class for non-copyable class instances.The NonCopyable class is intended to work as a base class for non-copyable classes. Both the copy constructor and the copy assignment operator are explicitly deleted in order to prohibit copy operations of the derived classes.
. More...

#include <NonCopyable.h>

Inherited by blaze::Archive< Stream > [private], blaze::logging::FunctionTrace [private], blaze::MemoryPool< Type, Blocksize > [private], blaze::Singleton< T, D1, D2, D3, D4, D5, D6, D7, D8 > [private], blaze::Thread< TT, MT, LT, CT > [private], blaze::ThreadPool< TT, MT, LT, CT > [private], blaze::Singleton< Logger, SystemClock > [private], and blaze::Singleton< SystemClock > [private].

Protected Member Functions

Constructor and destructor
 NonCopyable ()
 Default constructor for the NonCopyable class.
 
 ~NonCopyable ()
 Destructor of the NonCopyable class.
 
Copy constructor and copy assignment operator
 NonCopyable (const NonCopyable &)=delete
 Copy constructor (explicitly deleted)
 
NonCopyableoperator= (const NonCopyable &)=delete
 Copy assignment operator (explicitly deleted)
 

Detailed Description

Base class for non-copyable class instances.

The NonCopyable class is intended to work as a base class for non-copyable classes. Both the copy constructor and the copy assignment operator are explicitly deleted in order to prohibit copy operations of the derived classes.
.

Note
It is not necessary to publicly derive from this class. It is sufficient to derive privately to prevent copy operations on the derived class.
class A : private NonCopyable
{ ... };

The documentation for this class was generated from the following file: