Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Implements transparent reference counting. More...
#include <berryICommandCategoryListener.h>
Public Types | |
typedef TObjectType | ObjectType |
typedef SmartPointer | Self |
typedef ObjectType *Self::* | unspecified_bool_type |
Public Member Functions | |
SmartPointer () | |
SmartPointer (ObjectType *p) | |
SmartPointer (const SmartPointer< ObjectType > &p) | |
template<class Other > | |
SmartPointer (const SmartPointer< Other > &ptr) | |
template<class Other > | |
SmartPointer (const WeakPointer< Other > &wp) | |
~SmartPointer () | |
template<class Other > | |
SmartPointer< Other > | Cast () const |
ObjectType * | operator-> () const |
ObjectType & | operator* () const |
bool | IsNotNull () const |
bool | IsNull () const |
operator unspecified_bool_type () const | |
template<typename R > | |
bool | operator== (const R *o) const |
template<typename R > | |
bool | operator== (const SmartPointer< R > &r) const |
bool | operator== (int r) const |
template<typename R > | |
bool | operator!= (const R *r) const |
template<typename R > | |
bool | operator!= (const SmartPointer< R > &r) const |
bool | operator!= (int r) const |
ObjectType * | GetPointer () const |
template<typename R > | |
bool | operator< (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator> (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator<= (const SmartPointer< R > &r) const |
template<typename R > | |
bool | operator>= (const SmartPointer< R > &r) const |
SmartPointer & | operator= (const SmartPointer &r) |
template<typename R > | |
SmartPointer & | operator= (const SmartPointer< R > &r) |
SmartPointer & | operator= (ObjectType *r) |
QDebug | Print (QDebug os) const |
Implements transparent reference counting.
SmartPointer is a copy of itk::SmartPointer. It implements reference counting by overloading operator -> (and *) among others. This allows natural interface to the class referred to by the pointer without having to invoke special Register()/UnRegister() methods directly.
Definition at line 25 of file berryICommandCategoryListener.h.
typedef TObjectType berry::SmartPointer< TObjectType >::ObjectType |
Definition at line 52 of file berrySmartPointer.h.
typedef SmartPointer berry::SmartPointer< TObjectType >::Self |
Definition at line 53 of file berrySmartPointer.h.
typedef ObjectType* Self::* berry::SmartPointer< TObjectType >::unspecified_bool_type |
Definition at line 149 of file berrySmartPointer.h.
|
inline |
Constructor
Definition at line 56 of file berrySmartPointer.h.
|
inlineexplicit |
Constructor to pointer p
Definition at line 66 of file berrySmartPointer.h.
|
inline |
Copy constructor
Definition at line 78 of file berrySmartPointer.h.
|
inline |
Definition at line 89 of file berrySmartPointer.h.
|
explicit |
Definition at line 356 of file berrySmartPointer.h.
|
inline |
Destructor
Definition at line 104 of file berrySmartPointer.h.
|
inline |
Definition at line 115 of file berrySmartPointer.h.
Referenced by berry::CommandManager::AddExecutionListener(), QmitkFunctionality::AfterCreateQtPartControl(), berry::ObjectGeneric< bool >::Assign(), berry::ObjectGeneric< bool >::Assignable(), QmitkFunctionality::BlueBerrySelectionChanged(), berry::ViewPart::CheckSite(), berry::EditorPart::CheckSite(), QmitkFunctionality::ClosePartProxy(), berry::XMLMemento::CopyChild(), berry::MenuManager::FindMenuUsingPath(), berry::MenuManager::FindUsingPath(), berry::HandlerUtil::GetActiveContexts(), berry::HandlerUtil::GetActiveContextsChecked(), berry::HandlerUtil::GetActiveEditorId(), berry::HandlerUtil::GetActiveEditorIdChecked(), berry::HandlerUtil::GetActiveMenuEditorInput(), berry::HandlerUtil::GetActiveMenuEditorInputChecked(), berry::HandlerUtil::GetActiveMenus(), berry::HandlerUtil::GetActiveMenusChecked(), berry::HandlerUtil::GetActiveMenuSelection(), berry::HandlerUtil::GetActiveMenuSelectionChecked(), berry::HandlerUtil::GetActivePartChecked(), berry::HandlerUtil::GetActivePartId(), berry::HandlerUtil::GetActivePartIdChecked(), berry::HandlerUtil::GetActiveSiteChecked(), QmitkFunctionality::GetActiveStdMultiWidget(), berry::HandlerUtil::GetActiveWorkbenchWindowChecked(), berry::CommandManager::GetAllCommands(), QmitkAbstractView::GetCurrentSelection(), QmitkFunctionality::GetCurrentSelection(), berry::HandlerUtil::GetCurrentSelection(), berry::HandlerUtil::GetCurrentSelectionChecked(), QmitkAbstractView::GetDataManagerSelection(), QmitkFunctionality::GetDataManagerSelection(), QmitkAbstractRenderEditor::GetDataStorageReference(), berry::ExpressionConverter::GetDebugPath(), berry::CommandManager::GetDefinedCommands(), berry::Command::GetParameterType(), mitk::MAPAlgorithmInfoSelection::GetSelectedAlgorithmInfo(), mitk::DataNodeSelection::GetSelectedDataNodes(), berry::HandlerUtil::GetShowInSelection(), berry::HandlerUtil::GetShowInSelectionChecked(), berry::HandlerUtil::GetVariable(), QmitkAbstractRenderEditor::Init(), berry::HandlerUtil::MatchesRadioState(), berry::WorkbenchWindowAdvisor::OpenIntro(), QmitkFunctionalityCoordinator::PartClosed(), QmitkFunctionalityCoordinator::PartHidden(), QmitkFunctionalityCoordinator::PartOpened(), QmitkFunctionalityCoordinator::PartVisible(), berry::IPropertyChangeListener::PropertyChange(), berry::XMLMemento::PutMemento(), berry::ContributorFactory::Resolve(), berry::ToggleState::Save(), berry::RadioState::Save(), QmitkAbstractView::SetDataManagerSelection(), berry::Command::SetHandler(), berry::RegistryToggleState::SetInitializationData(), berry::RadioState::SetInitializationData(), berry::ExtensionFactory::SetInitializationData(), berry::QtSelectionProvider::SetSelection(), QmitkDataNodeSelectionProvider::SetSelection(), berry::ToggleState::SetValue(), berry::RadioState::SetValue(), berry::HandlerUtil::ToggleCommandState(), berry::MenuManager::Update(), and QmitkAbstractView::~QmitkAbstractView().
|
inline |
Template comparison operators using operator==. Access function to pointer.
Definition at line 213 of file berrySmartPointer.h.
Referenced by berry::ContributionManager::Add(), QmitkStdMultiWidgetEditor::CreateQtPartControl(), berry::HandlerUtil::GetActivePart(), berry::HandlerUtil::GetActivePartChecked(), berry::HandlerUtil::GetActiveSite(), berry::HandlerUtil::GetActiveSiteChecked(), berry::HandlerUtil::GetActiveWorkbenchWindow(), berry::HandlerUtil::GetActiveWorkbenchWindowChecked(), QmitkAbstractView::GetRenderWindowPart(), berry::ContributionManager::Insert(), berry::ContributionManager::InsertAfter(), berry::ContributionManager::InsertBefore(), mitk::WorkbenchUtil::LoadFiles(), QmitkStdMultiWidgetEditor::OnPreferencesChanged(), berry::WeakPointer< Self >::operator=(), berry::SmartPointer< berry::MenuManager >::operator=(), berry::SmartPointer< berry::MenuManager >::operator==(), berry::SmartPointer< berry::MenuManager >::operator>(), QmitkFunctionalityCoordinator::PartActivated(), QmitkFunctionalityCoordinator::PartClosed(), QmitkFunctionalityCoordinator::PartHidden(), QmitkFunctionalityCoordinator::PartOpened(), QmitkFunctionalityCoordinator::PartVisible(), QmitkExtActionBarAdvisor::QmitkExtActionBarAdvisor(), QmitkFileOpenAction::QmitkFileOpenAction(), QmitkFileSaveAction::QmitkFileSaveAction(), QmitkRedoAction::QmitkRedoAction(), and QmitkUndoAction::QmitkUndoAction().
|
inline |
Test if the pointer has been initialized
Definition at line 140 of file berrySmartPointer.h.
Referenced by berry::ActionBarAdvisor::ActionBarAdvisor(), berry::EvaluationContext::AddVariable(), QmitkFunctionality::AfterCreateQtPartControl(), QmitkFunctionality::ClosePartProxy(), QmitkViewNavigatorWidget::CustomMenuRequested(), QmitkViewNavigatorWidget::FillTreeList(), GetDataStorage(), QmitkAbstractRenderEditor::GetDataStorage(), QmitkAbstractRenderEditor::GetDataStorageReference(), mitk::WorkbenchUtil::GetDefaultEditor(), berry::NamedHandleObjectWithState::GetDescription(), berry::NamedHandleObjectWithState::GetName(), mitk::MAPAlgorithmInfoSelection::GetSelectedAlgorithmInfo(), mitk::DataNodeSelection::GetSelectedDataNodes(), berry::HandlerUtil::GetVariable(), QmitkViewNavigatorWidget::ItemClicked(), mitk::WorkbenchUtil::LoadFiles(), QmitkFunctionalityCoordinator::PartClosed(), QmitkFunctionalityCoordinator::PartOpened(), QmitkFunctionalityCoordinator::PartVisible(), QmitkDataManagerHotkeysPrefPage::PerformOk(), berry::ContributionManager::ReplaceItem(), berry::SelectionChangedEvent::SelectionChangedEvent(), berry::StackPresentation::StackPresentation(), QmitkDataManagerHotkeysPrefPage::Update(), QmitkViewNavigatorWidget::UpdateTreeList(), berry::WorkbenchWindowAdvisor::WorkbenchWindowAdvisor(), and QmitkAbstractView::~QmitkAbstractView().
|
inline |
Definition at line 144 of file berrySmartPointer.h.
Referenced by QmitkFunctionality::BlueBerrySelectionChanged(), comparePerspectives(), compareViews(), QmitkFunctionality::DataNodeSelectionToVector(), QmitkViewNavigatorWidget::FillTreeList(), berry::AbstractHandler::FireHandlerChanged(), berry::HandlerUtil::GetVariableChecked(), berry::ContributionManager::InsertAfter(), berry::ContributionManager::InsertBefore(), mitk::WorkbenchUtil::LoadFiles(), berry::HandlerUtil::MatchesRadioState(), mitk::WorkbenchUtil::OpenEditor(), berry::ExpressionConverter::Perform(), berry::ExtensionTracker::RegisterObject(), berry::ContributionManager::Remove(), berry::ContributorFactory::Resolve(), QmitkOpenDicomEditorAction::Run(), QmitkOpenXnatEditorAction::Run(), QmitkFileSaveAction::Run(), QmitkCloseProjectAction::Run(), SafeHandleNavigatorView(), QmitkAbstractView::SetDataManagerSelection(), QmitkAbstractView::SynchronizeDataManagerSelection(), berry::HandlerUtil::ToggleCommandState(), berry::HandlerUtil::UpdateRadioState(), and QmitkViewNavigatorWidget::UpdateTreeList().
|
inline |
Definition at line 151 of file berrySmartPointer.h.
|
inline |
Definition at line 179 of file berrySmartPointer.h.
|
inline |
Definition at line 185 of file berrySmartPointer.h.
|
inline |
Definition at line 190 of file berrySmartPointer.h.
|
inline |
Return pointer to object.
Definition at line 133 of file berrySmartPointer.h.
|
inline |
Overload operator ->
Definition at line 122 of file berrySmartPointer.h.
|
inline |
Comparison of pointers. Less than comparison.
Definition at line 220 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator<=().
|
inline |
Comparison of pointers. Less than or equal to comparison.
Definition at line 236 of file berrySmartPointer.h.
|
inline |
Overload operator assignment.
Definition at line 249 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator=().
|
inline |
Overload operator assignment.
Definition at line 256 of file berrySmartPointer.h.
|
inline |
Overload operator assignment.
Definition at line 262 of file berrySmartPointer.h.
|
inline |
Template comparison operators.
Definition at line 158 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator!=(), berry::SmartPointer< berry::MenuManager >::operator<=(), and berry::SmartPointer< berry::MenuManager >::operator>=().
|
inline |
Definition at line 164 of file berrySmartPointer.h.
|
inline |
Definition at line 170 of file berrySmartPointer.h.
|
inline |
Comparison of pointers. Greater than comparison.
Definition at line 228 of file berrySmartPointer.h.
Referenced by berry::SmartPointer< berry::MenuManager >::operator>=().
|
inline |
Comparison of pointers. Greater than or equal to comparison.
Definition at line 243 of file berrySmartPointer.h.
QDebug berry::SmartPointer< T >::Print | ( | QDebug | os | ) | const |
Function to print object pointed to
Definition at line 375 of file berrySmartPointer.h.