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

A reference counted pointer to an Object. More...

#include <IMP/base/Pointer.h>

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

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)
 

Detailed Description

template<class O>
struct IMP::base::OwnerPointer< 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.

Parameters
[in]OThe type of IMP::RefCounted-derived object to point to
Examples:
atom/dope_and_excluded_volume.cpp.

Definition at line 109 of file base/Pointer.h.


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