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
87 struct Pointer : internal::PointerBase<internal::RefCountedPointerTraits<O> > {
88 typedef internal::PointerBase<internal::RefCountedPointerTraits<O> > P;
103 #if (defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
148 : internal::PointerBase<internal::PointerMemberTraits<O> > {
149 typedef internal::PointerBase<internal::PointerMemberTraits<O> > P;
164 #if (defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
193 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
195 inline std::ostream& operator<<(std::ostream& out, base::Pointer<T> o) {
200 inline std::ostream& operator<<(std::ostream& out, base::PointerMember<T> o) {
201 out << Showable(o.get());
206 IMPBASE_END_NAMESPACE
A smart pointer to a ref-counted Object that is a class member.
A smart pointer to a reference counted object.
A nullptr-initialized pointer to an Object.