• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kviewshell

GPBase Class Reference

Base class for all smart-pointers. More...

#include <GSmartPointer.h>

Inheritance diagram for GPBase:

Inheritance graph
[legend]

List of all members.


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]

Null Constructor.

Definition at line 365 of file GSmartPointer.h.

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]

Destructor.

Decrements the reference count.

Definition at line 386 of file GSmartPointer.h.


Member Function Documentation

GPBase & GPBase::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.

Definition at line 131 of file GSmartPointer.cpp.

GPBase & GPBase::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.

Definition at line 160 of file GSmartPointer.cpp.

GPEnabled * GPBase::get ( void   )  const [inline]

Accesses the actual pointer.

Definition at line 395 of file GSmartPointer.h.

GPBase & GPBase::operator= ( const GPBase &  obj  )  [inline]

Assignment operator.

Definition at line 401 of file GSmartPointer.h.

int GPBase::operator== ( const GPBase &  g2  )  const [inline]

Comparison operator.

Definition at line 407 of file GSmartPointer.h.


Member Data Documentation

GPEnabled* GPBase::ptr [protected]

Actual pointer.

Definition at line 210 of file GSmartPointer.h.


The documentation for this class was generated from the following files:
  • GSmartPointer.h
  • GSmartPointer.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal