JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Private Attributes | Friends
RepIter Class Reference

A super-simple iterator for counting the repetitions of a concat sequence. More...

#include <RepIter.h>

+ Collaboration diagram for RepIter:

Public Member Functions

 RepIter ()
 Default Constructor.
 
 RepIter (ConcatSequence *cs, unsigned int rc)
 Construct with concat sequence and counter. More...
 
 ~RepIter ()
 Default destructor.
 
RepIter operator= (const RepIter &rhs)
 Operator =. More...
 
RepIter operator++ (int i)
 Operator ++. More...
 
RepIter operator++ ()
 Operator ++. More...
 

Private Attributes

ConcatSequencem_cs
 Concat sequence.
 
unsigned int m_RC
 Counter.
 

Friends

bool operator< (const RepIter &rc1, const RepIter &rc2)
 

Detailed Description

A super-simple iterator for counting the repetitions of a concat sequence.

usage: ConcatSequence C; for (RepIter r=C.begin();r<C.end(); ++r) { ... }

Constructor & Destructor Documentation

RepIter::RepIter ( ConcatSequence cs,
unsigned int  rc 
)

Construct with concat sequence and counter.

Parameters
csConcat sequence on which to iterate
rcRepitition counter
Returns
myself

Member Function Documentation

RepIter RepIter::operator++ ( int  i)

Operator ++.

Iterate i further

Parameters
iAmount to iterate further
Returns
myself

+ Here is the call graph for this function:

RepIter RepIter::operator++ ( )

Operator ++.

Iterate 1 further

Returns
myself

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

RepIter RepIter::operator= ( const RepIter rhs)

Operator =.

Parameters
rhsAssignement.
Returns
myself

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files:

-- last change 17.06.2016 | Tony Stoecker | Imprint --