class TIndexTable::iterator


 Class TIndexTable
 Iterator of the table with extra index array


Function Members (Methods)

public:
~iterator()
TIndexTable::iteratoriterator(const TTable& t)
TIndexTable::iteratoriterator(const TIndexTable::iterator& iter)
TIndexTable::iteratoriterator(const TTable& t, int& rowPtr)
intoperator int()
Bool_toperator!=(const TIndexTable::iterator& t) const
void*operator*()
TIndexTable::iterator&operator+(Int_t idx)
TIndexTable::iterator&operator++()
voidoperator++(int)
TIndexTable::iterator&operator-(Int_t idx)
Int_toperator-(const TIndexTable::iterator& it) const
TIndexTable::iterator&operator--()
voidoperator--(int)
TIndexTable::iterator&operator=(const TIndexTable::iterator& iter)
Bool_toperator==(const TIndexTable::iterator& t) const
protected:
TIndexTable::iteratoriterator()

Data Members

protected:
int*fCurrentRow
const TTable*fTable

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

iterator()
{}
iterator(const TTable& t, int& rowPtr)
{}
iterator(const TTable &t)
{}
iterator(const iterator& iter)
{}
iterator & operator=(const TIndexTable::iterator& iter)
{fTable = iter.fTable; fCurrentRow = iter.fCurrentRow; return *this;}
iterator & operator++(int )
{ if (fCurrentRow) ++fCurrentRow; return *this;}
void operator++(int )
{ if (fCurrentRow) fCurrentRow++;}
iterator & operator--(int )
{ if (fCurrentRow) --fCurrentRow; return *this;}
void operator--(int )
{ if (fCurrentRow) fCurrentRow--;}
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 iterator &it)
{ return (fCurrentRow-it.fCurrentRow)/sizeof(int); }
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); }

Author: Valery Fine(fine@bnl.gov) 01/03/2001
Last update: root/table:$Id: TIndexTable.h 21565 2007-12-28 12:28:46Z brun $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.