ROOT logo
ROOT » MISC » TABLE » TIndexTable::iterator

class TIndexTable::iterator


 Class TIndexTable
 Iterator of the table with extra index array


Function Members (Methods)

Data Members

protected:
const int*fCurrentRow
const TTable*fTable

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

iterator()
{}
iterator(const TTable& t, const int& rowPtr)
{}
iterator(const TTable& t)
{}
iterator(const TIndexTable::iterator& iter)
{}
iterator & operator=(const TIndexTable::iterator& iter)
{fTable = iter.fTable; fCurrentRow = iter.fCurrentRow; return *this;}
iterator & operator++()
{ if (fCurrentRow) ++fCurrentRow; return *this;}
void operator++(int )
iterator & operator--()
{ if (fCurrentRow) --fCurrentRow; return *this;}
void operator--(int )
iterator & operator+(Int_t idx)
{ if (fCurrentRow) fCurrentRow+=idx; return *this;}
iterator & operator-(Int_t idx)
{ if (fCurrentRow) fCurrentRow-=idx; return *this;}
Int_t operator-(const TIndexTable::iterator& it) const
{ return fCurrentRow-it.fCurrentRow; }
operator int()
{ return *fCurrentRow;}
Bool_t operator==(const TIndexTable::iterator& t) const
{ return (fCurrentRow == t.fCurrentRow); }
Bool_t operator!=(const TIndexTable::iterator& t) const
{ return !operator==(t); }