Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

MRAsbBase.iterator Class Reference

#include <MRAsbBase.h>

Collaboration diagram for MRAsbBase.iterator:

Collaboration graph
[legend]

Public Member Functions

bool is_equal (const iterator &)
bool is_null ()
 iterator (MRAsbBase *)
MRAmp operator * ()
 operator bool ()
bool operator! ()
bool operator!= (const iterator &)
iteratoroperator++ ()
bool operator< (const iterator &)
bool operator<= (const iterator &)
bool operator== (const iterator &)
bool operator> (const iterator &)
bool operator>= (const iterator &)
int pos ()
void set_null ()
 ~iterator ()

Protected Attributes

int _pos
MRAsbBase_ptsb

Private Member Functions

 iterator ()

Friends

class MRAsbBase

Constructor & Destructor Documentation

MRAsbBase.iterator::iterator MRAsbBase  ) 
 

Definition at line 1501 of file MRAsbBase.h.

01502   : _pos(0), _ptsb(ptsb)
01503 {}

MRAsbBase.iterator::~iterator  ) 
 

Definition at line 1506 of file MRAsbBase.h.

References MRAsbBase.iterator._ptsb.

01506 { _ptsb = 0; }

MRAsbBase.iterator.iterator  )  [private]
 

Definition at line 182 of file MRAsbBase.h.

00182 {}


Member Function Documentation

bool MRAsbBase.iterator::is_equal const iterator  ) 
 

Definition at line 1549 of file MRAsbBase.h.

References MRAsbBase.iterator._pos.

Referenced by MRAsbBase.iterator.operator!=(), and MRAsbBase.iterator.operator==().

01550 {
01551   return ( _pos == iter._pos );
01552 }

bool MRAsbBase.iterator::is_null  ) 
 

Definition at line 1540 of file MRAsbBase.h.

Referenced by MRAsbBase.iterator.operator *(), MRAsbBase.iterator.operator bool(), MRAsbBase.iterator.operator!(), and MRAsbBase.iterator.operator++().

01540 { return ( _pos == 0 ); }

MRAmp MRAsbBase.iterator::operator *  ) 
 

Definition at line 1523 of file MRAsbBase.h.

References MRAsbBase._mpenc, MRAsbBase._ptbuffer, MRAsbBase.iterator._ptsb, MRAsbBase.iterator.is_null(), BufferBase.seekg(), BufferBase.tellg(), and MRAmpBase.write().

01524 { 
01525    MRAmp mp;
01526    if ( !is_null() ) {
01527       mp( _ptsb->_mpenc );
01528       int tmppos = _ptsb->_ptbuffer->tellg();
01529       _ptsb->_ptbuffer->seekg(_pos);
01530       mp.write( *(_ptsb->_ptbuffer) );
01531       _ptsb->_ptbuffer->seekg(tmppos);
01532    }
01533    return mp; 
01534 }

MRAsbBase.iterator::operator bool  ) 
 

Definition at line 1546 of file MRAsbBase.h.

References MRAsbBase.iterator.is_null().

01546 { return !is_null(); }

bool MRAsbBase.iterator::operator!  ) 
 

Definition at line 1543 of file MRAsbBase.h.

References MRAsbBase.iterator.is_null().

01543 { return is_null(); }

bool MRAsbBase.iterator::operator!= const iterator  ) 
 

Definition at line 1561 of file MRAsbBase.h.

References MRAsbBase.iterator.is_equal().

01562 { 
01563   return !is_equal(iter);
01564 } 

MRAsbBase::iterator & MRAsbBase.iterator::operator++  ) 
 

Definition at line 1509 of file MRAsbBase.h.

References MRAsbBase._mpenc, MRAsbBase._ptbuffer, MRAsbBase.iterator._ptsb, MRAsbBase.iterator.is_null(), BufferBase.seekg(), BufferBase.tellg(), and MRAmpBase.write().

01510 { 
01511    if ( !is_null() ) {
01512       MRAmp mp( _ptsb->_mpenc );
01513       int tmppos = _ptsb->_ptbuffer->tellg();
01514       _ptsb->_ptbuffer->seekg(_pos);
01515       mp.write( *(_ptsb->_ptbuffer) );
01516       _pos = _ptsb->_ptbuffer->tellg();
01517       _ptsb->_ptbuffer->seekg(tmppos);
01518    }
01519    return *this; 
01520 }

bool MRAsbBase.iterator::operator< const iterator  ) 
 

Definition at line 1573 of file MRAsbBase.h.

References MRAsbBase.iterator._pos.

01574 {
01575   return ( _pos < iter._pos );
01576 }

bool MRAsbBase.iterator::operator<= const iterator  ) 
 

Definition at line 1585 of file MRAsbBase.h.

01586 {
01587    return ( ( *this < iter ) ||  ( *this == iter ) );
01588 }

bool MRAsbBase.iterator::operator== const iterator  ) 
 

Definition at line 1555 of file MRAsbBase.h.

References MRAsbBase.iterator.is_equal().

01556 {
01557   return is_equal(iter);
01558 }

bool MRAsbBase.iterator::operator> const iterator  ) 
 

Definition at line 1567 of file MRAsbBase.h.

References MRAsbBase.iterator._pos.

01568 {
01569   return ( _pos > iter._pos );
01570 }

bool MRAsbBase.iterator::operator>= const iterator  ) 
 

Definition at line 1579 of file MRAsbBase.h.

01580 {
01581    return ( ( *this > iter ) ||  ( *this == iter ) );
01582 }

int MRAsbBase.iterator.pos  ) 
 

Definition at line 177 of file MRAsbBase.h.

00177 { return _pos; }

void MRAsbBase.iterator::set_null  ) 
 

Definition at line 1537 of file MRAsbBase.h.

Referenced by MRAsbBase.begin(), and MRAsbBase.end().

01537 { _pos = 0; }


Friends And Related Function Documentation

friend class MRAsbBase [friend]
 

Definition at line 183 of file MRAsbBase.h.


Field Documentation

int MRAsbBase.iterator._pos [protected]
 

Definition at line 179 of file MRAsbBase.h.

Referenced by MRAsbBase.begin(), MRAsbBase.end(), MRAsbBase.iterator.is_equal(), MRAsbBase.iterator.operator<(), and MRAsbBase.iterator.operator>().

MRAsbBase* MRAsbBase.iterator._ptsb [protected]
 

Definition at line 180 of file MRAsbBase.h.

Referenced by MRAsbBase.iterator.operator *(), MRAsbBase.iterator.operator++(), and MRAsbBase.iterator.~iterator().


The documentation for this class was generated from the following file:
Generated on Mon May 31 21:41:33 2004 for SR2k4 Assembler by doxygen 1.3.6