All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 declared private and left undefined in order to prohibit copy operations of the derived classes.
. More...

#include <NonCopyable.h>

Inherited by blaze::logging::FunctionTrace [private], blaze::MemoryPool< Type, Blocksize > [private], blaze::SharedCountBase [private], blaze::Singleton< T, D1, D2, D3, D4, D5, D6, D7, D8 > [private], blaze::Thread [private], blaze::ThreadPool [private], blaze::threadpool::Task [private], blaze::UniqueArray< T, D > [private], blaze::UniquePtr< T, D > [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.
 

Private Member Functions

Copy constructor and copy assignment operator
 NonCopyable (const NonCopyable &)
 Copy constructor (private & undefined)
 
NonCopyableoperator= (const NonCopyable &)
 Copy assignment operator (private & undefined)
 

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 declared private and left undefined 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: