ROOT logo
ROOT » MISC » TABLE » TGenericTable::iterator

class TGenericTable::iterator


TGenericTable

This is the class to represent the array of C-struct
defined at run-time


Function Members (Methods)

Data Members

protected:
char*fCurrentRow
UInt_tfRowSize

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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