ROOT logo
ROOT » CORE » CONT » TBtreeIter

class TBtreeIter: public TIterator, public iterator<bidirectional_iterator_tag,TObject*,long,const TObject**,const TObject*&>


Iterator of btree.

This class is also known as (typedefs to this class)


Function Members (Methods)

TBtreeIter(const TBtreeIter& iter)
TBtreeIter(const TBtree* t, Bool_t dir = kIterForward)
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
virtual booloperator!=(const TIterator& aIter) const
booloperator!=(const TBtreeIter& aIter) const
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
TBtreeIter&operator=(const TBtreeIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

Int_tfCurCursorcurrent position in btree
Int_tfCursornext position in btree
Bool_tfDirectioniteration direction
const TBtree*fTreebtree being iterated

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TBtreeIter(const TBtree* t, Bool_t dir = kIterForward)
 Create a B-tree iterator.
TBtreeIter(const TBtreeIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator& rhs)
 Overridden assignment operator.
TBtreeIter & operator=(const TBtreeIter& rhs)
 Overloaded assignment operator.
void Reset()
 Reset the B-tree iterator.
TObject * Next()
 Get next object from B-tree. Returns 0 when no more objects in tree.
bool operator!=(const TIterator& aIter) const
 This operator compares two TIterator objects.
bool operator!=(const TBtreeIter& aIter) const
 This operator compares two TBtreeIter objects.
TObject* operator*() const
 Return current object or nullptr.
{ }
{ }
const TCollection * GetCollection() const
{ return fTree; }