AFF --- A container for numbers (array) by Friederich and Forbriger.
seriesstepper.cc
Go to the documentation of this file.
1 
34 #define AFF_SERIESSTEPPER_CC_VERSION \
35  "AFF_SERIESSTEPPER_CC V1.0"
36 
37 #include <aff/series.h>
38 
39 namespace aff {
40 namespace util {
41 
44  {
45  if (++Mcurrent>Mlast_offset)
46  {
48  Mvalid=false;
49  }
50  return(*this);
51  }
52 
53  /*----------------------------------------------------------------------*/
54 
57  {
58  if (--Mcurrent<Mfirst_offset)
59  {
61  Mvalid=false;
62  }
63  return(*this);
64  }
65 
66  /*----------------------------------------------------------------------*/
67 
70  {
72  Mvalid=true;
73  return(*this);
74  }
75 
76  /*----------------------------------------------------------------------*/
77 
80  {
82  Mvalid=true;
83  return(*this);
84  }
85 
86 
87 } // namespace util
88 } // namespace aff
89 
90 /* ----- END OF seriesstepper.cc ----- */
Root namespace of library.
Definition: array.h:148
Tsubscript Mcurrent
hold current position offset to memory
Definition: seriesstepper.h:99
Tsubscript Mfirst_offset
store current bounds to reduce execution time
Definition: seriesstepper.h:95
SeriesStepper & incr()
increment offset - return reference to itself
linear series class (prototypes)
SeriesStepper & tolast()
set current element index to the last - return reference to itself
SeriesStepper & decr()
decrement offset - return reference to itself
bool Mvalid
true while not passed start or end
A stepper for aff::Series.
Definition: seriesstepper.h:63
SeriesStepper & tofirst()
set current element index to the first - return reference to itself