hdnum::Countable Class Reference

Base class for object pointed to by CP. More...

#include <countingptr.hh>

Inherited by hdnum::CountableArray< T >.

List of all members.

Public Member Functions

 Countable ()
 Default constructor.
 Countable (const Countable &x)
 copy constructor: new object, no pointer exists
Countableoperator= (const Countable &x)
 number of pointers does not change
void reference_counter_increment () const
 increment reference counter
void reference_counter_decrement () const
 decrement reference counter
bool reference_counter_zero () const
 check wether the reference counter is zero
int get_reference_counter () const
 get value of reference counter
 ~Countable ()
 Destructor.


Detailed Description

Base class for object pointed to by CP.

This provides the necessary functionality in the target object for the CP template class to work.


Constructor & Destructor Documentation

hdnum::Countable::~Countable (  )  [inline]

Destructor.

Warn if any CP is still pointing to us.


The documentation for this class was generated from the following file:

Generated on Mon Oct 12 21:45:48 2009 for Heidelberg Educational Numerics Library by  doxygen 1.5.5