IMP
2.0.0
The Integrative Modeling Platform
|
A reference counted pointer to an Object. More...
#include <IMP/base/Pointer.h>
Public Types | |
typedef internal::PointerBase < internal::OwnerPointerTraits < O > > | P |
Public Member Functions | |
template<class Any > | |
OwnerPointer (const Any &o) | |
template<class OT > | |
OwnerPointer< O > & | operator= (const internal::PointerBase< OT > &o) |
template<class OT > | |
OwnerPointer< O > & | operator= (OT *o) |
OwnerPointer< O > & | operator= (nullptr_t o) |
OwnerPointer< O > & | operator= (const P &o) |
The object being pointed to must inherit from IMP::base::Object. In addition to reference counting the object like Pointer, Object::set_was_used(true) will be called so you don't get warnings about unused objects.
[in] | O | The type of IMP::RefCounted-derived object to point to |
Definition at line 109 of file base/Pointer.h.