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
 
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}
 
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:
[legend]

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 189 of file TBranchProxy.h.

Constructor & Destructor Documentation

◆ TBranchProxy() [1/6]

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

Constructor.

Definition at line 58 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 71 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 90 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 110 of file TBranchProxy.cxx.

◆ TBranchProxy() [5/6]

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

Constructor.

Definition at line 131 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 168 of file TBranchProxy.cxx.

◆ ~TBranchProxy()

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

Typical Destructor.

Definition at line 201 of file TBranchProxy.cxx.

Member Function Documentation

◆ GetAddressOfElement()

virtual void * ROOT::Detail::TBranchProxy::GetAddressOfElement ( UInt_t  )
inlinevirtual

Return the address of the element number i.

Returns nullptr for non-collections. It assumed that Setip() has been called.

Reimplemented in ROOT::Internal::TArrayCharProxy, ROOT::Internal::TClaProxy, ROOT::Internal::TStlProxy, and ROOT::Internal::TArrayProxy< T >.

Definition at line 439 of file TBranchProxy.h.

◆ GetArrayLength()

virtual Int_t ROOT::Detail::TBranchProxy::GetArrayLength ( )
inlinevirtual

Definition at line 418 of file TBranchProxy.h.

◆ GetBranchName()

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

Definition at line 124 of file TBranchProxy.h.

◆ GetClass()

TClass * ROOT::Detail::TBranchProxy::GetClass ( )
inline

Definition at line 422 of file TBranchProxy.h.

◆ GetClaStart()

void * ROOT::Detail::TBranchProxy::GetClaStart ( UInt_t  i = 0)
inline

Definition at line 461 of file TBranchProxy.h.

◆ GetCollection()

TVirtualCollectionProxy * ROOT::Detail::TBranchProxy::GetCollection ( )
inline

Definition at line 443 of file TBranchProxy.h.

◆ GetEntries()

virtual Int_t ROOT::Detail::TBranchProxy::GetEntries ( )
inlinevirtual

◆ GetOffset()

Int_t ROOT::Detail::TBranchProxy::GetOffset ( )
inline

Definition at line 551 of file TBranchProxy.h.

◆ GetProxy()

TBranchProxy * ROOT::Detail::TBranchProxy::GetProxy ( )
inline

Definition at line 123 of file TBranchProxy.h.

◆ GetReadType()

EReadType ROOT::Detail::TBranchProxy::GetReadType ( )
inlineprivate

Definition at line 203 of file TBranchProxy.h.

◆ GetStart()

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

Definition at line 446 of file TBranchProxy.h.

◆ GetStlStart()

void * ROOT::Detail::TBranchProxy::GetStlStart ( UInt_t  i = 0)
inline

Definition at line 507 of file TBranchProxy.h.

◆ GetSuppressErrorsForMissingBranch()

bool ROOT::Detail::TBranchProxy::GetSuppressErrorsForMissingBranch ( ) const
inline

Definition at line 553 of file TBranchProxy.h.

◆ GetWhere()

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

Definition at line 435 of file TBranchProxy.h.

◆ IsaPointer()

bool ROOT::Detail::TBranchProxy::IsaPointer ( ) const
inline

Definition at line 140 of file TBranchProxy.h.

◆ IsInitialized()

bool ROOT::Detail::TBranchProxy::IsInitialized ( )
inline

Definition at line 135 of file TBranchProxy.h.

◆ Notify()

bool ROOT::Detail::TBranchProxy::Notify ( )
inline

Definition at line 128 of file TBranchProxy.h.

◆ Print()

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

◆ Read()

bool ROOT::Detail::TBranchProxy::Read ( )
inline

Definition at line 144 of file TBranchProxy.h.

◆ ReadEntries()

bool ROOT::Detail::TBranchProxy::ReadEntries ( )
inline

Definition at line 379 of file TBranchProxy.h.

◆ ReadNoDirector()

bool ROOT::Detail::TBranchProxy::ReadNoDirector ( )
inlineprivate

Definition at line 235 of file TBranchProxy.h.

◆ ReadNoParentBranchCountCollectionNoPointer()

bool ROOT::Detail::TBranchProxy::ReadNoParentBranchCountCollectionNoPointer ( )
inlineprivate

Definition at line 343 of file TBranchProxy.h.

◆ ReadNoParentBranchCountCollectionPointer()

bool ROOT::Detail::TBranchProxy::ReadNoParentBranchCountCollectionPointer ( )
inlineprivate

Definition at line 325 of file TBranchProxy.h.

◆ ReadNoParentBranchCountNoCollection()

bool ROOT::Detail::TBranchProxy::ReadNoParentBranchCountNoCollection ( )
inlineprivate

Definition at line 361 of file TBranchProxy.h.

◆ ReadNoParentNoBranchCountCollectionNoPointer()

bool ROOT::Detail::TBranchProxy::ReadNoParentNoBranchCountCollectionNoPointer ( )
inlineprivate

Definition at line 293 of file TBranchProxy.h.

◆ ReadNoParentNoBranchCountCollectionPointer()

