IMP
2.0.1
The Integrative Modeling Platform
|
Common base class for ref counted objects. More...
#include <IMP/base/RefCounted.h>
This base class implements reference counting when used in conjunction with IMP::Pointer or IMP::WeakPointer objects. Objects which inherit from IMP::RefCounted should be passed using pointers and stored using IMP::Pointer and IMP::WeakPointer objects. Users must be careful to avoid cycles of reference counted pointers, otherwise memory will never be reclaimed.
IMP
, reference counting is done through the IMP::Pointer and IMP::RefCounted classes. The former should be used instead of a raw C++ pointer when storing a pointer to any object inheriting from IMP::RefCounted.IMP::RefCounted provides no public methods or constructors. It makes objects that inherit from it non-copyable.
Definition at line 72 of file base/RefCounted.h.