Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Detail::TBranchProxy Class Reference

Base class for all the proxy object.

It includes the implementation of the autoloading of branches as well as all the generic setup routine.

Definition at line 74 of file TBranchProxy.h.

Public Member Functions

 TBranchProxy ()
 Constructor.
 TBranchProxy (Internal::TBranchProxyDirector *boss, const char *branchname, TBranch *branch, const char *membername, bool suppressMissingBranchError=false)
 Constructor taking the branch name, possibly of a friended tree.
 TBranchProxy (Internal::TBranchProxyDirector *boss, const char *top, const char *name, const char *membername)
 Constructor.
 TBranchProxy (Internal::TBranchProxyDirector *boss, const char *top, const char *name=nullptr)
 Constructor.
 TBranchProxy (Internal::TBranchProxyDirector *boss, TBranch *branch, const char *membername)
 Constructor.
 TBranchProxy (Internal::TBranchProxyDirector *boss, TBranchProxy *parent, const char *membername, const char *top=nullptr, const char *name=nullptr)
 Constructor.
virtual ~TBranchProxy ()
 Typical Destructor.
virtual void * GetAddressOfElement (UInt_t)
 Return the address of the element number i.
virtual Int_t GetArrayLength ()
const char * GetBranchName () const
TClassGetClass ()
void * GetClaStart (UInt_t i=0)
TVirtualCollectionProxyGetCollection ()
virtual Int_t GetEntries ()
Int_t GetOffset ()
TBranchProxyGetProxy ()
virtual void * GetStart (UInt_t=0)
void * GetStlStart (UInt_t i=0)
bool GetSuppressErrorsForMissingBranch () const
std::size_t GetValueSize () const
void * GetWhere () const
bool IsaPointer () const
bool IsInitialized ()
bool Notify ()
virtual void Print ()
 Display the content of the object.
bool Read ()
bool ReadEntries ()
void Reset ()
 Completely reset the object.
bool Setup ()
 Initialize/cache the necessary information.

Protected Attributes

union { 
   TBranchElement *   fBranchCount 
   TLeaf *   fLeafCount 
}; 
Int_t fArrayLength
TBranchfBranch
const TString fBranchName
TClassfClass
TString fClassName
TVirtualCollectionProxyfCollection
const TString fDataMember
Internal::TBranchProxyDirectorfDirector
TStreamerElementfElement
bool fHasLeafCount: 1
bool fInitialized: 1
bool fIsaPointer: 1
bool fIsClone: 1
const bool fIsMember: 1
Int_t fMemberOffset
TNotifyLink< TBranchProxyfNotify
Int_t fOffset
TBranchProxyfParent
Long64_t fRead
bool fSuppressMissingBranchError {false}
std::size_t fValueSize {}
void * fWhere

Private Types

enum class  EReadType {
  kDefault , kNoDirector , kReadParentNoCollection , kReadParentCollectionNoPointer ,
  kReadParentCollectionPointer , kReadNoParentNoBranchCountCollectionPointer , kReadNoParentNoBranchCountCollectionNoPointer , kReadNoParentNoBranchCountNoCollection ,
  kReadNoParentBranchCountCollectionPointer , kReadNoParentBranchCountCollectionNoPointer , kReadNoParentBranchCountNoCollection
}

Private Member Functions

EReadType GetReadType ()
bool ReadNoDirector ()
bool ReadNoParentBranchCountCollectionNoPointer ()
bool ReadNoParentBranchCountCollectionPointer ()
bool ReadNoParentBranchCountNoCollection ()
bool ReadNoParentNoBranchCountCollectionNoPointer ()
bool ReadNoParentNoBranchCountCollectionPointer ()
bool ReadNoParentNoBranchCountNoCollection ()
bool ReadParentCollectionNoPointer ()
bool ReadParentCollectionPointer ()
bool ReadParentNoCollection ()

Friends

class ROOT::Internal::TTreeReaderValueBase

#include <TBranchProxy.h>

