Medical Imaging Interaction Toolkit  2018.4.99-6ca56567
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.

Referenced by QmitkRenderWindowDataStorageListModel::AddDataNodeToAllRenderer(), QmitkDataStorageTreeModel::AddNode(), mitk::NodePredicateFirstLevel::CheckNode(), QmitkStatisticsCalculator::ComputeLesionVolume(), QmitkPropertyItemDelegate::createEditor(), QmitkPropertyItemModel::data(), QmitkRenderWindowDataStorageListModel::data(), QmitkRenderWindowDataStorageTreeModel::data(), QmitkStatisticsTreeModel::DataStorageChanged(), QmitkRenderWindowDataStorageListModel::dropMimeData(), QmitkRenderWindowDataStorageTreeModel::dropMimeData(), QmitkDataStorageSimpleTreeModel::flags(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), QmitkAbstractDataNodeAction::GetBaseRenderer(), QmitkRenderWindowDataStorageListModel::GetCurrentRenderer(), QmitkRenderWindowDataStorageTreeModel::GetCurrentRenderer(), QmitkAbstractDataStorageModel::GetDataStorage(), QmitkRenderWindowDataStorageInspector::GetSelectionMode(), QmitkPatientTableInspector::Initialize(), QmitkDataNodeShowSelectedNodesAction::InitializeAction(), QmitkDataNodeReinitAction::InitializeAction(), QmitkDataNodeRemoveAction::InitializeAction(), QmitkDataNodeToggleVisibilityAction::InitializeAction(), QmitkPointListViewWidget::keyPressEvent(), QmitkPointListViewWidget::MoveSelectedPointDown(), QmitkPointListViewWidget::MoveSelectedPointUp(), QmitkRenderWindowDataStorageTreeModel::NodeAdded(), QmitkDataStorageSimpleTreeModel::NodeAdded(), QmitkDataNodeContextMenu::OnExtensionPointActionTriggered(), mitk::Dispatcher::ProcessEvent(), QmitkDataNodeGlobalReinitAction::QmitkDataNodeGlobalReinitAction(), QmitkPointListViewWidget::RemoveSelectedPoint(), QmitkDataStorageComboBox::Reset(), QmitkDataStorageTableModel::Reset(), QmitkPropertiesTableModel::Reset(), QmitkRenderWindowDataStorageListModel::SetControlledRenderer(), QmitkRenderWindowDataStorageTreeModel::SetControlledRenderer(), QmitkDataStorageLayerStackModel::SetCurrentRenderer(), QmitkRenderWindowDataStorageListModel::SetCurrentRenderer(), QmitkPropertyItemModel::setData(), QmitkRenderWindowDataStorageListModel::setData(), QmitkRenderWindowDataStorageTreeModel::setData(), QmitkDataStorageLayerStackModel::setData(), QmitkStatisticsTreeModel::SetData(), QmitkLesionTreeModel::SetData(), QmitkAbstractDataStorageInspector::SetDataStorage(), QmitkNodeSelectionDialog::SetDataStorage(), QmitkAbstractDataStorageModel::SetDataStorage(), QmitkDataStorageComboBox::SetDataStorage(), QmitkDataStorageTableModel::SetDataStorage(), QmitkDataStorageTreeModel::SetDataStorageDeleted(), QmitkPointListViewWidget::SetPointSet(), QmitkPropertiesTableModel::SetPropertyList(), QmitkPointListViewWidget::Update(), QmitkDataStorageHistoryModel::UpdateModelData(), QmitkDataStorageDefaultListModel::UpdateModelData(), QmitkAbstractDataStorageModel::~QmitkAbstractDataStorageModel(), and QmitkDataStorageComboBox::~QmitkDataStorageComboBox().

◆ Lock()

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

Definition at line 123 of file mitkWeakPointer.h.

