Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryIIterable.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef BERRYIITERABLE_H_
14 #define BERRYIITERABLE_H_
15 
16 #include <berryObject.h>
17 #include <berryMacros.h>
18 
20 
21 namespace berry {
22 
31 {
32 
34 
35  typedef QList<Object::Pointer>::iterator iterator;
36  typedef QList<Object::Pointer>::const_iterator const_iterator;
37 
38  ~IIterable() override;
39 
45  virtual iterator begin() = 0;
46  virtual iterator end() = 0;
47 
48  virtual const_iterator begin() const = 0;
49  virtual const_iterator end() const = 0;
50 
51 };
52 
53 } // namespace berry
54 
55 Q_DECLARE_INTERFACE(berry::IIterable, "org.blueberry.core.IIterable")
56 
57 #endif /*BERRYIITERABLE_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
~IIterable() override
berryObjectMacro(berry::IIterable)
QList< Object::Pointer >::const_iterator const_iterator
virtual const_iterator begin() const =0
virtual iterator end()=0
virtual iterator begin()=0
QList< Object::Pointer >::iterator iterator
virtual const_iterator end() const =0