class TGenericTable::iterator


TGenericTable

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


Function Members (Methods)

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

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 iterator& iter)
{}
iterator & operator=(const TGenericTable::iterator& iter)
{ fRowSize = iter.fRowSize; fCurrentRow = iter.fCurrentRow; return *this;}
iterator & operator++(int )
{ if (fCurrentRow) fCurrentRow+=fRowSize; return *this;}
void operator++(int )
{ if (fCurrentRow) fCurrentRow+=fRowSize;}
iterator & operator--(int )
{ if (fCurrentRow) fCurrentRow-=fRowSize; return *this;}
void operator--(int )
{ if (fCurrentRow) fCurrentRow-=fRowSize;}
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 iterator &it)
{ return (fCurrentRow-it.fCurrentRow)/fRowSize; }
Bool_t operator==(const TGenericTable::iterator& t) const
{ return (fCurrentRow == t.fCurrentRow); }
Bool_t operator!=(const TGenericTable::iterator& t) const
{ return !operator==(t); }

Author: Valery Fine(fine@bnl.gov) 30/06/2001
Last update: root/table:$Id: TGenericTable.h 20882 2007-11-19 11:31:26Z rdm $

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.