9 #ifndef IMPBASE_POINTER_H
10 #define IMPBASE_POINTER_H
12 #include <IMP/base/base_config.h>
13 #include "internal/PointerBase.h"
16 IMPBASE_BEGIN_NAMESPACE
73 struct Pointer: internal::PointerBase<internal::RefCountedPointerTraits<O> > {
74 typedef internal::PointerBase<internal::RefCountedPointerTraits<O> > P;
79 Pointer<O>& operator=(
const internal::PointerBase<OT> &o){
88 #if !IMP_COMPILER_HAS_NULLPTR
109 struct OwnerPointer: internal::PointerBase<internal::OwnerPointerTraits<O> > {
110 typedef internal::PointerBase<internal::OwnerPointerTraits<O> > P;
124 #if !IMP_COMPILER_HAS_NULLPTR
136 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
138 inline std::ostream &operator<<(std::ostream &out, Pointer<T> o) {
143 inline std::ostream &operator<<(std::ostream &out, OwnerPointer<T> o) {
144 out << Showable(o.get());
149 IMPBASE_END_NAMESPACE