JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
RepIter.h
Go to the documentation of this file.
1
5/*
6 * JEMRIS Copyright (C)
7 * 2006-2025 Tony Stoecker
8 * 2007-2018 Kaveh Vahedipour
9 * 2009-2019 Daniel Pflugfelder
10 *
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26
27#ifndef REPCOUNTER_H_
28#define REPCOUNTER_H_
29
30class ConcatSequence;
31
41class RepIter {
42
43 inline friend bool operator<(const RepIter &rc1,const RepIter &rc2) {return rc1.m_RC < rc2.m_RC;};
44
45 public:
46
51
59 RepIter(ConcatSequence* cs, unsigned int rc);
60
65
72 RepIter operator=(const RepIter &rhs);
73
82 RepIter operator++(int i);
83
91
92
93 private:
94
96 unsigned int m_RC;
98};
99
100#endif
Concat sequence prototype.
Definition ConcatSequence.h:48
A super-simple iterator for counting the repetitions of a concat sequence.
Definition RepIter.h:41
ConcatSequence * m_cs
Concat sequence.
Definition RepIter.h:95
RepIter operator++()
Operator ++.
Definition RepIter.cpp:56
RepIter()
Default Constructor.
Definition RepIter.h:50
RepIter operator=(const RepIter &rhs)
Operator =.
Definition RepIter.cpp:39
~RepIter()
Default destructor.
Definition RepIter.h:64
unsigned int m_RC
Counter
Definition RepIter.h:96

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --