Logo ROOT  
Reference Guide
ROOT::Internal::TTreeReaderArrayBase Class Reference

Base class of TTreeReaderArray.

Definition at line 29 of file TTreeReaderArray.h.

Public Member Functions

 TTreeReaderArrayBase (TTreeReader *reader, const char *branchname, TDictionary *dict)
 
virtual EReadStatus GetReadStatus () const
 
std::size_t GetSize () const
 
Bool_t IsEmpty () const
 
- Public Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
virtual ~TTreeReaderValueBase ()
 Unregister from tree reader, cleanup. More...
 
voidGetAddress ()
 Returns the memory address of the object being read. More...
 
const char * GetBranchName () const
 
TLeafGetLeaf ()
 If we are reading a leaf, return the corresponding TLeaf. More...
 
virtual EReadStatus GetReadStatus () const
 
ESetupStatus GetSetupStatus () const
 
Bool_t IsValid () const
 
EReadStatus ProxyRead ()
 
EReadStatus ProxyReadDefaultImpl ()
 
template<BranchProxyRead_t Func>
ROOT::Internal::TTreeReaderValueBase::EReadStatus ProxyReadTemplate ()
 Try to read the value from the TBranchProxy, returns the status of the read. More...
 

Protected Member Functions

virtual void CreateProxy ()
 Create the proxy object for our branch. More...
 
bool GetBranchAndLeaf (TBranch *&branch, TLeaf *&myLeaf, TDictionary *&branchActualType)
 Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error. More...
 
const char * GetBranchContentDataType (TBranch *branch, TString &contentTypeName, TDictionary *&dict)
 Access a branch's collection content (not the collection itself) through a proxy. More...
 
void SetImpl (TBranch *branch, TLeaf *myLeaf)
 Create the TVirtualCollectionReader object for our branch. More...
 
voidUntypedAt (std::size_t idx) const
 
- Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
 TTreeReaderValueBase (const TTreeReaderValueBase &)
 Copy-construct. More...
 
 TTreeReaderValueBase (TTreeReader *reader, const char *branchname, TDictionary *dict)
 Construct a tree value reader and register it with the reader object. More...
 
virtual void CreateProxy ()
 Create the proxy object for our branch. More...
 
virtual const char * GetDerivedTypeName () const =0
 
Detail::TBranchProxyGetProxy () const
 
void MarkTreeReaderUnavailable ()
 
void NotifyNewTree (TTree *newTree)
 The TTreeReader has switched to a new TTree. Update the leaf. More...
 
TTreeReaderValueBaseoperator= (const TTreeReaderValueBase &)
 Copy-assign. More...
 
void RegisterWithTreeReader ()
 Register with tree reader. More...
 
TBranchSearchBranchWithCompositeName (TLeaf *&myleaf, TDictionary *&branchActualType, std::string &err)
 Search a branch the name of which contains a ".". More...
 

Protected Attributes

std::unique_ptr< TVirtualCollectionReaderfImpl
 
- Protected Attributes inherited from ROOT::Internal::TTreeReaderValueBase
TString fBranchName
 
TDictionaryfDict
 
int fHaveLeaf: 1
 
int fHaveStaticClassOffsets: 1
 
TLeaffLeaf = nullptr
 
TString fLeafName
 
Detail::TBranchProxyfProxy = nullptr
 
Read_t fProxyReadFunc = &TTreeReaderValueBase::ProxyReadDefaultImpl
 ! Pointer to the Read implementation to use. More...
 
EReadStatus fReadStatus: 2
 
ESetupStatus fSetupStatus = kSetupNotSetup
 
std::vector< Long64_tfStaticClassOffsets
 
TTreeReaderfTreeReader
 

Additional Inherited Members

- Public Types inherited from ROOT::Internal::TTreeReaderValueBase
typedef Bool_t(ROOT::Detail::TBranchProxy::* BranchProxyRead_t) ()
 
enum  EReadStatus { kReadSuccess = 0 , kReadNothingYet , kReadError }
 
enum  ESetupStatus {
  kSetupNotSetup = -7 , kSetupTreeDestructed = -8 , kSetupMakeClassModeMismatch = -7 , kSetupMissingCounterBranch = -6 ,
  kSetupMissingBranch = -5 , kSetupInternalError = -4 , kSetupMissingDictionary = -3 , kSetupMismatch = -2 ,
  kSetupNotACollection = -1 , kSetupMatch = 0 , kSetupMatchBranch = 0 , kSetupNoCheck = 5 ,
  kSetupMatchLeaf = 6
}
 
- Protected Types inherited from ROOT::Internal::TTreeReaderValueBase
typedef EReadStatus(TTreeReaderValueBase::* Read_t) ()
 
- Static Protected Member Functions inherited from ROOT::Internal::TTreeReaderValueBase
static const char * GetBranchDataType (TBranch *branch, TDictionary *&dict, TDictionary const *curDict)
 Retrieve the type of data stored by branch; put its dictionary into dict, return its type name. More...
 
static std::string GetElementTypeName (const std::type_info &ti)
 Stringify the template argument. More...
 

#include <TTreeReaderArray.h>

Inheritance diagram for ROOT::Internal::TTreeReaderArrayBase:
[legend]

Constructor & Destructor Documentation

◆ TTreeReaderArrayBase()

ROOT::Internal::TTreeReaderArrayBase::TTreeReaderArrayBase ( TTreeReader reader,
const char *  branchname,
TDictionary dict 
)
inline

Definition at line 31 of file TTreeReaderArray.h.

Member Function Documentation

◆ CreateProxy()

void ROOT::Internal::TTreeReaderArrayBase::CreateProxy ( )
protectedvirtual

Create the proxy object for our branch.

Reimplemented from ROOT::Internal::TTreeReaderValueBase.

Definition at line 340 of file TTreeReaderArray.cxx.

◆ GetBranchAndLeaf()

bool ROOT::Internal::TTreeReaderArrayBase::GetBranchAndLeaf ( TBranch *&  branch,
TLeaf *&  myLeaf,
TDictionary *&  branchActualType 
)
protected

Determine the branch / leaf and its type; reset fProxy / fSetupStatus on error.

Definition at line 499 of file TTreeReaderArray.cxx.

◆ GetBranchContentDataType()

const char * ROOT::Internal::TTreeReaderArrayBase::GetBranchContentDataType ( TBranch branch,
TString contentTypeName,
TDictionary *&  dict 
)
protected

Access a branch's collection content (not the collection itself) through a proxy.

Retrieve the type of data contained in the collection stored by branch; put its dictionary into dict, If there is no dictionary, put its type name into contentTypeName. The contentTypeName is set to NULL if the branch does not contain a collection; in that case, the type of the branch is returned. In all other cases, NULL is returned.

Definition at line 699 of file TTreeReaderArray.cxx.

◆ GetReadStatus()

virtual EReadStatus ROOT::Internal::TTreeReaderArrayBase::GetReadStatus ( ) const
inlinevirtual

Reimplemented from ROOT::Internal::TTreeReaderValueBase.

Definition at line 38 of file TTreeReaderArray.h.

◆ GetSize()

std::size_t ROOT::Internal::TTreeReaderArrayBase::GetSize ( ) const
inline

Definition at line 35 of file TTreeReaderArray.h.

◆ IsEmpty()

Bool_t ROOT::Internal::TTreeReaderArrayBase::IsEmpty ( ) const
inline

Definition at line 36 of file TTreeReaderArray.h.

◆ SetImpl()

void ROOT::Internal::TTreeReaderArrayBase::SetImpl ( TBranch branch,
TLeaf myLeaf 
)
protected

Create the TVirtualCollectionReader object for our branch.

Definition at line 564 of file TTreeReaderArray.cxx.

◆ UntypedAt()

void * ROOT::Internal::TTreeReaderArrayBase::UntypedAt ( std::size_t  idx) const
inlineprotected

Definition at line 41 of file TTreeReaderArray.h.

Member Data Documentation

◆ fImpl

std::unique_ptr<TVirtualCollectionReader> ROOT::Internal::TTreeReaderArrayBase::fImpl
protected

Definition at line 50 of file TTreeReaderArray.h.

Libraries for ROOT::Internal::TTreeReaderArrayBase:
[legend]

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