Class

CGAL::Ref_counted<T>

Definition

The class Ref_counted<T> implements a base class for objects which are reference counted. To use it simply inherit from Ref_counted<T> (passing the type to be reference counted as the template argument) and then access the object through Handle objects rather than bare C++ pointers.

#include <CGAL/Kinetic/Ref_counted.h>

Types

Ref_counted<T>::Handle
A reference counted pointer to an Object.


Ref_counted<T>::Const_handle
A const reference counted pointer to an Object.

Creation

Ref_counted<T> rc;
default constructor.

Operations

There are no methods which should be called by users of this class.