define GSmartPointer.h

Thread-Safe reference counting smart-pointers.

o class GPEnabled
Base class for reference counted objects.
o class GPBase
Base class for all smart-pointers.
o template<class TYPE> class GP: protected GPBase
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@geocities.com> -- bug fix.
Version:
$Id: GSmartPointer.h.html,v 1.12 2001/02/15 01:12:21 bcr Exp $

Alphabetic index Hierarchy of classes


DjVu is a trademark of LizardTech, Inc.
All other products mentioned are registered trademarks or trademarks of their respective companies.