Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTreeFriendLeafIter Class Reference

Iterator on all the leaves in a TTree and its friend.

Definition at line 665 of file TTree.h.

Public Member Functions

 TTreeFriendLeafIter (const TTree *t, Bool_t dir=kIterForward)
 Create a new iterator.
 
 TTreeFriendLeafIter (const TTreeFriendLeafIter &iter)
 Copy constructor. Does NOT copy the 'cursor' location!
 
 ~TTreeFriendLeafIter ()
 
const TCollectionGetCollection () const
 
Option_tGetOption () const
 Returns the object option stored in the list.
 
TObjectNext ()
 Go the next friend element.
 
Bool_t operator!= (const TIterator &) const
 Compare two iterator objects.
 
Bool_t operator!= (const TTreeFriendLeafIter &) const
 
TObjectoperator* () const
 Return current object or nullptr.
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location!
 
TTreeFriendLeafIteroperator= (const TTreeFriendLeafIter &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location!
 
void Reset ()
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
TObjectoperator() ()
 
Bool_t operator== (const TIterator &other) const
 

Protected Member Functions

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

Protected Attributes

Bool_t fDirection
 iteration direction
 
TIteratorfLeafIter
 current leaf sub-iterator.
 
TTreefTree
 tree being iterated
 
TIteratorfTreeIter
 current tree sub-iterator.
 

#include <TTree.h>

Inheritance diagram for TTreeFriendLeafIter:
[legend]

Constructor & Destructor Documentation

◆ TTreeFriendLeafIter() [1/3]

TTreeFriendLeafIter::TTreeFriendLeafIter ( )
inlineprotected

Definition at line 673 of file TTree.h.

◆ TTreeFriendLeafIter() [2/3]

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTree tree,
Bool_t  dir = kIterForward 
)

Create a new iterator.

By default the iteration direction is kIterForward. To go backward use kIterBackward.

Definition at line 9709 of file TTree.cxx.

◆ TTreeFriendLeafIter() [3/3]

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTreeFriendLeafIter iter)

Copy constructor. Does NOT copy the 'cursor' location!

Definition at line 9720 of file TTree.cxx.

◆ ~TTreeFriendLeafIter()

TTreeFriendLeafIter::~TTreeFriendLeafIter ( )
inline

Definition at line 679 of file TTree.h.

Member Function Documentation

◆ GetCollection()

const TCollection * TTreeFriendLeafIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 683 of file TTree.h.

◆ GetOption()

Option_t * TTreeFriendLeafIter::GetOption ( ) const
virtual

Returns the object option stored in the list.

Reimplemented from TIterator.

Definition at line 9794 of file TTree.cxx.

◆ Next()

TObject * TTreeFriendLeafIter::Next ( )
virtual

Go the next friend element.

Implements TIterator.

Definition at line 9755 of file TTree.cxx.

◆ operator!=() [1/2]

Bool_t TTreeFriendLeafIter::operator!= ( const TIterator ) const
inlinevirtual

Compare two iterator objects.

For backward compatibility reasons we have to provide this default implementation.

Reimplemented from TIterator.

Definition at line 687 of file TTree.h.

◆ operator!=() [2/2]

Bool_t TTreeFriendLeafIter::operator!= ( const TTreeFriendLeafIter ) const
inline

Definition at line 691 of file TTree.h.

◆ operator*()

TObject * TTreeFriendLeafIter::operator* ( ) const
inlinevirtual

Return current object or nullptr.

For backward compatibility reasons we have to provide this default implementation.

Reimplemented from TIterator.

Definition at line 695 of file TTree.h.

◆ operator=() [1/2]

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

Overridden assignment operator. Does NOT copy the 'cursor' location!

Implements TIterator.

Definition at line 9732 of file TTree.cxx.

◆ operator=() [2/2]

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

Overridden assignment operator. Does NOT copy the 'cursor' location!

Definition at line 9744 of file TTree.cxx.

◆ Reset()

void TTreeFriendLeafIter::Reset ( )
inlinevirtual

Implements TIterator.

Definition at line 686 of file TTree.h.

Member Data Documentation

◆ fDirection

Bool_t TTreeFriendLeafIter::fDirection
protected

iteration direction

Definition at line 671 of file TTree.h.

◆ fLeafIter

TIterator* TTreeFriendLeafIter::fLeafIter
protected

current leaf sub-iterator.

Definition at line 669 of file TTree.h.

◆ fTree

TTree* TTreeFriendLeafIter::fTree
protected

tree being iterated

Definition at line 668 of file TTree.h.

◆ fTreeIter

TIterator* TTreeFriendLeafIter::fTreeIter
protected

current tree sub-iterator.

Definition at line 670 of file TTree.h.

Libraries for TTreeFriendLeafIter:

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