Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TBtreeIter Class Reference

Iterator of btree.

Definition at line 334 of file TBtree.h.

Public Member Functions

 TBtreeIter (const TBtree *t, Bool_t dir=kIterForward)
 Create a B-tree iterator. More...
 
 TBtreeIter (const TBtreeIter &iter)
 Copy ctor. More...
 
 ~TBtreeIter ()
 
const TCollectionGetCollection () const
 
TObjectNext ()
 Get next object from B-tree. Returns 0 when no more objects in tree. More...
 
Bool_t operator!= (const TIterator &aIter) const
 This operator compares two TIterator objects. More...
 
Bool_t operator!= (const TBtreeIter &aIter) const
 This operator compares two TBtreeIter objects. More...
 
TObjectoperator* () const
 Return current object or nullptr. More...
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. More...
 
TBtreeIteroperator= (const TBtreeIter &rhs)
 Overloaded assignment operator. More...
 
void Reset ()
 Reset the B-tree iterator. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual Option_tGetOption () const
 
TObjectoperator() ()
 
Bool_t operator== (const TIterator &other) const
 

Private Member Functions

 TBtreeIter ()
 

Private Attributes

Int_t fCurCursor
 
Int_t fCursor
 
Bool_t fDirection
 
const TBtreefTree
 

Additional Inherited Members

- Protected Member Functions inherited from TIterator
 TIterator ()
 
 TIterator (const TIterator &)
 

#include <TBtree.h>

Inheritance diagram for TBtreeIter:
[legend]

Constructor & Destructor Documentation

◆ TBtreeIter() [1/3]

TBtreeIter::TBtreeIter ( )
inlineprivate

Definition at line 345 of file TBtree.h.

◆ TBtreeIter() [2/3]

TBtreeIter::TBtreeIter ( const TBtree t,
Bool_t  dir = kIterForward 
)

Create a B-tree iterator.

Definition at line 577 of file TBtree.cxx.

◆ TBtreeIter() [3/3]

TBtreeIter::TBtreeIter ( const TBtreeIter iter)

Copy ctor.

Definition at line 586 of file TBtree.cxx.

◆ ~TBtreeIter()

TBtreeIter::~TBtreeIter ( )
inline

Definition at line 350 of file TBtree.h.

Member Function Documentation

◆ GetCollection()

const TCollection* TBtreeIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 354 of file TBtree.h.

◆ Next()

TObject * TBtreeIter::Next ( )
virtual

Get next object from B-tree. Returns 0 when no more objects in tree.

Implements TIterator.

Definition at line 639 of file TBtree.cxx.

◆ operator!=() [1/2]

Bool_t TBtreeIter::operator!= ( const TIterator aIter) const
virtual

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 655 of file TBtree.cxx.

◆ operator!=() [2/2]

Bool_t TBtreeIter::operator!= ( const TBtreeIter aIter) const

This operator compares two TBtreeIter objects.

Definition at line 667 of file TBtree.cxx.

◆ operator*()

TObject * TBtreeIter::operator* ( ) const
virtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 675 of file TBtree.cxx.

◆ operator=() [1/2]

TIterator & TBtreeIter::operator= ( const TIterator rhs)
virtual

Overridden assignment operator.

Reimplemented from TIterator.

Definition at line 597 of file TBtree.cxx.

◆ operator=() [2/2]

TBtreeIter & TBtreeIter::operator= ( const TBtreeIter rhs)

Overloaded assignment operator.

Definition at line 612 of file TBtree.cxx.

◆ Reset()

void TBtreeIter::Reset ( void  )
virtual

Reset the B-tree iterator.

Implements TIterator.

Definition at line 626 of file TBtree.cxx.

Member Data Documentation

◆ fCurCursor

Int_t TBtreeIter::fCurCursor
private

Definition at line 341 of file TBtree.h.

◆ fCursor

Int_t TBtreeIter::fCursor
private

Definition at line 342 of file TBtree.h.

◆ fDirection

Bool_t TBtreeIter::fDirection
private

Definition at line 343 of file TBtree.h.

◆ fTree

const TBtree* TBtreeIter::fTree
private

Definition at line 340 of file TBtree.h.

Libraries for TBtreeIter:
[legend]

The documentation for this class was generated from the following files: