Chester
 All Classes Files Functions Variables Macros Pages
Classes | Macros
dptr_noncopy.h File Reference
#include "dptr_base.h"

Go to the source code of this file.

Classes

class  NonCopyDPtr
 Base class of non-shared d-pointers. More...
 

Macros

#define DEFINE_NONCOPY_DPTR(Class)
 Creates definitions for methods of the non-shared, non-copy d-pointer wrapper. More...
 

Macro Definition Documentation

#define DEFINE_NONCOPY_DPTR (   Class)
Value:
Class::DPrivate::DPrivate(){d=new Class::Private;}\
Class::DPrivate::DPrivate(const Class::DPrivate&){}\
Class::DPrivate::~DPrivate(){delete d;}\
Class::DPrivate& Class::DPrivate::operator=(const Class::DPrivate&)\
{return *this;}

Creates definitions for methods of the non-shared, non-copy d-pointer wrapper.

This variant is not shared between instances of the containing class.

To be used in implementation where the actual d-pointer class is implemented.

Parameters
Classthe base class within which the d-pointer was declared