|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkAutoPointer_h
19 #define itkAutoPointer_h
45 template <
typename TObjectType>
213 operator bool()
const {
return (
m_Pointer !=
nullptr); }
242 template <
typename T>
247 os <<
"Owner: " << p.
IsOwner() << std::endl;
253 template <
typename TAutoPo
interBase,
typename TAutoPo
interDerived>
258 pa.TakeNoOwnership(pb.GetPointer());
262 pb.ReleaseOwnership();
bool operator!=(const AutoPointer &r) const
Implements an Automatic Pointer to an object.
bool operator>(const AutoPointer &r) const
ObjectType * ReleaseOwnership()
std::ostream & operator<<(std::ostream &os, const Array< TValue > &arr)
ObjectType * operator->() const
ObjectType * GetPointer() const
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)