ACCELERATOR PHYSICS GROUP

template class Pointer<class>

(Return to index)

Reference-counted pointer.

This template class implements a pointer with reference counting in collaboration with the class RCObject. It is modelled after the class RCPtr described in: {center} Scott Meyers, More Effective C++, Addison Wesley, 1996, pg. 195. {/center} When the pointer goes out of scope, the pointee's reference count is decremented, and, if it becomes zero, the pointee is deleted. When a Pointer is assigned, the pointee's reference count is incremented.

Type: Instantiable
Include file: ./MemoryManagement/Pointer.hh

Synopsis (including inherited members):

Documentation:


Documentation generated by fci on Mon Feb 7 11:41:48 2000