My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::RegRange Class Reference

#include <RegRange.h>

Public Member Functions

 RegRange (unsigned iByteStart, unsigned iByteStop, bool archivedOnly=false, ArrayMap *arrayMap=0)
 
virtual ~RegRange ()
 
const RegRangeoperator++ ()
 
void increment ()
 
void reset ()
 
bool isEnd ()
 
ArrRegMapcurrentArrRegMap ()
 
RegMapBlock * currentBlock ()
 
unsigned currentEl ()
 
unsigned currentByteOffset ()
 
int currentSlot ()
 

Friends

std::ostream & operator<< (std::ostream &os, RegRange &range)
 

Detailed Description

A class for managing ranges of byte indices corresponding to registers in a register map.

Constructor & Destructor Documentation

RegRange::RegRange ( unsigned  iByteStart,
unsigned  iByteStop,
bool  archivedOnly = false,
ArrayMap arrayMap = 0 
)

Constructor.

....................................................................... Constructor.

RegRange::~RegRange ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

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.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
RegRange range 
)
friend

Allows cout << RegRange


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