Inheritance diagram for ROOT::Detail::TBranchProxy:
ROOT::Internal::TArrayProxy< TArrayType< Double_t > > ROOT::Internal::TArrayProxy< TArrayType< Double32_t > > ROOT::Internal::TArrayProxy< TArrayType< Float_t > > ROOT::Internal::TArrayProxy< TArrayType< Float16_t > > ROOT::Internal::TArrayProxy< TArrayType< UInt_t > > ROOT::Internal::TArrayProxy< TArrayType< ULong_t > > ROOT::Internal::TArrayProxy< TArrayType< ULong64_t > > ROOT::Internal::TArrayProxy< TArrayType< UShort_t > > ROOT::Internal::TArrayProxy< TArrayType< UChar_t > > ROOT::Internal::TArrayProxy< TArrayType< Int_t > > ROOT::Internal::TArrayProxy< TArrayType< Long_t > > ROOT::Internal::TArrayProxy< TArrayType< Long64_t > > ROOT::Internal::TArrayProxy< TArrayType< bool > > ROOT::Internal::TImpProxy< Double_t > ROOT::Internal::TImpProxy< Double32_t > ROOT::Internal::TImpProxy< Float_t > ROOT::Internal::TImpProxy< Float16_t > ROOT::Internal::TImpProxy< UInt_t > ROOT::Internal::TImpProxy< ULong_t > ROOT::Internal::TImpProxy< ULong64_t > ROOT::Internal::TImpProxy< UShort_t > ROOT::Internal::TImpProxy< UChar_t > ROOT::Internal::TImpProxy< Int_t > ROOT::Internal::TImpProxy< Long_t > ROOT::Internal::TImpProxy< Long64_t > ROOT::Internal::TImpProxy< Short_t > ROOT::Internal::TImpProxy< Char_t > ROOT::Internal::TImpProxy< bool > ROOT::Internal::TArrayCharProxy ROOT::Internal::TArrayProxy< T > ROOT::Internal::TClaProxy ROOT::Internal::TImpProxy< T > ROOT::Internal::TStlProxy

Member Enumeration Documentation

◆ EReadType

enum class ROOT::Detail::TBranchProxy::EReadType
strongprivate
Enumerator
kDefault 
kNoDirector 
kReadParentNoCollection 
kReadParentCollectionNoPointer 
kReadParentCollectionPointer 
kReadNoParentNoBranchCountCollectionPointer 
kReadNoParentNoBranchCountCollectionNoPointer 
kReadNoParentNoBranchCountNoCollection 
kReadNoParentBranchCountCollectionPointer 
kReadNoParentBranchCountCollectionNoPointer 
kReadNoParentBranchCountNoCollection 

Definition at line 191 of file TBranchProxy.h.

Constructor & Destructor Documentation

◆ TBranchProxy() [1/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( )

Constructor.

Definition at line 57 of file TBranchProxy.cxx.

◆ TBranchProxy() [2/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
const char * top,
const char * name = nullptr )

Constructor.

Definition at line 70 of file TBranchProxy.cxx.

◆ TBranchProxy() [3/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
const char * top,
const char * name,
const char * membername )

Constructor.

Definition at line 89 of file TBranchProxy.cxx.

◆ TBranchProxy() [4/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
Detail::TBranchProxy * parent,
const char * membername,
const char * top = nullptr,
const char * name = nullptr )

Constructor.

Definition at line 109 of file TBranchProxy.cxx.

◆ TBranchProxy() [5/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
TBranch * branch,
const char * membername )

Constructor.

Definition at line 130 of file TBranchProxy.cxx.

◆ TBranchProxy() [6/6]

ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
const char * branchname,
TBranch * branch,
const char * membername,
bool suppressMissingBranchError = false )

Constructor taking the branch name, possibly of a friended tree.

Used by TTreeReaderValue in place of TFriendProxy.

Definition at line 167 of file TBranchProxy.cxx.

◆ ~TBranchProxy()

ROOT::Detail::TBranchProxy::~TBranchProxy ( )
virtual

Typical Destructor.

Definition at line 200 of file TBranchProxy.cxx.

Member Function Documentation

◆ GetAddressOfElement()

◆ GetArrayLength()

Definition at line 420 of file TBranchProxy.h.

◆ GetBranchName()

const char * ROOT::Detail::TBranchProxy::GetBranchName ( ) const
inline

Definition at line 126 of file TBranchProxy.h.

◆ GetClass()

Definition at line 424 of file TBranchProxy.h.

◆ GetClaStart()

Definition at line 463 of file TBranchProxy.h.

◆ GetCollection()

◆ GetEntries()

◆ GetOffset()

Definition at line 553 of file TBranchProxy.h.

◆ GetProxy()

Definition at line 125 of file TBranchProxy.h.

◆ GetReadType()

Definition at line 205 of file TBranchProxy.h.

◆ GetStart()

virtual void * ROOT::Detail::TBranchProxy::GetStart ( UInt_t = 0)
inlinevirtual

Definition at line 448 of file TBranchProxy.h.

◆ GetStlStart()

Definition at line 509 of file TBranchProxy.h.

◆ GetSuppressErrorsForMissingBranch()

◆ GetValueSize()

std::size_t ROOT::Detail::TBranchProxy::GetValueSize ( ) const
inline

Definition at line 557 of file TBranchProxy.h.

◆ GetWhere()

void * ROOT::Detail::TBranchProxy::GetWhere ( ) const
inline

Definition at line 437 of file TBranchProxy.h.

◆ IsaPointer()

Definition at line 142 of file TBranchProxy.h.

◆ IsInitialized()

Definition at line 137 of file TBranchProxy.h.

◆ Notify()

Definition at line 130 of file TBranchProxy.h.

◆ Print()

void ROOT::Detail::TBranchProxy::Print ( )
virtual

Display the content of the object.

