Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IotrRefCount Class Reference
[ReferenceCounting]

#include <IotrRefCount.h>

Inheritance diagram for IotrRefCount:

DoubleMatrix DoubleStorage OoqpVector GenMatrix SymMatrix DenseStorage SparseStorage SimpleVector DenseGenMatrix SparseGenMatrix DenseSymMatrix SparseSymMatrix List of all members.

Public Methods

int refs ()
 IotrRefCount ()

Static Public Methods

void release (IotrRefCount **obj)
void addRef (IotrRefCount *const *obj)

Static Public Attributes

int instances

Protected Methods

virtual ~IotrRefCount ()

Detailed Description

A base class for classes that support reference-count garbage collection.


Constructor & Destructor Documentation

IotrRefCount::IotrRefCount   [inline]
 

Default constructor. Creates an instance with one reference

virtual IotrRefCount::~IotrRefCount   [inline, protected, virtual]
 

Protected virtual destructor. One should not call delete on reference-counted objects.


Member Function Documentation

int IotrRefCount::refs   [inline]
 

The number of references to this object.


Member Data Documentation

int IotrRefCount::instances [static]
 

The number of instances of IotrRefCount. This is useful for debugging purposes. If not zero when the program exits, you have a memory leak.

Reimplemented in SparseStorage.


The documentation for this class was generated from the following file:
Generated on Mon May 24 17:40:46 2004 for OOQP by doxygen1.2.18