Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

IotrRefCount Class Reference
[ReferenceCounting]

A base class for classes that support reference-count garbage collection, see the Reference Counting section of the manual. More...

#include <IotrRefCount.hh>

Inheritance diagram for IotrRefCount:

AmplAdaptor CuterAdaptor ElementGather ElementTransfer EvaluationContext Functional IotrConfigOption IotrConfiguration IotrDriver IotrMask IotrPrinting IotrVector IotrVectorCategorize IotrVectorReduce< T > LinearOperator LinearSolver Nlp NlpBounds NlpGrads NlpHessian NlpIotrLineSearch NlpIotrMerit NlpIotrTrustRegion NlpIterate NlpLinsys NlpLinsysDiag NlpLinsysSol NlpLocalModel NlpResiduals NlpSolver NlpValues PrimalDualSystem SimpleArrayDataT< T > List of all members.

Public Methods

int refs ()
 The number of references to this object.

 IotrRefCount ()
 Default constructor.


Static Public Methods

void release (IotrRefCount **obj)
 Release this reference to obj: it is more convenient to call the template function IotrRelease().

void addRef (IotrRefCount *const *obj)
 Increment the reference count of this object: it is more convenient to call the template function IotrAddRef().


Static Public Attributes

int instances
 The number of instances of IotrRefCount.


Protected Methods

virtual ~IotrRefCount ()
 Protected virtual destructor.


Detailed Description

A base class for classes that support reference-count garbage collection, see the Reference Counting section of the manual.


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 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.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 10:03:42 2003 for iotr by doxygen1.2.18