9 #ifndef IMPBASE_WEAK_POINTER_H
10 #define IMPBASE_WEAK_POINTER_H
11 #include <IMP/base/base_config.h>
12 #include "internal/PointerBase.h"
14 IMPBASE_BEGIN_NAMESPACE
33 : internal::PointerBase<internal::WeakPointerTraits<O> > {
34 typedef internal::PointerBase<internal::WeakPointerTraits<O> > P;
49 #if(defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
76 : internal::PointerBase<internal::CheckedWeakPointerTraits<O> > {
77 typedef internal::PointerBase<internal::CheckedWeakPointerTraits<O> > P;
92 #if(defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
105 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
107 inline std::ostream& operator<<(std::ostream& out, UncheckedWeakPointer<T> o) {
112 inline std::ostream& operator<<(std::ostream& out, WeakPointer<T> o) {
113 out << Showable(o.get());
118 IMPBASE_END_NAMESPACE
A weak pointer to an Object or RefCountedObject.