Vaca::NonCopyable Class Reference

#include <NonCopyable.h>

Inheritance diagram for Vaca::NonCopyable:

Vaca::Command Vaca::ConditionVariable Vaca::Graphics Vaca::MakeWidgetRef Vaca::Mutex Vaca::RadioGroup Vaca::Referenceable Vaca::ScopedLock Vaca::Thread Vaca::Timer

List of all members.

Detailed Description

Class which can't be copied.

If you derive from this class, then you will not be able to make copies of your own class. This means that the class will be copied neither using the copy constructor nor the assigment operator.


 class MyClass : private NonCopyable
   MyClass() {
 int main()
   MyClass a, b;
   MyClass c(a);   // <-- compiler error
   b = a;          // <-- compiler error

Public Member Functions

 NonCopyable ()
 ~NonCopyable ()

Private Member Functions

 NonCopyable (const NonCopyable &)
NonCopyableoperator= (const NonCopyable &)

Constructor & Destructor Documentation

Vaca::NonCopyable::NonCopyable (  )  [inline]

Vaca::NonCopyable::~NonCopyable (  )  [inline]

Vaca::NonCopyable::NonCopyable ( const NonCopyable  )  [private]

Member Function Documentation

NonCopyable& Vaca::NonCopyable::operator= ( const NonCopyable  )  [private]