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


TBtreeIter

Iterator of btree.


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

TBtree::Iterator_t

Function Members (Methods)

public:
TBtreeIter(const TBtreeIter& iter)
TBtreeIter(const TBtree* t, Bool_t dir = kIterForward)
virtual~TBtreeIter()
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
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
TBtreeIter&operator=(const TBtreeIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TBtreeIter()

Data Members

private:
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)
 This operator compares two TIterator objects.
bool operator!=(const TBtreeIter &aIter)
 This operator compares two TBtreeIter objects.
TObject* operator*()
 Return current object or nullptr.
TBtreeIter(const TBtreeIter& iter)
{ }
~TBtreeIter()
{ }
const TCollection * GetCollection()
{ return fTree; }

Author: Fons Rademakers 10/10/95
Last change: root/cont:$Id: TBtree.h 23644 2008-05-02 21:22:03Z rdm $
Last generated: 2008-06-25 08:35
Copyright (C) 1995-2000, 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.