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)
75 : internal::PointerBase<internal::CheckedWeakPointerTraits<O> > {
76 typedef internal::PointerBase<internal::CheckedWeakPointerTraits<O> > P;
91 #if defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)
103 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
105 inline std::ostream& operator<<(std::ostream& out, UncheckedWeakPointer<T> o) {
110 inline std::ostream& operator<<(std::ostream& out, WeakPointer<T> o) {
111 out << Showable(o.get());
116 IMPBASE_END_NAMESPACE
A weak pointer to an Object or RefCountedObject.