Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TTreeFriendLeafIter Class Reference

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

Definition at line 716 of file TTree.h.

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

◆ TTreeFriendLeafIter() [2/3]

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTree * tree,
bool dir = kIterForward )

Create a new iterator.

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

Definition at line 9769 of file TTree.cxx.

◆ TTreeFriendLeafIter() [3/3]

TTreeFriendLeafIter::TTreeFriendLeafIter ( const TTreeFriendLeafIter & iter)

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

Definition at line 9780 of file TTree.cxx.

◆ ~TTreeFriendLeafIter()

TTreeFriendLeafIter::~TTreeFriendLeafIter ( )
inlineoverride

Definition at line 730 of file TTree.h.

Member Function Documentation

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

static constexpr Version_t TTreeFriendLeafIter::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 750 of file TTree.h.

◆ DeclFileName()

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

Definition at line 750 of file TTree.h.

◆ GetCollection()

const TCollection * TTreeFriendLeafIter::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 734 of file TTree.h.

◆ GetOption()

Option_t * TTreeFriendLeafIter::GetOption ( ) const
overridevirtual

Returns the object option stored in the list.

Reimplemented from TIterator.

Definition at line 9854 of file TTree.cxx.

◆ IsA()

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

Reimplemented from TIterator.

Definition at line 750 of file TTree.h.

◆ Next()

TObject * TTreeFriendLeafIter::Next ( )
overridevirtual

Go the next friend element.

Implements TIterator.

Definition at line 9815 of file TTree.cxx.

◆ operator!=() [1/2]

bool TTreeFriendLeafIter::operator!= ( const TIterator & ) const
inlineoverridevirtual

Compare two iterator objects.

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

Reimplemented from TIterator.

Definition at line 738 of file TTree.h.

◆ operator!=() [2/2]

bool TTreeFriendLeafIter::operator!= ( const TTreeFriendLeafIter & ) const
inline

Definition at line 742 of file TTree.h.

◆ operator*()

TObject * TTreeFriendLeafIter::operator* ( ) const
inlineoverridevirtual

Return current object or nullptr.

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

Reimplemented from TIterator.

Definition at line 746 of file TTree.h.

◆ operator=() [1/2]

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

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

Implements TIterator.

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

◆ Reset()

void TTreeFriendLeafIter::Reset ( )
inlineoverridevirtual

Implements TIterator.

Definition at line 737 of file TTree.h.

◆ Streamer()

void TTreeFriendLeafIter::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TIterator.

◆ StreamerNVirtual()

void TTreeFriendLeafIter::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 750 of file TTree.h.

Member Data Documentation

◆ fDirection

bool TTreeFriendLeafIter::fDirection
protected

iteration direction

Definition at line 722 of file TTree.h.

◆ fLeafIter

TIterator* TTreeFriendLeafIter::fLeafIter
protected

current leaf sub-iterator.

Definition at line 720 of file TTree.h.

◆ fTree

TTree* TTreeFriendLeafIter::fTree
protected

tree being iterated

Definition at line 719 of file TTree.h.

◆ fTreeIter

TIterator* TTreeFriendLeafIter::fTreeIter
protected

current tree sub-iterator.

Definition at line 721 of file TTree.h.

Libraries for TTreeFriendLeafIter:

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