kviewshell
GPEnabled Class Reference
Base class for reference counted objects. More...
#include <GSmartPointer.h>
Inheritance diagram for GPEnabled:
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] |
GPEnabled::GPEnabled | ( | const GPEnabled & | obj | ) | [inline] |
GPEnabled::~GPEnabled | ( | ) | [virtual] |
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.
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: