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) {
144 : IMP::internal::PointerBase<IMP::internal::PointerMemberTraits<O> > {
145 typedef IMP::internal::PointerBase<IMP::internal::PointerMemberTraits<O> > P;
185 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
187 inline std::ostream& operator<<(std::ostream& out, Pointer<T> o) {
192 inline std::ostream& operator<<(std::ostream& out, PointerMember<T> o) {
193 out << Showable(o.get());
198 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.