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(GPEnabled *nptr)
Assignment.
[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(GPEnabled *nptr)
Assignment. Increments the counter of the new value of the pointer. Decrements the counter of the previous value of the pointer.
Parameters:
nptr - new GPEnabled pointer assigned to this object.

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