18 #ifndef __itkAutoPointer_h
19 #define __itkAutoPointer_h
45 template<
typename TObjectType >
183 operator bool()
const
214 template<
typename T >
215 std::ostream & operator<<(std::ostream & os, AutoPointer< T > p)
218 os <<
"Owner: " << p.IsOwner() << std::endl;
224 template<
typename TAutoPo
interBase,
typename TAutoPo
interDerived >
229 pa.TakeNoOwnership( pb.GetPointer() );
233 pb.ReleaseOwnership();
bool operator==(const AutoPointer &r) const
bool operator<=(const AutoPointer &r) const
ObjectType * operator->() const
void Swap(AutoPointer &r)
ObjectType * ReleaseOwnership(void)
ObjectType * GetPointer() const
bool operator>=(const AutoPointer &r) const
void TakeNoOwnership(ObjectType *objectptr)
bool operator!=(const AutoPointer &r) const
bool operator>(const AutoPointer &r) const
AutoPointer(ObjectType *p, bool takeOwnership)
AutoPointer(AutoPointer &p)
void TransferAutoPointer(TAutoPointerBase &pa, TAutoPointerDerived &pb)
AutoPointer & operator=(AutoPointer &r)
void TakeOwnership(ObjectType *objectptr)
bool operator<(const AutoPointer &r) const
Implements an Automatic Pointer to an object.