ROOT logo
ROOT » MISC » TABLE » TTable::iterator

class TTable::iterator


TTable

It is a base class to create a "wrapper" class
holding the plain C-structure array
(1 element of the structure per element)


Function Members (Methods)

public:
~iterator()
TTable::iteratoriterator()
TTable::iteratoriterator(const TTable::iterator& iter)
TTable::iteratoriterator(const TTable& table, TTable::iterator::vec_const_iterator& arowPtr)
void*operator void*() const
Bool_toperator!=(const TTable::iterator& t) const
Long_toperator*() const
TTable::iteratoroperator+(Int_t idx)
voidoperator++()
voidoperator++(int)
voidoperator+=(Int_t idx)
TTable::iteratoroperator-(Int_t idx)
Int_toperator-(const TTable::iterator& it) const
voidoperator--()
voidoperator--(int)
voidoperator-=(Int_t idx)
TTable::iterator&operator=(const TTable::iterator& iter)
Bool_toperator==(const TTable::iterator& t) const
void*rowPtr() const
const Long_t&RowSize() const
const TTable&Table() const

Data Members

private:
TTable::iterator::vec_iteratorfCurrentRow
Long_tfRowSize
const TTable*fThisTable

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TTable & operator=(const TTable::iterator& iter)
iterator()
{;}
iterator(const TTable& table, TTable::iterator::vec_const_iterator& arowPtr)
{;}
iterator(const TTable& table, TTable::iterator::vec_const_iterator& arowPtr)
fCurrentRow(* const_cast<vector<Long_t>::iterator *>(&arowPtr) ) {;}
{;}
void operator++()
void operator++(int )
void operator--()
void operator--(int )
iterator operator+(Int_t idx)
{ std::vector<Long_t>::iterator addition = fCurrentRow+idx; return iterator(*fThisTable,addition); }
iterator operator-(Int_t idx)
{ std::vector<Long_t>::iterator subtraction = fCurrentRow-idx; return iterator(*fThisTable,subtraction); }
void operator+=(Int_t idx)
{ fCurrentRow+=idx; }
void operator-=(Int_t idx)
{ fCurrentRow-=idx; }
void * rowPtr() const
{ return (void *)(((const char *)fThisTable->GetArray()) + (*fCurrentRow)*fRowSize ); }
Int_t operator-(const TTable::iterator& it) const
{ return (*fCurrentRow)-(*(it.fCurrentRow)); }
Bool_t operator==(const TTable::iterator& t) const
{ return ( (fCurrentRow == t.fCurrentRow) && (fThisTable == t.fThisTable) ); }
Bool_t operator!=(const TTable::iterator& t) const
{ return !operator==(t); }
const Long_t & RowSize() const
{ return fRowSize;}