IMP  2.0.0
The Integrative Modeling Platform
IMP::base::UncheckedWeakPointer< O > Struct Template Reference

A weak pointer to an IMP::Object or IMP::RefCountedObject. More...

#include <IMP/base/WeakPointer.h>

+ Inheritance diagram for IMP::base::UncheckedWeakPointer< O >:

Public Types

typedef internal::PointerBase
< internal::WeakPointerTraits
< O > > 
P
 

Public Member Functions

template<class Any >
 UncheckedWeakPointer (const Any &o)
 
template<class OT >
UncheckedWeakPointer< O > & operator= (const internal::PointerBase< OT > &o)
 
template<class OT >
UncheckedWeakPointer< O > & operator= (OT *o)
 
UncheckedWeakPointer< O > & operator= (nullptr_t o)
 
UncheckedWeakPointer< O > & operator= (const P &o)
 

Detailed Description

template<class O>
struct IMP::base::UncheckedWeakPointer< O >

WeakPointers do not do reference counting and do not claim ownership of the pointed object. As a result, they can be used to break cycles in reference counted pointers. For example, since an IMP::Model contains a reference counted pointer to an IMP::Particle, the IMP::Particle has a WeakPointer back to the Model.

The UncheckedWeakPointer can act on types that have only been partially defined. You probably should use a WeakPointer instead if you don't have problems with it.

See Also
WeakPointer
Parameters
[in]OThe type of IMP::Object-derived object to point to

Definition at line 33 of file base/WeakPointer.h.


The documentation for this struct was generated from the following file: