My Project
|
#include <RegRange.h>
Public Member Functions | |
RegRange (unsigned iByteStart, unsigned iByteStop, bool archivedOnly=false, ArrayMap *arrayMap=0) | |
virtual | ~RegRange () |
const RegRange & | operator++ () |
void | increment () |
void | reset () |
bool | isEnd () |
ArrRegMap * | currentArrRegMap () |
RegMapBlock * | currentBlock () |
unsigned | currentEl () |
unsigned | currentByteOffset () |
int | currentSlot () |
Friends | |
std::ostream & | operator<< (std::ostream &os, RegRange &range) |
A class for managing ranges of byte indices corresponding to registers in a register map.
RegRange::RegRange | ( | unsigned | iByteStart, |
unsigned | iByteStop, | ||
bool | archivedOnly = false , |
||
ArrayMap * | arrayMap = 0 |
||
) |
Constructor.
....................................................................... Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
ArrRegMap * RegRange::currentArrRegMap | ( | ) |
Get a pointer to the current register map
....................................................................... Get a pointer to the current register map
RegMapBlock * RegRange::currentBlock | ( | ) |
Get a pointer to the current block
....................................................................... Get a pointer to the current block
unsigned RegRange::currentByteOffset | ( | ) |
Get the current byte offset
....................................................................... Get the current byte Offset
unsigned RegRange::currentEl | ( | ) |
Get the current element
....................................................................... Get the current element
int RegRange::currentSlot | ( | ) |
Get the current slot in the register map. This is a symbolic index into a consecutive array of all register elements.
....................................................................... Get the current slot index
void RegRange::increment | ( | ) |
Increments to the next register element, regardless of whether or not it belongs to the version of the array map managed by this class.
....................................................................... Increment this iterator.
bool RegRange::isEnd | ( | ) |
Return true if we are at the end of our range.
....................................................................... Return true if the current byte is the last byte.
const RegRange & RegRange::operator++ | ( | ) |
Prefix increment operator. Increments to the next element which is part of the (archived or whole) array map.
....................................................................... Prefix increment operator
void RegRange::reset | ( | ) |
Reset all iterators
....................................................................... Reset internal iterators to correspond to the starting byte of this range.