|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkAutoPointer_h
19 #define itkAutoPointer_h
45 template <
typename TObjectType>
208 operator bool()
const {
return (
m_Pointer !=
nullptr); }
237 template <
typename T>
242 os <<
"Owner: " << p.
IsOwner() << std::endl;
248 template <
typename TAutoPo
interBase,
typename TAutoPo
interDerived>
253 pa.TakeNoOwnership(pb.GetPointer());
257 pb.ReleaseOwnership();
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
Implements an Automatic Pointer to an object.
bool operator>(const AutoPointer &r) const
ObjectType * ReleaseOwnership()
ObjectType * operator->() const
ObjectType * GetPointer() const
ITKCommon_EXPORT std::ostream & operator<<(std::ostream &out, typename AnatomicalOrientation::CoordinateEnum value)
void TakeNoOwnership(ObjectType *objectptr)
void TakeOwnership(ObjectType *objectptr)
AutoPointer(ObjectType *p, bool takeOwnership)
bool operator>=(const AutoPointer &r) const
bool operator<=(const AutoPointer &r) const
bool operator==(const AutoPointer &r) const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
AutoPointer & operator=(AutoPointer &r)
void TransferAutoPointer(TAutoPointerBase &pa, TAutoPointerDerived &pb)
bool operator<(const AutoPointer &r) const
void Swap(AutoPointer &r) noexcept
AutoPointer(AutoPointer &p)