Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Cabal::Referenceable Class Reference

Interface for referenceable objects. More...

#include <cabal_ref.h>

Inheritance diagram for Cabal::Referenceable:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void incref ()=0
 Signal that there is one more user for the object.

virtual void decref ()=0
 Signal that an user does not needs the object anymore.


Detailed Description

Interface for referenceable objects.

Definition at line 20 of file cabal_ref.h.


Member Function Documentation

virtual void Cabal::Referenceable::decref  )  [pure virtual]
 

Signal that an user does not needs the object anymore.

If the object is not disposeable, this call is ignored. Else, if the reference count hits zero, the object is immediately destroyed.

Returns:
current reference count after decrement. If 0, the object is destroyed and no further reference to it is possible.

Implemented in Cabal::Socket.

virtual void Cabal::Referenceable::incref  )  [pure virtual]
 

Signal that there is one more user for the object.

If the object is not disposeable, this call is ignored, else the internal refcount is incremented.

See also:
decref()
Returns:
current reference count (after the reference increment)

Implemented in Cabal::Socket.


The documentation for this class was generated from the following file:
Generated on Sat Apr 10 17:41:49 2004 for Cabal by doxygen 1.3.5