Medical Imaging Interaction Toolkit  2022.10.99-122321bb
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)
 

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= ( std::nullptr_t  )
inline

Definition at line 93 of file mitkWeakPointer.h.

◆ operator=() [3/4]

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

Definition at line 101 of file mitkWeakPointer.h.

◆ operator=() [4/4]

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

Definition at line 80 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.


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