class GPEnabled

Base class for reference counted objects.

Inheritance:


Public Methods

[more] GPEnabled()
Null constructor.
[more]virtual ~GPEnabled()
Virtual destructor.
[more]GPEnabled& operator=(const GPEnabled & obj)
Copy operator

Protected Fields

[more]volatile int count
The reference counter

Protected Methods

[more]virtual void destroy()
Called when this object must be destroyed.


Documentation

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).
o GPEnabled()
Null constructor.

ovirtual ~GPEnabled()
Virtual destructor.

oGPEnabled& operator=(const GPEnabled & obj)
Copy operator

ovolatile int count
The reference counter

ovirtual void destroy()
Called when this object must be destroyed. The virtual function destroy is called when the reference counter is decremented from one to zero. The default implementation just calls operator delete. This default implementation should be enough for most purposes. See the implementation of GString for an example of overriding destroy.


Direct child classes:
JB2Image
IWBitmap
GPixmap
GBitmap
DjVuInfo
DjVuImage
DjVuAnno

Alphabetic index HTML hierarchy of classes or Java