Referenced by QmitkRenderWindowDataStorageListModel::AddDataNodeToAllRenderer(), QmitkDataStorageTreeModel::AddNode(), mitk::NodePredicateSource::CheckNode(), mitk::NodePredicateFirstLevel::CheckNode(), QmitkStatisticsCalculator::ComputeLesionVolume(), QmitkPropertyItemDelegate::createEditor(), QmitkPropertyItemModel::data(), QmitkRenderWindowDataStorageListModel::data(), QmitkRenderWindowDataStorageTreeModel::data(), QmitkDataStorageLayerStackModel::data(), QmitkRenderWindowDataStorageListModel::DataStorageChanged(), QmitkRenderWindowDataStorageTreeModel::DataStorageChanged(), QmitkStatisticsTreeModel::DataStorageChanged(), QmitkAbstractSemanticRelationsStorageModel::DataStorageChanged(), QmitkSingleNodeSelectionWidget::DetermineAutoSelectNode(), QmitkRenderWindowDataStorageListModel::dropMimeData(), QmitkRenderWindowDataStorageTreeModel::dropMimeData(), QmitkDataStorageTreeModel::dropMimeData(), QmitkSingleNodeSelectionWidget::EditSelection(), QmitkDataGeneratorBase::FilterImageROICombinations(), QmitkDataStorageSimpleTreeModel::flags(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), QmitkAbstractDataNodeAction::GetBaseRenderer(), QmitkDataStorageLayerStackModel::GetCurrentRenderer(), QmitkRenderWindowDataStorageListModel::GetCurrentRenderer(), QmitkRenderWindowDataStorageTreeModel::GetCurrentRenderer(), QmitkDataStorageTreeModelInternalItem::GetDataNode(), QmitkDataGeneratorBase::GetDataStorage(), QmitkAbstractDataStorageModel::GetDataStorage(), QmitkDataStorageTableModel::GetDataStorage(), QmitkDataStorageTreeModel::GetDataStorage(), QmitkDataStorageComboBox::GetDataStorage(), QmitkImageStatisticsTreeModel::GetHistogramNBins(), mitk::ImageToOpenCVImageFilter::GetImage(), QmitkImageStatisticsDataGenerator::GetLatestResult(), mitk::ImageToOpenCVImageFilter::GetOpenCVMat(), QmitkDataStorageTreeModel::GetParentNode(), QmitkPointListViewWidget::GetPointSet(), QmitkPropertyItemModel::GetPropertyList(), QmitkPropertiesTableModel::GetPropertyList(), mitk::DisplayCoordinateOperation::GetRenderer(), QmitkRenderWindowDataStorageInspector::GetSelectionMode(), QmitkPropertyItemModel::index(), QmitkImageStatisticsDataGenerator::IndicateFutureResults(), QmitkDataStorageListInspector::Initialize(), QmitkDataStorageTreeInspector::Initialize(), QmitkDataStorageSelectionHistoryInspector::Initialize(), QmitkPatientTableInspector::Initialize(), QmitkDataNodeShowSelectedNodesAction::InitializeAction(), QmitkDataNodeRemoveAction::InitializeAction(), QmitkDataNodeToggleVisibilityAction::InitializeAction(), QmitkDataNodeReinitAction::InitializeAction(), QmitkPointListViewWidget::MoveSelectedPointDown(), QmitkPointListViewWidget::MoveSelectedPointUp(), QmitkRenderWindowDataStorageTreeModel::NodeAdded(), QmitkDataStorageSimpleTreeModel::NodeAdded(), QmitkMultiNodeSelectionWidget::OnEditSelection(), QmitkDataNodeContextMenu::OnExtensionPointActionTriggered(), QmitkDataGeneratorBase::OnFinalResultsAvailable(), QmitkPointListViewWidget::OnItemDoubleClicked(), mitk::Dispatcher::ProcessEvent(), QmitkDataNodeGlobalReinitAction::QmitkDataNodeGlobalReinitAction(), QmitkImageStatisticsDataGenerator::RemoveObsoleteDataNodes(), QmitkPointListViewWidget::RemoveSelectedPoint(), QmitkDataStorageComboBox::Reset(), QmitkDataStorageTableModel::Reset(), QmitkPropertiesTableModel::Reset(), QmitkRenderWindowDataStorageListModel::SetControlledRenderer(), QmitkRenderWindowDataStorageTreeModel::SetControlledRenderer(), QmitkAbstractNodeSelectionWidget::SetCurrentSelection(), QmitkPropertyItemModel::setData(), QmitkRenderWindowDataStorageListModel::setData(), QmitkRenderWindowDataStorageTreeModel::setData(), QmitkDataStorageLayerStackModel::setData(), QmitkStatisticsTreeModel::SetData(), QmitkLesionTreeModel::SetData(), QmitkPropertiesTableModel::setData(), QmitkAbstractNodeSelectionWidget::SetDataStorage(), QmitkAbstractDataStorageModel::SetDataStorage(), QmitkDataGeneratorBase::SetDataStorage(), QmitkDataStorageComboBox::SetDataStorage(), QmitkDataStorageTableModel::SetDataStorage(), QmitkDataStorageTreeModel::SetDataStorage(), QmitkDataStorageTreeModel::SetDataStorageDeleted(), QmitkPointListViewWidget::SetPointSet(), QmitkPropertiesTableModel::SetPropertyList(), QmitkPropertyItemModel::Update(), QmitkPointListViewWidget::Update(), QmitkDataStorageTreeModel::Update(), QmitkDataStorageHistoryModel::UpdateModelData(), QmitkDataStorageDefaultListModel::UpdateModelData(), QmitkAbstractDataStorageModel::~QmitkAbstractDataStorageModel(), QmitkAbstractNodeSelectionWidget::~QmitkAbstractNodeSelectionWidget(), QmitkDataGeneratorBase::~QmitkDataGeneratorBase(), and QmitkDataStorageComboBox::~QmitkDataStorageComboBox().

◆ 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: