kviewshell
GPBase Class Reference
Base class for all smart-pointers. More...
#include <GSmartPointer.h>
Public Member Functions | |
GPBase & | assign (GPEnabled *nptr) |
GPBase & | assign (const GPBase &sptr) |
GPEnabled * | get () const |
GPBase (GPEnabled *nptr) | |
GPBase (const GPBase &sptr) | |
GPBase () | |
GPBase & | operator= (const GPBase &obj) |
int | operator== (const GPBase &g2) const |
~GPBase () | |
Protected Attributes | |
GPEnabled * | ptr |
Detailed Description
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.
Definition at line 178 of file GSmartPointer.h.
Constructor & Destructor Documentation
GPBase::GPBase | ( | ) | [inline] |
GPBase::GPBase | ( | const GPBase & | sptr | ) | [inline] |
Copy Constructor.
Increments the reference count.
- Parameters:
-
sptr reference to a GPBase# object.
Definition at line 378 of file GSmartPointer.h.
GPBase::GPBase | ( | GPEnabled * | nptr | ) | [inline] |
Construct a GPBase from a pointer.
Increments the reference count.
- Parameters:
-
nptr pointer to a GPEnabled# object.
Definition at line 371 of file GSmartPointer.h.
GPBase::~GPBase | ( | ) | [inline] |
Member Function Documentation
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.
Definition at line 131 of file GSmartPointer.cpp.
Assignment from smartpointer.
Increments the counter of the new value of the pointer. Decrements the counter of the previous value of the pointer.
Definition at line 160 of file GSmartPointer.cpp.
GPEnabled * GPBase::get | ( | void | ) | const [inline] |
int GPBase::operator== | ( | const GPBase & | g2 | ) | const [inline] |
Member Data Documentation
GPEnabled* GPBase::ptr [protected] |
The documentation for this class was generated from the following files: