IMP logo
Public Types | Public Member Functions
IMP::base::UncheckedWeakPointer< O > Struct Template Reference

Detailed Description

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

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

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.

Parameters:
[in]OThe type of IMP::Object-derived object to point to
+ Inheritance diagram for IMP::base::UncheckedWeakPointer< O >:

List of all members.

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)

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

Generated on Tue May 22 2012 23:33:28 for IMP by doxygen 1.8.1