Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 Member Functions

int refs ()
 IotrRefCount ()

Static Public Member Functions

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

Static Public Attributes

int instances

Protected Member Functions

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 Wed Mar 22 13:58:34 2006 for OOQP by doxygen 1.3.5