ROOT  6.06/04
Reference Guide
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 572 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 ()
 
TIterator & operator= (const TIterator &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location! More...
 
TTreeFriendLeafIter & operator= (const TTreeFriendLeafIter &rhs)
 Overridden assignment operator. Does NOT copy the 'cursor' location! More...
 
const TCollection * GetCollection () const
 
Option_t * GetOption () const
 Returns the object option stored in the list. More...
 
TObject * Next ()
 Go the next friend element. More...
 
void Reset ()
 
Bool_t operator!= (const TIterator &) const
 Compare two iterator objects. More...
 
Bool_t operator!= (const TTreeFriendLeafIter &) const
 
TObject * operator* () const
 Return current object or nullptr. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
TObject * operator() ()
 
Bool_t operator== (const TIterator &other) const
 

Protected Member Functions

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

Protected Attributes

TTree * fTree
 
TIterator * fLeafIter
 
TIterator * fTreeIter
 
Bool_t fDirection
 

#include <TTree.h>

+ Inheritance diagram for TTreeFriendLeafIter:
+ Collaboration diagram for TTreeFriendLeafIter:

Constructor & Destructor Documentation

TTreeFriendLeafIter::TTreeFriendLeafIter ( )
inlineprotected

Definition at line 580 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 8827 of file TTree.cxx.

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTreeFriendLeafIter &  iter)

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

Definition at line 8838 of file TTree.cxx.

TTreeFriendLeafIter::~TTreeFriendLeafIter ( )
inline

Definition at line 586 of file TTree.h.

Member Function Documentation

const TCollection* TTreeFriendLeafIter::GetCollection ( ) const
inlinevirtual

Implements TIterator.

Definition at line 590 of file TTree.h.

Option_t * TTreeFriendLeafIter::GetOption ( ) const
virtual

Returns the object option stored in the list.

Reimplemented from TIterator.

Definition at line 8912 of file TTree.cxx.

TObject * TTreeFriendLeafIter::Next ( )
virtual

Go the next friend element.

Implements TIterator.

Definition at line 8873 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 594 of file TTree.h.

Definition at line 598 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 602 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 8850 of file TTree.cxx.

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

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

Definition at line 8862 of file TTree.cxx.

void TTreeFriendLeafIter::Reset ( void  )
inlinevirtual

Implements TIterator.

Definition at line 593 of file TTree.h.

Member Data Documentation

Bool_t TTreeFriendLeafIter::fDirection
protected

Definition at line 578 of file TTree.h.

Referenced by Next(), and operator=().

TIterator* TTreeFriendLeafIter::fLeafIter
protected

Definition at line 576 of file TTree.h.

Referenced by GetOption(), and Next().

TTree* TTreeFriendLeafIter::fTree
protected

Definition at line 575 of file TTree.h.

Referenced by Next().

TIterator* TTreeFriendLeafIter::fTreeIter
protected

Definition at line 577 of file TTree.h.

Referenced by Next().


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