1 #ifndef SZA_UTIL_REGRANGE_H
2 #define SZA_UTIL_REGRANGE_H
13 #include "carma/szaarrayutils/szaregs.h"
30 RegRange(
unsigned iByteStart,
unsigned iByteStop,
31 bool archivedOnly=
false, ArrayMap* arrayMap=0);
95 ArrayMapBase arrayMapBase_;
100 unsigned iByteStart_;
102 unsigned iByteCurrent_;
103 unsigned iSlotCurrent_;
107 std::vector<ArrRegMap*>::iterator iregmap_;
108 std::vector<RegMapBoard*>::iterator iboard_;
109 std::vector<RegMapBlock*>::iterator iblock_;
115 void checkValidity();
120 bool currentRegisterIsValid();
129 #endif // End #ifndef SZA_UTIL_REGRANGE_H
bool isEnd()
Return true if we are at the end of our range.
A class for managing ranges of byte indices corresponding to registers in a register map...
ArrRegMap * currentArrRegMap()
Get a pointer to the current register map.
const RegRange & operator++()
Prefix increment operator.
RegRange(unsigned iByteStart, unsigned iByteStop, bool archivedOnly=false, ArrayMap *arrayMap=0)
Constructor.
friend std::ostream & operator<<(std::ostream &os, RegRange &range)
Allows cout << RegRange.
void reset()
Reset all iterators.
int currentSlot()
Get the current slot in the register map.
Tagged: Wed Oct 6 11:04:54 PDT 2004.
unsigned currentByteOffset()
Get the current byte offset.
unsigned currentEl()
Get the current element.
RegMapBlock * currentBlock()
Get a pointer to the current block.
void increment()
Increments to the next register element, regardless of whether or not it belongs to the version of th...
virtual ~RegRange()
Destructor.