Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::IStructuredSelection Struct Referenceabstract

#include <berryIStructuredSelection.h>

Inheritance diagram for berry::IStructuredSelection:
Collaboration diagram for berry::IStructuredSelection:

Public Types

typedef ObjectList< Object::PointerContainerType
 
typedef ContainerType::const_iterator iterator
 
- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 

Public Member Functions

 berryObjectMacro (berry::IStructuredSelection)
 
virtual Object::Pointer GetFirstElement () const =0
 
virtual iterator Begin () const =0
 
virtual iterator End () const =0
 
virtual int Size () const =0
 
virtual ContainerType::Pointer ToVector () const =0
 
 ~IStructuredSelection () override
 
- Public Member Functions inherited from berry::ISelection
 berryObjectMacro (berry::ISelection)
 
 ~ISelection () override
 
virtual bool IsEmpty () const =0
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Additional Inherited Members

- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

A selection containing elements.

Definition at line 28 of file berryIStructuredSelection.h.

Member Typedef Documentation

◆ ContainerType

◆ iterator

typedef ContainerType::const_iterator berry::IStructuredSelection::iterator

Definition at line 31 of file berryIStructuredSelection.h.

Constructor & Destructor Documentation

◆ ~IStructuredSelection()

berry::IStructuredSelection::~IStructuredSelection ( )
override

Member Function Documentation

◆ Begin()

virtual iterator berry::IStructuredSelection::Begin ( ) const
pure virtual

Returns an iterator to the beginning of the elements of this selection.

Returns
an iterator over the selected elements

Implemented in mitk::MAPAlgorithmInfoSelection, berry::QtItemSelection, and mitk::DataNodeSelection.

◆ berryObjectMacro()

berry::IStructuredSelection::berryObjectMacro ( berry::IStructuredSelection  )

◆ End()

virtual iterator berry::IStructuredSelection::End ( ) const
pure virtual

Returns an iterator to the end of the elements of this selection.

Returns
an iterator over the selected elements

Implemented in mitk::MAPAlgorithmInfoSelection, berry::QtItemSelection, and mitk::DataNodeSelection.

◆ GetFirstElement()

virtual Object::Pointer berry::IStructuredSelection::GetFirstElement ( ) const
pure virtual

Returns the first element in this selection, or null if the selection is empty.

Returns
an element, or null if none

Implemented in mitk::MAPAlgorithmInfoSelection, berry::QtItemSelection, and mitk::DataNodeSelection.

◆ Size()

virtual int berry::IStructuredSelection::Size ( ) const
pure virtual

Returns the number of elements selected in this selection.

Returns
the number of elements selected

Implemented in mitk::MAPAlgorithmInfoSelection, berry::QtItemSelection, and mitk::DataNodeSelection.

◆ ToVector()

virtual ContainerType::Pointer berry::IStructuredSelection::ToVector ( ) const
pure virtual

Returns the elements in this selection as a vector.

Returns
the selected elements as a vector

Implemented in mitk::MAPAlgorithmInfoSelection, mitk::DataNodeSelection, and berry::QtItemSelection.


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