ImageD  v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
d_multidimloop.h
Go to the documentation of this file.
1 /************************************
2  * added: 02.02.2020 *
3  * author: David Eilenstein *
4  * contact: D.Eilenstein@gsi.de *
5  * project: ImageD *
6  * facility: GSI Darmstadt, Ger *
7  ************************************/
8 
9 #ifndef D_MULTIDIMLOOP_H
10 #define D_MULTIDIMLOOP_H
11 
12 #include <vector>
13 
14 using namespace std;
15 
17 {
18 public:
19  D_MultiDimLoop(vector<size_t> start, vector<size_t> end);
20  bool valid();
21  bool next();
22  vector<size_t> pos() {return m_pos;}
23 
24 private:
25  vector<size_t> m_start;
26  vector<size_t> m_end;
27  vector<size_t> m_pos;
28  size_t n = 0;
29 };
30 
31 #endif // D_MULTIDIMLOOP_H
32 
D_MultiDimLoop::valid
bool valid()
Definition: d_multidimloop.cpp:22
D_MultiDimLoop::pos
vector< size_t > pos()
Definition: d_multidimloop.h:22
D_MultiDimLoop::D_MultiDimLoop
D_MultiDimLoop(vector< size_t > start, vector< size_t > end)
Definition: d_multidimloop.cpp:11
D_MultiDimLoop::next
bool next()
Definition: d_multidimloop.cpp:37
D_MultiDimLoop
Definition: d_multidimloop.h:17
d_multidimloop.h