Increments the current chain iterator if it can be incremented ie is not at the end of the chain. Note that the void argument means this is the 'post evaluation version' called when the code is 'iter++' rather than '++iter'. Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| hzChain::Iter& | hzChain::Iter::operator++ | (void) |
Declared in file: hzChain.h
Defined in file : hzChain.cpp
Function Logic:
Function body:
hzChain::Iter& hzChain::Iter::operator++ (void)
{
// Increments the current chain iterator if it can be incremented ie is not at the end of the chain. Note that the void argument means this
// is the 'post evaluation version' called when the code is 'iter++' rather than '++iter'.
//
// Arguments: None
// Returns: Reference to this chain iterator
_hzfunc("hzChain::Iter::operator++") ;
_zblk* zp ; // Chain block pointer
if (m_block)
{
zp = (_zblk*) m_block ;
if (zp->m_Data[m_nOset] == CHAR_NL)
{ m_nCol = 0; m_nLine++ ; }
if (zp->m_Data[m_nOset] == CHAR_TAB)
m_nCol += (4-(m_nCol%4));
else
m_nCol++ ;
if (m_nOset < zp->m_nUsage)
m_nOset++ ;
if (m_nOset >&eq; zp->m_nUsage)
{
if (zp->Next())
{
m_block = zp->Next() ;
m_nOset = 0;
}
}
}
return *this ;
}