12 #ifndef ROOT_TTreeReaderArray 13 #define ROOT_TTreeReaderArray 25 #ifndef ROOT_TTreeReaderValue 28 #ifndef ROOT_TTreeReaderUtils 71 public std::iterator<std::input_iterator_tag, T, long> {
74 fIndex(0), fArray(0) {}
78 fIndex(idx), fArray(array) {}
95 return !(*
this == lhs);
109 if (fIndex >= fArray->
GetSize()) {
119 R__ASSERT(fArray &&
"invalid iterator!");
120 return fArray->
At(fIndex);
138 return IsEmpty() ? Iterator_t() : Iterator_t(0,
this);
140 Iterator_t
end()
const {
return Iterator_t(); }
143 #define R__TTreeReaderArray_TypeString(T) #T 145 #undef R__TTreeReaderArray_TypeString 150 #endif // ROOT_TTreeReaderArray A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
TTreeReaderArray(TTreeReader &tr, const char *branchname)
const char * GetBranchContentDataType(TBranch *branch, TString &contentTypeName, TDictionary *&dict)
Access a branch's collection content (not the collection itself) through a proxy. ...
TTreeReader is a simple, robust and fast interface to read values from a TTree, TChain or TNtuple...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
bool operator!=(const Iterator_t &lhs) const
virtual void CreateProxy()
Create the proxy object for our branch.
Iterator_t & operator++()
Detail::TBranchProxy * GetProxy() const
TTreeReaderArrayBase(TTreeReader *reader, const char *branchname, TDictionary *dict)
bool operator==(const Iterator_t &lhs) const
Iterator_t(size_t idx, TTreeReaderArray *array)
virtual const char * GetDerivedTypeName() const
TTreeReaderValueBase::EReadStatus fReadStatus
bool GetBranchAndLeaf(TBranch *&branch, TLeaf *&myLeaf, TDictionary *&branchActualType)
Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error.
This class defines an abstract interface that must be implemented by all classes that contain diction...
virtual EReadStatus GetReadStatus() const
Extracts array data from a TTree.
TTreeReaderArray * fArray
void * UntypedAt(size_t idx) const
T & operator[](size_t idx)
#define R__TTreeReaderArray_TypeString(T)
TVirtualCollectionReader * fImpl
virtual void * At(Detail::TBranchProxy *, size_t)=0
A TTree is a list of TBranches.
Iterator_t operator++(int)
void SetImpl(TBranch *branch, TLeaf *myLeaf)
Create the TVirtualCollectionReader object for our branch.
virtual size_t GetSize(Detail::TBranchProxy *)=0