GSmartPointer.h

Thread-Safe reference counting smart-pointers.

o GPEnabled
Base class for reference counted objects.
o GPBase
Base class for all smart-pointers.
o GP
Reference counting pointer.
Files "GSmartPointer.h" and "GSmartPointer.cpp" define a smart-pointer class which automatically performs thread-safe reference counting. Class GP implements smart-pointers by overloading the usual pointer assignment and dereferencing operators. The overloaded operators maintain the reference counters and destroy the pointed objects as soon as their reference counter reaches zero. Transparent type conversions are provided between smart-pointers and regular pointers. Objects referenced by smart-pointers must be derived from class GPEnabled.

Author:
Léon Bottou <leonb@research.att.com> -- initial implementation
Andrei Erofeev <eaf@research.att.com> -- bug fix.
Version:
$Id: GSmartPointer.h.html,v 1.2 2000/08/26 00:09:29 bcr Exp $

Alphabetic index Hierarchy of classes