9 #ifndef IMPBASE_WEAK_POINTER_H
10 #define IMPBASE_WEAK_POINTER_H
11 #include <IMP/base/base_config.h>
12 #include "internal/PointerBase.h"
15 IMPBASE_BEGIN_NAMESPACE
34 internal::PointerBase<internal::WeakPointerTraits<O> > {
35 typedef internal::PointerBase<internal::WeakPointerTraits<O> > P;
49 #if !IMP_COMPILER_HAS_NULLPTR
75 internal::PointerBase<internal::CheckedWeakPointerTraits<O> > {
76 typedef internal::PointerBase<internal::CheckedWeakPointerTraits<O> > P;
90 #if !IMP_COMPILER_HAS_NULLPTR
102 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
104 inline std::ostream &operator<<(std::ostream &out, UncheckedWeakPointer<T> o) {
109 inline std::ostream &operator<<(std::ostream &out, WeakPointer<T> o) {
110 out << Showable(o.get());
116 IMPBASE_END_NAMESPACE