Logo ROOT  
Reference Guide
TBtreeIter Class Reference

Iterator of btree.

Definition at line 334 of file TBtree.h.

Public Types

using const_pointer = const TObject **
 
using difference_type = std::ptrdiff_t
 
using iterator_category = std::bidirectional_iterator_tag
 
using pointer = TObject **
 
using reference = const TObject *&
 
using value_type = TObject *
 

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 override
 
TClassIsA () const override
 
TObjectNext () override
 Get next object from B-tree. Returns 0 when no more objects in tree. More...
 
Bool_t operator!= (const TBtreeIter &aIter) const
 This operator compares two TBtreeIter objects. More...
 
Bool_t operator!= (const TIterator &aIter) const override
 This operator compares two TIterator objects. More...
 
TObjectoperator* () const override
 Return current object or nullptr. More...
 
TBtreeIteroperator= (const TBtreeIter &rhs)
 Overloaded assignment operator. More...
 
TIteratoroperator= (const TIterator &rhs) override
 Overridden assignment operator. More...
 
void Reset () override
 Reset the B-tree iterator. More...
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual const TCollectionGetCollection () const =0
 
virtual Option_tGetOption () const
 
virtual TClassIsA () const
 
virtual TObjectNext ()=0
 
virtual Bool_t operator!= (const TIterator &) const
 Compare two iterator objects. More...
 
TObjectoperator() ()
 
virtual TObjectoperator* () const
 Return current object or nullptr. More...
 
virtual TIteratoroperator= (const TIterator &)=0
 
Bool_t operator== (const TIterator &other) const
 
virtual void Reset ()=0
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TIterator
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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]

Member Typedef Documentation

◆ const_pointer

Definition at line 349 of file TBtree.h.

◆ difference_type

using TBtreeIter::difference_type = std::ptrdiff_t

Definition at line 347 of file TBtree.h.

◆ iterator_category

using TBtreeIter::iterator_category = std::bidirectional_iterator_tag

Definition at line 345 of file TBtree.h.

◆ pointer

Definition at line 348 of file TBtree.h.

◆ reference

using TBtreeIter::reference = const TObject *&

Definition at line 350 of file TBtree.h.

◆ value_type

Definition at line 346 of file TBtree.h.

Constructor & Destructor Documentation

◆ TBtreeIter() [1/3]

TBtreeIter::TBtreeIter ( )
inlineprivate

Definition at line 342 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 354 of file TBtree.h.

Member Function Documentation

◆ Class()

static TClass * TBtreeIter::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TBtreeIter::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t TBtreeIter::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 365 of file TBtree.h.

◆ DeclFileName()

static const char * TBtreeIter::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 365 of file TBtree.h.

◆ GetCollection()

const TCollection * TBtreeIter::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 358 of file TBtree.h.

◆ IsA()

TClass * TBtreeIter::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TIterator.

Definition at line 365 of file TBtree.h.

◆ Next()

TObject * TBtreeIter::Next ( )
overridevirtual

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 TBtreeIter aIter) const

This operator compares two TBtreeIter objects.

Definition at line 667 of file TBtree.cxx.

◆ operator!=() [2/2]

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

This operator compares two TIterator objects.

Reimplemented from TIterator.

Definition at line 655 of file TBtree.cxx.

◆ operator*()

TObject * TBtreeIter::operator* ( ) const
overridevirtual

Return current object or nullptr.

Reimplemented from TIterator.

Definition at line 675 of file TBtree.cxx.

◆ operator=() [1/2]

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

Overloaded assignment operator.

Definition at line 612 of file TBtree.cxx.

◆ operator=() [2/2]

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

Overridden assignment operator.

Implements TIterator.

Definition at line 597 of file TBtree.cxx.

◆ Reset()

void TBtreeIter::Reset ( void  )
overridevirtual

Reset the B-tree iterator.

Implements TIterator.

Definition at line 626 of file TBtree.cxx.

◆ Streamer()

void TBtreeIter::Streamer ( TBuffer )
overridevirtual

Reimplemented from TIterator.

◆ StreamerNVirtual()

void TBtreeIter::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 365 of file TBtree.h.

Member Data Documentation

◆ fCurCursor

Int_t TBtreeIter::fCurCursor
private

Definition at line 338 of file TBtree.h.

◆ fCursor

Int_t TBtreeIter::fCursor
private

Definition at line 339 of file TBtree.h.

◆ fDirection

Bool_t TBtreeIter::fDirection
private

Definition at line 340 of file TBtree.h.

◆ fTree

const TBtree* TBtreeIter::fTree
private

Definition at line 337 of file TBtree.h.


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