Main Page Namespace List Class Hierarchy Compound List File List Compound Members
Package Overview: pointer
This packages provides a set of smart pointers to improve memory management in both single threaded and multithreaded environments.
The set of pointer types include:
- ref_ptr: a smart pointer that also maintains a reference count for the underlying object and takes care of cleaning up the object when no more references to it exist.
- sync_ptr: a smart pointer that locks it's underlying object when it is constructed and unlocks it when it's released. This provides an alternative to using critical sections. The underlying object must support a 'lock' and 'unlock' method.
See the documentation page for each pointer type for more details.
- safe_ptr: a derived type of ref_ptr that also synchronizes access to each of the object's members. The underlying object must support a 'lock' and 'unlock' method.