Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::TTreeReaderFast::Iterator_t Class Reference

Definition at line 45 of file TTreeReaderFast.hxx.

Public Types

using const_pointer = const Long64_t *
 
using difference_type = Long_t
 
using iterator_category = std::input_iterator_tag
 
using pointer = const Long64_t *
 
using reference = const Long64_t &
 
using value_type = const Long64_t
 

Public Member Functions

 Iterator_t ()
 Default-initialize the iterator as "past the end".
 
 Iterator_t (TTreeReaderFast &reader, Long64_t first)
 Initialize the iterator with the reader it steers and a tree entry number; -1 is invalid.
 
bool operator!= (const Iterator_t &lhs) const
 Compare two iterators for inequality.
 
Long64_t operator* ()
 Set the entry number in the reader and return it.
 
Long64_t operator* () const
 
Iterator_toperator++ ()
 Increment the iterator (prefix ++i).
 
Iterator_t operator++ (int)
 Increment the iterator (postfix i++).
 
bool operator== (const Iterator_t &lhs) const
 Compare two iterators for equality.
 

Private Member Functions

bool IsValid () const
 Whether the iterator points to a valid entry.
 

Private Attributes

Int_t fCount {0}
 Number of entries inside this cluster.
 
Long64_t fEntry {-1}
 Entry number of the tree referenced by this iterator; -1 is invalid.
 
Int_tfIdx {nullptr}
 Current offset inside this cluster.
 
TTreeReaderFastfReader {nullptr}
 The reader we select the entries on.
 

#include <ROOT/TTreeReaderFast.hxx>

Member Typedef Documentation

◆ const_pointer

◆ difference_type

◆ iterator_category

Definition at line 56 of file TTreeReaderFast.hxx.

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator_t() [1/2]

ROOT::Experimental::TTreeReaderFast::Iterator_t::Iterator_t ( )
inline

Default-initialize the iterator as "past the end".

Definition at line 64 of file TTreeReaderFast.hxx.

◆ Iterator_t() [2/2]

ROOT::Experimental::TTreeReaderFast::Iterator_t::Iterator_t ( TTreeReaderFast reader,
Long64_t  first 
)
inline

Initialize the iterator with the reader it steers and a tree entry number; -1 is invalid.

Definition at line 68 of file TTreeReaderFast.hxx.

Member Function Documentation

◆ IsValid()

bool ROOT::Experimental::TTreeReaderFast::Iterator_t::IsValid ( ) const
inlineprivate

Whether the iterator points to a valid entry.

Definition at line 53 of file TTreeReaderFast.hxx.

◆ operator!=()

bool ROOT::Experimental::TTreeReaderFast::Iterator_t::operator!= ( const Iterator_t lhs) const
inline

Compare two iterators for inequality.

Definition at line 84 of file TTreeReaderFast.hxx.

◆ operator*() [1/2]

Long64_t ROOT::Experimental::TTreeReaderFast::Iterator_t::operator* ( )
inline

Set the entry number in the reader and return it.

Definition at line 113 of file TTreeReaderFast.hxx.

◆ operator*() [2/2]

Long64_t ROOT::Experimental::TTreeReaderFast::Iterator_t::operator* ( ) const
inline

Definition at line 117 of file TTreeReaderFast.hxx.

◆ operator++() [1/2]

Iterator_t & ROOT::Experimental::TTreeReaderFast::Iterator_t::operator++ ( )
inline

Increment the iterator (prefix ++i).

Definition at line 96 of file TTreeReaderFast.hxx.

◆ operator++() [2/2]

Iterator_t ROOT::Experimental::TTreeReaderFast::Iterator_t::operator++ ( int  )
inline

Increment the iterator (postfix i++).

Definition at line 89 of file TTreeReaderFast.hxx.

◆ operator==()

bool ROOT::Experimental::TTreeReaderFast::Iterator_t::operator== ( const Iterator_t lhs) const
inline

Compare two iterators for equality.

Definition at line 77 of file TTreeReaderFast.hxx.

Member Data Documentation

◆ fCount

Int_t ROOT::Experimental::TTreeReaderFast::Iterator_t::fCount {0}
private

Number of entries inside this cluster.

Definition at line 48 of file TTreeReaderFast.hxx.

◆ fEntry

Long64_t ROOT::Experimental::TTreeReaderFast::Iterator_t::fEntry {-1}
private

Entry number of the tree referenced by this iterator; -1 is invalid.

Definition at line 49 of file TTreeReaderFast.hxx.

◆ fIdx

Int_t* ROOT::Experimental::TTreeReaderFast::Iterator_t::fIdx {nullptr}
private

Current offset inside this cluster.

Definition at line 47 of file TTreeReaderFast.hxx.

◆ fReader

TTreeReaderFast* ROOT::Experimental::TTreeReaderFast::Iterator_t::fReader {nullptr}
private

The reader we select the entries on.

Definition at line 50 of file TTreeReaderFast.hxx.

  • tree/treeplayer/inc/ROOT/TTreeReaderFast.hxx