bool ROOT::Detail::TBranchProxy::ReadNoParentNoBranchCountCollectionPointer ( )
inlineprivate

Definition at line 276 of file TBranchProxy.h.

◆ ReadNoParentNoBranchCountNoCollection()

bool ROOT::Detail::TBranchProxy::ReadNoParentNoBranchCountNoCollection ( )
inlineprivate

Definition at line 310 of file TBranchProxy.h.

◆ ReadParentCollectionNoPointer()

bool ROOT::Detail::TBranchProxy::ReadParentCollectionNoPointer ( )
inlineprivate

Definition at line 250 of file TBranchProxy.h.

◆ ReadParentCollectionPointer()

bool ROOT::Detail::TBranchProxy::ReadParentCollectionPointer ( )
inlineprivate

Definition at line 263 of file TBranchProxy.h.

◆ ReadParentNoCollection()

bool ROOT::Detail::TBranchProxy::ReadParentNoCollection ( )
inlineprivate

Definition at line 239 of file TBranchProxy.h.

◆ Reset()

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

Completely reset the object.

Definition at line 210 of file TBranchProxy.cxx.

◆ Setup()

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

Initialize/cache the necessary information.

Definition at line 246 of file TBranchProxy.cxx.

Friends And Related Symbol Documentation

◆ ROOT::Internal::TTreeReaderValueBase

Definition at line 187 of file TBranchProxy.h.

Member Data Documentation

◆ [union]

◆ fArrayLength

Int_t ROOT::Detail::TBranchProxy::fArrayLength
protected

Definition at line 96 of file TBranchProxy.h.

◆ fBranch

TBranch* ROOT::Detail::TBranchProxy::fBranch
protected

Definition at line 98 of file TBranchProxy.h.

◆ fBranchCount

TBranchElement* ROOT::Detail::TBranchProxy::fBranchCount

Definition at line 100 of file TBranchProxy.h.

◆ fBranchName

const TString ROOT::Detail::TBranchProxy::fBranchName
protected

Definition at line 85 of file TBranchProxy.h.

◆ fClass

TClass* ROOT::Detail::TBranchProxy::fClass
protected

Definition at line 92 of file TBranchProxy.h.

◆ fClassName

TString ROOT::Detail::TBranchProxy::fClassName
protected

Definition at line 91 of file TBranchProxy.h.

◆ fCollection

TVirtualCollectionProxy* ROOT::Detail::TBranchProxy::fCollection
protected

Definition at line 109 of file TBranchProxy.h.

◆ fDataMember

const TString ROOT::Detail::TBranchProxy::fDataMember
protected

Definition at line 88 of file TBranchProxy.h.

◆ fDirector

Internal::TBranchProxyDirector* ROOT::Detail::TBranchProxy::fDirector
protected

Definition at line 76 of file TBranchProxy.h.

◆ fElement

TStreamerElement* ROOT::Detail::TBranchProxy::fElement
protected

Definition at line 93 of file TBranchProxy.h.

◆ fHasLeafCount

bool ROOT::Detail::TBranchProxy::fHasLeafCount
protected

Definition at line 82 of file TBranchProxy.h.

◆ fInitialized

bool ROOT::Detail::TBranchProxy::fInitialized
protected

Definition at line 78 of file TBranchProxy.h.

◆ fIsaPointer

bool ROOT::Detail::TBranchProxy::fIsaPointer
protected

Definition at line 81 of file TBranchProxy.h.

◆ fIsClone

bool ROOT::Detail::TBranchProxy::fIsClone
protected

Definition at line 80 of file TBranchProxy.h.

◆ fIsMember

const bool ROOT::Detail::TBranchProxy::fIsMember
protected

Definition at line 79 of file TBranchProxy.h.

◆ fLeafCount

TLeaf* ROOT::Detail::TBranchProxy::fLeafCount

Definition at line 101 of file TBranchProxy.h.

◆ fMemberOffset

Int_t ROOT::Detail::TBranchProxy::fMemberOffset
protected

Definition at line 94 of file TBranchProxy.h.

◆ fNotify

TNotifyLink<TBranchProxy> ROOT::Detail::TBranchProxy::fNotify
protected

Definition at line 104 of file TBranchProxy.h.

◆ fOffset

Int_t ROOT::Detail::TBranchProxy::fOffset
protected

Definition at line 95 of file TBranchProxy.h.

◆ fParent

TBranchProxy* ROOT::Detail::TBranchProxy::fParent
protected

Definition at line 86 of file TBranchProxy.h.

◆ fRead

Long64_t ROOT::Detail::TBranchProxy::fRead
protected

Definition at line 106 of file TBranchProxy.h.

◆ fSuppressMissingBranchError

bool ROOT::Detail::TBranchProxy::fSuppressMissingBranchError {false}
protected

Definition at line 83 of file TBranchProxy.h.

◆ fWhere

void* ROOT::Detail::TBranchProxy::fWhere
protected

Definition at line 108 of file TBranchProxy.h.

Libraries for ROOT::Detail::TBranchProxy:

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