Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TTreeFriendLeafIter Class Reference

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

Definition at line 584 of file TTree.h.

Public Member Functions

 TTreeFriendLeafIter (const TTree *t, Bool_t dir=kIterForward)
 Create a new iterator. More...
 
 TTreeFriendLeafIter (const TTreeFriendLeafIter &iter)
 Copy constructor. Does NOT copy the 'cursor' location! More...
 
 ~TTreeFriendLeafIter ()
 
const TCollectionGetCollection () const
 
Option_tGetOption () const
 Returns the object option stored in the list. More...
 
TObjectNext ()
 Go the next friend element. More...
 
Bool_t operator!= (const TIterator &) const
 Compare two iterator objects. More...
 
Bool_t operator!= (const TTreeFriendLeafIter &) const
 
TObjectoperator* () const
 Return current object or nullptr. More...
 
TIteratoroperator= (const TIterator &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location! More...
 
TTreeFriendLeafIteroperator= (const TTreeFriendLeafIter &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location! More...
 
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 More...
 
TIteratorfLeafIter
 current leaf sub-iterator. More...
 
TTreefTree
 tree being iterated More...
 
TIteratorfTreeIter
 current tree sub-iterator. More...
 

#include <TTree.h>

Inheritance diagram for TTreeFriendLeafIter:
[legend]

Constructor & Destructor Documentation

TTreeFriendLeafIter::TTreeFriendLeafIter ( )
inlineprotected

Definition at line 592 of file TTree.h.

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 9017 of file TTree.cxx.

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTreeFriendLeafIter iter)

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

Definition at line 9028 of file TTree.cxx.

TTreeFriendLeafIter::~TTreeFriendLeafIter ( )
inline

Definition at line 598 of file TTree.h.

Member Function Documentation

const TCollection* TTreeFriendLeafIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 602 of file TTree.h.

Option_t * TTreeFriendLeafIter::GetOption ( ) const
virtual

Returns the object option stored in the list.

Reimplemented from TIterator.

Definition at line 9102 of file TTree.cxx.

TObject * TTreeFriendLeafIter::Next ( )
virtual

Go the next friend element.

Implements TIterator.

Definition at line 9063 of file TTree.cxx.

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 606 of file TTree.h.

Definition at line 610 of file TTree.h.

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 614 of file TTree.h.

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

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

Reimplemented from TIterator.

Definition at line 9040 of file TTree.cxx.

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

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

Definition at line 9052 of file TTree.cxx.

void TTreeFriendLeafIter::Reset ( void  )
inlinevirtual

Implements TIterator.

Definition at line 605 of file TTree.h.

Member Data Documentation

Bool_t TTreeFriendLeafIter::fDirection
protected

iteration direction

Definition at line 590 of file TTree.h.

TIterator* TTreeFriendLeafIter::fLeafIter
protected

current leaf sub-iterator.

Definition at line 588 of file TTree.h.

TTree* TTreeFriendLeafIter::fTree
protected

tree being iterated

Definition at line 587 of file TTree.h.

TIterator* TTreeFriendLeafIter::fTreeIter
protected

current tree sub-iterator.

Definition at line 589 of file TTree.h.


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