Medical Imaging Interaction Toolkit  2018.4.99-701c8286
Medical Imaging Interaction Toolkit
mitk::WeakPointer< T > Class Template Referencefinal

#include <mitkWeakPointer.h>

Inheritance diagram for mitk::WeakPointer< T >:

Public Types

using DeleteEventCallbackType = std::function< void()>
 

Public Member Functions

 WeakPointer () noexcept
 
 WeakPointer (T *rawPointer)
 
 WeakPointer (const WeakPointer &other)
 
 WeakPointer (WeakPointer &&other)
 
 ~WeakPointer () noexcept
 
WeakPointeroperator= (const WeakPointer &other)
 
WeakPointeroperator= (WeakPointer &&other)
 
WeakPointeroperator= (std::nullptr_t)
 
WeakPointeroperator= (T *other)
 
 operator bool () const noexcept
 
bool IsExpired () const noexcept
 
itk::SmartPointer< T > Lock () const
 
void SetDeleteEventCallback (const DeleteEventCallbackType &callback)
 

Friends

bool operator== (const WeakPointer &left, const WeakPointer &right) noexcept
 
bool operator== (const WeakPointer &left, const T *right) noexcept
 
bool operator< (const WeakPointer &left, const WeakPointer &right) noexcept
 
bool operator< (const WeakPointer &left, std::nullptr_t right) noexcept
 
bool operator< (std::nullptr_t left, const WeakPointer &right) noexcept
 
bool operator< (const WeakPointer &left, const T *right) noexcept
 
bool operator< (const T *left, const WeakPointer &right) noexcept
 

Detailed Description

template<class T>
class mitk::WeakPointer< T >

Definition at line 22 of file mitkWeakPointer.h.

Member Typedef Documentation

◆ DeleteEventCallbackType

template<class T>
using mitk::WeakPointer< T >::DeleteEventCallbackType = std::function<void ()>

Definition at line 25 of file mitkWeakPointer.h.

Constructor & Destructor Documentation

◆ WeakPointer() [1/4]

template<class T>
mitk::WeakPointer< T >::WeakPointer ( )
inlinenoexcept

Definition at line 27 of file mitkWeakPointer.h.

◆ WeakPointer() [2/4]

template<class T>
mitk::WeakPointer< T >::WeakPointer ( T *  rawPointer)
inline

Definition at line 32 of file mitkWeakPointer.h.

◆ WeakPointer() [3/4]

template<class T>
mitk::WeakPointer< T >::WeakPointer ( const WeakPointer< T > &  other)
inline

Definition at line 38 of file mitkWeakPointer.h.

◆ WeakPointer() [4/4]

template<class T>
mitk::WeakPointer< T >::WeakPointer ( WeakPointer< T > &&  other)
inline

Definition at line 44 of file mitkWeakPointer.h.

◆ ~WeakPointer()

template<class T>
mitk::WeakPointer< T >::~WeakPointer ( )
inlinenoexcept

Definition at line 52 of file mitkWeakPointer.h.

Member Function Documentation

◆ IsExpired()

template<class T>
bool mitk::WeakPointer< T >::IsExpired ( ) const
inlinenoexcept

Definition at line 118 of file mitkWeakPointer.h.

◆ Lock()

template<class T>
itk::SmartPointer<T> mitk::WeakPointer< T >::Lock ( ) const
inline

Definition at line 123 of file mitkWeakPointer.h.

◆ operator bool()

template<class T>
mitk::WeakPointer< T >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 113 of file mitkWeakPointer.h.

◆ operator=() [1/4]

template<class T>
WeakPointer& mitk::WeakPointer< T >::operator= ( const WeakPointer< T > &  other)
inline

Definition at line 68 of file mitkWeakPointer.h.

◆ operator=() [2/4]

template<class T>
WeakPointer& mitk::WeakPointer< T >::operator= ( WeakPointer< T > &&  other)
inline

Definition at line 80 of file mitkWeakPointer.h.

◆ operator=() [3/4]

template<class T>
WeakPointer& mitk::WeakPointer< T >::operator= ( std::nullptr_t  )
inline

Definition at line 93 of file mitkWeakPointer.h.

◆ operator=() [4/4]

template<class T>
WeakPointer& mitk::WeakPointer< T >::operator= ( T *  other)
inline

Definition at line 101 of file mitkWeakPointer.h.

◆ SetDeleteEventCallback()

template<class T>
void mitk::WeakPointer< T >::SetDeleteEventCallback ( const DeleteEventCallbackType callback)
inline

Definition at line 128 of file mitkWeakPointer.h.

Friends And Related Function Documentation

◆ operator< [1/5]

template<class T>
bool operator< ( const WeakPointer< T > &  left,
const WeakPointer< T > &  right 
)
friend

Definition at line 178 of file mitkWeakPointer.h.

◆ operator< [2/5]

template<class T>
bool operator< ( const WeakPointer< T > &  left,
std::nullptr_t  right 
)
friend

Definition at line 185 of file mitkWeakPointer.h.

◆ operator< [3/5]

template<class T>
bool operator< ( std::nullptr_t  left,
const WeakPointer< T > &  right 
)
friend

Definition at line 190 of file mitkWeakPointer.h.

◆ operator< [4/5]

template<class T>
bool operator< ( const WeakPointer< T > &  left,
const T *  right 
)
friend

Definition at line 195 of file mitkWeakPointer.h.

◆ operator< [5/5]

template<class T>
bool operator< ( const T *  left,
const WeakPointer< T > &  right 
)
friend

Definition at line 200 of file mitkWeakPointer.h.

◆ operator== [1/2]

template<class T>
bool operator== ( const WeakPointer< T > &  left,
const WeakPointer< T > &  right 
)
friend

Definition at line 166 of file mitkWeakPointer.h.

◆ operator== [2/2]

template<class T>
bool operator== ( const WeakPointer< T > &  left,
const T *  right 
)
friend

Definition at line 173 of file mitkWeakPointer.h.


The documentation for this class was generated from the following file: