class GPBase

Base class for all smart-pointers.

Inheritance:


Public Methods

[more] GPBase()
Null Constructor.
[more] GPBase(const GPBase &sptr)
Copy Constructor.
[more] GPBase(GPEnabled *nptr)
Construct a GPBase from a pointer.
[more] ~GPBase()
Destructor.
[more]GPEnabled* get() const
Accesses the actual pointer.
[more]GPBase& assign(const GPBase &sptr)
Assignment from smartpointer.
[more]GPBase& assign(GPEnabled *nptr)
Assignment from pointer.
[more]GPBase& operator=(const GPBase & obj)
Assignment operator.
[more]int operator==(const GPBase & g2) const
Comparison operator.

Protected Fields

[more]GPEnabled* ptr
Actual pointer


Documentation

Base class for all smart-pointers. This class implements common mechanisms for all smart-pointers (see GP). There should be no need to use this class directly. Its sole purpose consists in reducing the template expansion overhead.
o GPBase()
Null Constructor.

o GPBase(const GPBase &sptr)
Copy Constructor. Increments the reference count.
Parameters:
sptr - reference to a GPBase object.

o GPBase(GPEnabled *nptr)
Construct a GPBase from a pointer. Increments the reference count.
Parameters:
nptr - pointer to a GPEnabled object.

o ~GPBase()
Destructor. Decrements the reference count.

oGPEnabled* get() const
Accesses the actual pointer.

oGPBase& assign(const GPBase &sptr)
Assignment from smartpointer. Increments the counter of the new value of the pointer. Decrements the counter of the previous value of the pointer.

oGPBase& assign(GPEnabled *nptr)
Assignment from pointer. Checks that the object is not being destroyed. Increments the counter of the new value of the pointer. Decrements the counter of the previous value of the pointer.

oGPBase& operator=(const GPBase & obj)
Assignment operator.

oint operator==(const GPBase & g2) const
Comparison operator.

oGPEnabled* ptr
Actual pointer


Direct child classes:
GP

Alphabetic index HTML hierarchy of classes or Java


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.