9 #ifndef IMPKERNEL_POINTER_H
10 #define IMPKERNEL_POINTER_H
12 #include <IMP/kernel_config.h>
13 #include "internal/PointerBase.h"
16 IMPKERNEL_BEGIN_NAMESPACE
88 : IMP::internal::PointerBase<IMP::internal::RefCountedPointerTraits<O> > {
89 typedef IMP::internal::PointerBase<IMP::internal::RefCountedPointerTraits<O> > P;
95 Pointer<O>& operator=(
const IMP::internal::PointerBase<OT>& o) {
104 #if (defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
147 : IMP::internal::PointerBase<IMP::internal::PointerMemberTraits<O> > {
148 typedef IMP::internal::PointerBase<IMP::internal::PointerMemberTraits<O> > P;
163 #if (defined(BOOST_NO_CXX11_NULLPTR) || defined(BOOST_NO_NULLPTR)) && \
191 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
193 inline std::ostream& operator<<(std::ostream& out, Pointer<T> o) {
198 inline std::ostream& operator<<(std::ostream& out, PointerMember<T> o) {
199 out << Showable(o.get());
204 IMPKERNEL_END_NAMESPACE
A smart pointer to a reference counted object.
A smart pointer to a ref-counted Object that is a class member.
A weak pointer to an Object or RefCountedObject.
Helper class to aid in output of IMP classes to streams.