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

kviewshell

GPEnabled Class Reference

Base class for reference counted objects. More...

#include <GSmartPointer.h>

Inheritance diagram for GPEnabled:

Inheritance graph
[legend]

List of all members.


Public Member Functions

int get_count (void) const
 GPEnabled (const GPEnabled &obj)
 GPEnabled ()
GPEnabled & operator= (const GPEnabled &obj)
virtual ~GPEnabled ()

Protected Attributes

volatile int count

Detailed Description

Base class for reference counted objects.

This is the base class for all reference counted objects. Any instance of a subclass of GPEnabled# can be used with smart-pointers (see {GP}).

Definition at line 145 of file GSmartPointer.h.


Constructor & Destructor Documentation

GPEnabled::GPEnabled (  )  [inline]

Null constructor.

Definition at line 335 of file GSmartPointer.h.

GPEnabled::GPEnabled ( const GPEnabled &  obj  )  [inline]

Copy construcotr.

Definition at line 341 of file GSmartPointer.h.

GPEnabled::~GPEnabled (  )  [virtual]

Virtual destructor.

Definition at line 93 of file GSmartPointer.cpp.


Member Function Documentation

int GPEnabled::get_count ( void   )  const [inline]

Returns the number of references to this object.

This should be only used for debugging purposes. Other uses are not thread-safe.

Definition at line 348 of file GSmartPointer.h.

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

Copy operator.

Definition at line 354 of file GSmartPointer.h.


Member Data Documentation

volatile int GPEnabled::count [protected]

The reference counter.

Reimplemented in DjVmNav::DjVuBookMark.

Definition at line 161 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