Return the value of the char currently pointed to by the iterator Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| char | hzChain::Iter::operator* | (void) |
Declared in file: hzChain.h
Defined in file : hzChain.cpp
Function Logic:
Function body:
char hzChain::Iter::operator* (void)
{
// Return the value of the char currently pointed to by the iterator
//
// Arguments: None
//
// Returns: >0 The current character of the chain iterator
// 0 If the chain iterator is at the end of the chan or the chain is empty
_hzfunc("hzChain::Iter::operator*") ;
_zblk* zp ; // Block pointer
if (!m_block)
return m_cDefault ;
zp = (_zblk*) m_block ;
if (!zp)
Fatal("Cannot access block %d\n", m_block) ;
if (!zp->Next() && m_nOset == zp->m_nUsage)
return m_cDefault ;
if (m_nOset >&eq; zp->m_nUsage)
Fatal("Have block %p next %p oset %d size %d\n", m_block, zp->Next(), m_nOset, zp->m_nUsage) ;
return zp->m_Data[m_nOset] ;
}