Reimplemented in ROOT::Internal::TArrayCharProxy, ROOT::Internal::TArrayProxy< T >, ROOT::Internal::TArrayProxy< TArrayType< bool > >, ROOT::Internal::TArrayProxy< TArrayType< Double32_t > >, ROOT::Internal::TArrayProxy< TArrayType< Double_t > >, ROOT::Internal::TArrayProxy< TArrayType< Float16_t > >, ROOT::Internal::TArrayProxy< TArrayType< Float_t > >, ROOT::Internal::TArrayProxy< TArrayType< Int_t > >, ROOT::Internal::TArrayProxy< TArrayType< Long64_t > >, ROOT::Internal::TArrayProxy< TArrayType< Long_t > >, ROOT::Internal::TArrayProxy< TArrayType< UChar_t > >, ROOT::Internal::TArrayProxy< TArrayType< UInt_t > >, ROOT::Internal::TArrayProxy< TArrayType< ULong64_t > >, ROOT::Internal::TArrayProxy< TArrayType< ULong_t > >, ROOT::Internal::TArrayProxy< TArrayType< UShort_t > >, ROOT::Internal::TClaProxy, ROOT::Internal::TImpProxy< T >, ROOT::Internal::TImpProxy< bool >, ROOT::Internal::TImpProxy< Char_t >, ROOT::Internal::TImpProxy< Double32_t >, ROOT::Internal::TImpProxy< Double_t >, ROOT::Internal::TImpProxy< Float16_t >, ROOT::Internal::TImpProxy< Float_t >, ROOT::Internal::TImpProxy< Int_t >, ROOT::Internal::TImpProxy< Long64_t >, ROOT::Internal::TImpProxy< Long_t >, ROOT::Internal::TImpProxy< Short_t >, ROOT::Internal::TImpProxy< UChar_t >, ROOT::Internal::TImpProxy< UInt_t >, ROOT::Internal::TImpProxy< ULong64_t >, ROOT::Internal::TImpProxy< ULong_t >, ROOT::Internal::TImpProxy< UShort_t >, and ROOT::Internal::TStlProxy.

Definition at line 230 of file TBranchProxy.cxx.

◆ Read()

Definition at line 146 of file TBranchProxy.h.

◆ ReadEntries()

Definition at line 381 of file TBranchProxy.h.

◆ ReadNoDirector()

Definition at line 237 of file TBranchProxy.h.

◆ ReadNoParentBranchCountCollectionNoPointer()

◆ ReadNoParentBranchCountCollectionPointer()

◆ ReadNoParentBranchCountNoCollection()

◆ ReadNoParentNoBranchCountCollectionNoPointer()

◆ ReadNoParentNoBranchCountCollectionPointer()

◆ ReadNoParentNoBranchCountNoCollection()

◆ ReadParentCollectionNoPointer()

◆ ReadParentCollectionPointer()

Definition at line 265 of file TBranchProxy.h.

◆ ReadParentNoCollection()

Definition at line 241 of file TBranchProxy.h.

◆ Reset()

void ROOT::Detail::TBranchProxy::Reset ( )

Completely reset the object.

Definition at line 209 of file TBranchProxy.cxx.

◆ Setup()

bool ROOT::Detail::TBranchProxy::Setup ( )

Initialize/cache the necessary information.

Definition at line 245 of file TBranchProxy.cxx.

◆ ROOT::Internal::TTreeReaderValueBase

Definition at line 189 of file TBranchProxy.h.

Member Data Documentation

◆ [union]

◆ fArrayLength

Definition at line 96 of file TBranchProxy.h.

◆ fBranch

Definition at line 98 of file TBranchProxy.h.

◆ fBranchCount

◆ fBranchName

Definition at line 85 of file TBranchProxy.h.

◆ fClass

Definition at line 92 of file TBranchProxy.h.

◆ fClassName

Definition at line 91 of file TBranchProxy.h.

◆ fCollection

◆ fDataMember

Definition at line 88 of file TBranchProxy.h.

◆ fDirector

◆ fElement

◆ fHasLeafCount

Definition at line 82 of file TBranchProxy.h.

◆ fInitialized

Definition at line 78 of file TBranchProxy.h.

◆ fIsaPointer

Definition at line 81 of file TBranchProxy.h.

◆ fIsClone

Definition at line 80 of file TBranchProxy.h.

◆ fIsMember

Definition at line 79 of file TBranchProxy.h.

◆ fLeafCount

◆ fMemberOffset

Definition at line 94 of file TBranchProxy.h.

◆ fNotify

◆ fOffset

Definition at line 95 of file TBranchProxy.h.

◆ fParent

Definition at line 86 of file TBranchProxy.h.

◆ fRead

Definition at line 106 of file TBranchProxy.h.

◆ fSuppressMissingBranchError

Definition at line 83 of file TBranchProxy.h.

◆ fValueSize

std::size_t ROOT::Detail::TBranchProxy::fValueSize {}
protected

Definition at line 111 of file TBranchProxy.h.

◆ fWhere

Definition at line 108 of file TBranchProxy.h.


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