Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ROOT::Internal::TArrayProxy< T > Class Template Reference

template<class T>
class ROOT::Internal::TArrayProxy< T >

Template for concrete implementation of proxy around array of T.

Definition at line 760 of file TBranchProxy.h.

Public Types

typedef T::array_t array_t
typedef T::type_t type_t

Public Member Functions

 TArrayProxy ()=default
 ~TArrayProxy () override=default
const array_tAt (UInt_t i)
void * GetAddressOfElement (UInt_t i) final
 Return the address of the element number i.
virtual Int_t GetArrayLength ()
const char * GetBranchName () const
TClassGetClass ()
void * GetClaStart (UInt_t i=0)
TVirtualCollectionProxyGetCollection ()
Int_t GetEntries () override
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 ()
const array_toperator[] (Int_t i)
const array_toperator[] (UInt_t i)
void Print () override
 Display the content of the object.
bool Read ()
bool ReadEntries ()
void Reset ()
 Completely reset the object.
bool Setup ()
 Initialize/cache the necessary information.
 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.

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 ()

#include <TBranchProxy.h>

Inheritance diagram for ROOT::Internal::TArrayProxy< T >:
ROOT::Detail::TBranchProxy

Member Typedef Documentation

◆ array_t

template<class T>
typedef T::array_t ROOT::Internal::TArrayProxy< T >::array_t

Definition at line 766 of file TBranchProxy.h.

◆ type_t

template<class T>
typedef T::type_t ROOT::Internal::TArrayProxy< T >::type_t

Definition at line 767 of file TBranchProxy.h.

Member Enumeration Documentation

◆ EReadType

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

Definition at line 191 of file TBranchProxy.h.

Constructor & Destructor Documentation

◆ TArrayProxy()

template<class T>
ROOT::Internal::TArrayProxy< T >::TArrayProxy ( )
default

◆ ~TArrayProxy()

template<class T>
ROOT::Internal::TArrayProxy< T >::~TArrayProxy ( )
overridedefault

Member Function Documentation

◆ At()

template<class T>
const array_t & ROOT::Internal::TArrayProxy< T >::At ( UInt_t i)
inline

Definition at line 786 of file TBranchProxy.h.

◆ GetAddressOfElement()

template<class T>
void * ROOT::Internal::TArrayProxy< T >::GetAddressOfElement ( UInt_t )
inlinefinalvirtual

Return the address of the element number i.

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

Reimplemented from ROOT::Detail::TBranchProxy.

Definition at line 779 of file TBranchProxy.h.

◆ GetArrayLength()

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

Definition at line 420 of file TBranchProxy.h.

◆ GetBranchName()

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

Definition at line 126 of file TBranchProxy.h.

◆ GetClass()

Definition at line 424 of file TBranchProxy.h.

◆ GetClaStart()

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

Definition at line 463 of file TBranchProxy.h.

◆ GetCollection()

Definition at line 445 of file TBranchProxy.h.

◆ GetEntries()

template<class T>
Int_t ROOT::Internal::TArrayProxy< T >::GetEntries ( )
inlineoverridevirtual

Reimplemented from ROOT::Detail::TBranchProxy.

Definition at line 775 of file TBranchProxy.h.

◆ 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)
inlinevirtualinherited

Definition at line 448 of file TBranchProxy.h.

◆ GetStlStart()

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

Definition at line 509 of file TBranchProxy.h.

◆ GetSuppressErrorsForMissingBranch()

Definition at line 555 of file TBranchProxy.h.

◆ GetValueSize()

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

Definition at line 557 of file TBranchProxy.h.

◆ GetWhere()

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

Definition at line 437 of file TBranchProxy.h.

◆ IsaPointer()

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

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.

◆ operator[]() [1/2]

template<class T>
const array_t & ROOT::Internal::TArrayProxy< T >::operator[] ( Int_t i)
inline

Definition at line 794 of file TBranchProxy.h.

◆ operator[]() [2/2]

template<class T>
const array_t & ROOT::Internal::TArrayProxy< T >::operator[] ( UInt_t i)
inline

Definition at line 795 of file TBranchProxy.h.

◆ Print()

template<class T>
void ROOT::Internal::TArrayProxy< T >::Print ( )
inlineoverridevirtual

Display the content of the object.

Reimplemented from ROOT::Detail::TBranchProxy.

Definition at line 769 of file TBranchProxy.h.

◆ 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()

Definition at line 327 of file TBranchProxy.h.

◆ ReadNoParentBranchCountNoCollection()

Definition at line 363 of file TBranchProxy.h.

◆ ReadNoParentNoBranchCountCollectionNoPointer()

◆ ReadNoParentNoBranchCountCollectionPointer()

◆ ReadNoParentNoBranchCountNoCollection()

Definition at line 312 of file TBranchProxy.h.

◆ ReadParentCollectionNoPointer()

Definition at line 252 of file TBranchProxy.h.

◆ ReadParentCollectionPointer()

Definition at line 265 of file TBranchProxy.h.

◆ ReadParentNoCollection()

Definition at line 241 of file TBranchProxy.h.

◆ Reset()

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

Completely reset the object.

Definition at line 209 of file TBranchProxy.cxx.

◆ Setup()

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

Initialize/cache the necessary information.

Definition at line 245 of file TBranchProxy.cxx.

◆ TBranchProxy() [1/6]

Constructor.

Definition at line 116 of file TBranchProxy.cxx.

◆ TBranchProxy() [2/6]

template<class T>
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 121 of file TBranchProxy.cxx.

◆ TBranchProxy() [3/6]

template<class T>
ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
const char * top,
const char * name,
const char * membername )

Constructor.

Definition at line 118 of file TBranchProxy.cxx.

◆ TBranchProxy() [4/6]

template<class T>
ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
const char * top,
const char * name = nullptr )

Constructor.

Definition at line 117 of file TBranchProxy.cxx.

◆ TBranchProxy() [5/6]

template<class T>
ROOT::Detail::TBranchProxy::TBranchProxy ( Internal::TBranchProxyDirector * boss,
TBranch * branch,
const char * membername )

Constructor.

Definition at line 120 of file TBranchProxy.cxx.

◆ TBranchProxy() [6/6]

template<class T>
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 119 of file TBranchProxy.cxx.

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

Definition at line 109 of file TBranchProxy.h.

◆ fDataMember

Definition at line 88 of file TBranchProxy.h.

◆ fDirector

◆ fElement

Definition at line 93 of file TBranchProxy.h.

◆ 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

const bool ROOT::Detail::TBranchProxy::fIsMember
protectedinherited

Definition at line 79 of file TBranchProxy.h.

◆ fLeafCount

Definition at line 101 of file TBranchProxy.h.

◆ fMemberOffset

Definition at line 94 of file TBranchProxy.h.

◆ fNotify

Definition at line 104 of file TBranchProxy.h.

◆ 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 {}
protectedinherited

Definition at line 111 of file TBranchProxy.h.

◆ fWhere

void* ROOT::Detail::TBranchProxy::fWhere
protectedinherited

Definition at line 108 of file TBranchProxy.h.


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