12 #ifndef DPTR_NONCOPY_CLASS_0_1_H
13 #define DPTR_NONCOPY_CLASS_0_1_H
16 namespace Chester_0_1{
39 using namespace Chester_0_1;
43 #ifdef DEFINE_NONCOPY_DPTR
44 #undef DEFINE_NONCOPY_DPTR
54 #define DEFINE_NONCOPY_DPTR(Class) \
55 Class::DPrivate::DPrivate(){d=new Class::Private;}\
56 Class::DPrivate::DPrivate(const Class::DPrivate&){}\
57 Class::DPrivate::~DPrivate(){delete d;}\
58 Class::DPrivate& Class::DPrivate::operator=(const Class::DPrivate&)\
NonCopyDPtr & operator=(const NonCopyDPtr &)
hides the assignment operator
Definition: dptr_noncopy.h:33
Base class of non-shared d-pointers.
Definition: dptr_noncopy.h:22
NonCopyDPtr(const NonCopyDPtr &)
hides the copy constructor
Definition: dptr_noncopy.h:31
virtual ~NonCopyDPtr()
deletes a non-shared d-pointer
Definition: dptr_noncopy.h:28
NonCopyDPtr()
instantiates a non-shared d-pointer
Definition: dptr_noncopy.h:26