Heidelberg Educational Numerics Library Version 0.24 (from 9 September 2011)
Public Member Functions

hdnum::Countable Class Reference

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

#include <countingptr.hh>

Inheritance diagram for hdnum::Countable:
hdnum::CountableArray< T >

List of all members.

Public Member Functions

 Countable ()
 Default constructor.
 Countable (const Countable &)
 copy constructor: new object, no pointer exists
Countableoperator= (const Countable &)
 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: