ROOT  6.06/08
Reference Guide
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ROOT::Internal::TTreeReaderValueBase Class Referenceabstract

Definition at line 43 of file TTreeReaderValue.h.

Public Types

enum  ESetupStatus {
  kSetupNotSetup = -7, kSetupTreeDestructed = -8, kSetupMakeClassModeMismatch = -7, kSetupMissingCounterBranch = -6,
  kSetupMissingBranch = -5, kSetupInternalError = -4, kSetupMissingCompiledCollectionProxy = -3, kSetupMismatch = -2,
  kSetupClassMismatch = -1, kSetupMatch = 0, kSetupMatchBranch = 0, kSetupMatchConversion,
  kSetupMatchConversionCollection, kSetupMakeClass, kSetupVoidPtr, kSetupNoCheck,
  kSetupMatchLeaf
}
 
enum  EReadStatus { kReadSuccess = 0, kReadNothingYet, kReadError }
 

Public Member Functions

EReadStatus ProxyRead ()
 Try to read the value from the TBranchProxy, returns the status of the read. More...
 
Bool_t IsValid () const
 
ESetupStatus GetSetupStatus () const
 
virtual EReadStatus GetReadStatus () const
 
TLeafGetLeaf ()
 If we are reading a leaf, return the corresponding TLeaf. More...
 
voidGetAddress ()
 Returns the memory address of the object being read. More...
 
const char * GetBranchName () const
 

Protected Member Functions

 TTreeReaderValueBase (TTreeReader *reader=0, const char *branchname=0, TDictionary *dict=0)
 Construct a tree value reader and register it with the reader object. More...
 
virtual ~TTreeReaderValueBase ()
 Unregister from tree reader, cleanup. More...
 
virtual void CreateProxy ()
 Create the proxy object for our branch. More...
 
const char * GetBranchDataType (TBranch *branch, TDictionary *&dict) const
 Retrieve the type of data stored by branch; put its dictionary into dict, return its type name. More...
 
virtual const char * GetDerivedTypeName () const =0
 
Detail::TBranchProxyGetProxy () const
 
void MarkTreeReaderUnavailable ()
 

Protected Attributes

TString fBranchName
 
TString fLeafName
 
TTreeReaderfTreeReader
 
TDictionaryfDict
 
Detail::TBranchProxyfProxy
 
TLeaffLeaf
 
Long64_t fTreeLastOffset
 
ESetupStatus fSetupStatus
 
EReadStatus fReadStatus
 
std::vector< Long64_tfStaticClassOffsets
 

Friends

class ::TTreeReader
 

#include <TTreeReaderValue.h>

+ Inheritance diagram for ROOT::Internal::TTreeReaderValueBase:
+ Collaboration diagram for ROOT::Internal::TTreeReaderValueBase:

Member Enumeration Documentation

§ EReadStatus

Enumerator
kReadSuccess 
kReadNothingYet 
kReadError 

Definition at line 66 of file TTreeReaderValue.h.

§ ESetupStatus

Enumerator
kSetupNotSetup 
kSetupTreeDestructed 
kSetupMakeClassModeMismatch 
kSetupMissingCounterBranch 
kSetupMissingBranch 
kSetupInternalError 
kSetupMissingCompiledCollectionProxy 
kSetupMismatch 
kSetupClassMismatch 
kSetupMatch 
kSetupMatchBranch 
kSetupMatchConversion 
kSetupMatchConversionCollection 
kSetupMakeClass 
kSetupVoidPtr 
kSetupNoCheck 
kSetupMatchLeaf 

Definition at line 47 of file TTreeReaderValue.h.

Constructor & Destructor Documentation

§ TTreeReaderValueBase()

ROOT::Internal::TTreeReaderValueBase::TTreeReaderValueBase ( TTreeReader reader = 0,
const char *  branchname = 0,
TDictionary dict = 0 
)
protected

Construct a tree value reader and register it with the reader object.

Definition at line 39 of file TTreeReaderValue.cxx.

Referenced by GetBranchName().

§ ~TTreeReaderValueBase()

ROOT::Internal::TTreeReaderValueBase::~TTreeReaderValueBase ( )
protectedvirtual

Unregister from tree reader, cleanup.

Definition at line 57 of file TTreeReaderValue.cxx.

Referenced by GetBranchName().

Member Function Documentation

§ CreateProxy()

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

Create the proxy object for our branch.

Reimplemented in ROOT::Internal::TTreeReaderArrayBase.

Definition at line 148 of file TTreeReaderValue.cxx.

Referenced by GetBranchName().

§ GetAddress()

void * ROOT::Internal::TTreeReaderValueBase::GetAddress ( )

Returns the memory address of the object being read.

Definition at line 120 of file TTreeReaderValue.cxx.

Referenced by TTreeReaderValue< T >::Get(), GetReadStatus(), and ROOT::Internal::TVirtualCollectionReader::~TVirtualCollectionReader().

§ GetBranchDataType()

const char * ROOT::Internal::TTreeReaderValueBase::GetBranchDataType ( TBranch branch,
TDictionary *&  dict 
) const
protected

Retrieve the type of data stored by branch; put its dictionary into dict, return its type name.

If no dictionary is available, at least its type name should be returned.

Definition at line 374 of file TTreeReaderValue.cxx.

Referenced by CreateProxy(), and GetBranchName().

§ GetBranchName()

const char* ROOT::Internal::TTreeReaderValueBase::GetBranchName ( ) const
inline

Definition at line 82 of file TTreeReaderValue.h.

§ GetDerivedTypeName()

virtual const char* ROOT::Internal::TTreeReaderValueBase::GetDerivedTypeName ( ) const
protectedpure virtual

§ GetLeaf()

TLeaf * ROOT::Internal::TTreeReaderValueBase::GetLeaf ( )

If we are reading a leaf, return the corresponding TLeaf.

Definition at line 80 of file TTreeReaderValue.cxx.

Referenced by GetAddress(), GetReadStatus(), and ROOT::Internal::TVirtualCollectionReader::~TVirtualCollectionReader().

§ GetProxy()

Detail::TBranchProxy* ROOT::Internal::TTreeReaderValueBase::GetProxy ( ) const
inlineprotected

§ GetReadStatus()

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

Reimplemented in ROOT::Internal::TTreeReaderArrayBase.

Definition at line 76 of file TTreeReaderValue.h.

§ GetSetupStatus()

ESetupStatus ROOT::Internal::TTreeReaderValueBase::GetSetupStatus ( ) const
inline

Definition at line 75 of file TTreeReaderValue.h.

§ IsValid()

Bool_t ROOT::Internal::TTreeReaderValueBase::IsValid ( ) const
inline

§ MarkTreeReaderUnavailable()

void ROOT::Internal::TTreeReaderValueBase::MarkTreeReaderUnavailable ( )
inlineprotected

Definition at line 97 of file TTreeReaderValue.h.

§ ProxyRead()

ROOT::Internal::TTreeReaderValueBase::EReadStatus ROOT::Internal::TTreeReaderValueBase::ProxyRead ( )

Try to read the value from the TBranchProxy, returns the status of the read.

Definition at line 67 of file TTreeReaderValue.cxx.

Referenced by GetAddress(), and ROOT::Internal::TVirtualCollectionReader::~TVirtualCollectionReader().

Friends And Related Function Documentation

§ ::TTreeReader

friend class ::TTreeReader
friend

Definition at line 113 of file TTreeReaderValue.h.

Member Data Documentation

§ fBranchName

TString ROOT::Internal::TTreeReaderValueBase::fBranchName
protected

§ fDict

TDictionary* ROOT::Internal::TTreeReaderValueBase::fDict
protected

Definition at line 102 of file TTreeReaderValue.h.

Referenced by CreateProxy(), and GetBranchDataType().

§ fLeaf

TLeaf* ROOT::Internal::TTreeReaderValueBase::fLeaf
protected

Definition at line 104 of file TTreeReaderValue.h.

Referenced by CreateProxy(), GetAddress(), and GetLeaf().

§ fLeafName

TString ROOT::Internal::TTreeReaderValueBase::fLeafName
protected

Definition at line 100 of file TTreeReaderValue.h.

Referenced by CreateProxy(), GetAddress(), and GetLeaf().

§ fProxy

Detail::TBranchProxy* ROOT::Internal::TTreeReaderValueBase::fProxy
protected

§ fReadStatus

EReadStatus ROOT::Internal::TTreeReaderValueBase::fReadStatus
protected

Definition at line 107 of file TTreeReaderValue.h.

Referenced by GetAddress(), GetLeaf(), GetReadStatus(), IsValid(), and ProxyRead().

§ fSetupStatus

ESetupStatus ROOT::Internal::TTreeReaderValueBase::fSetupStatus
protected

Definition at line 106 of file TTreeReaderValue.h.

Referenced by GetSetupStatus(), and IsValid().

§ fStaticClassOffsets

std::vector<Long64_t> ROOT::Internal::TTreeReaderValueBase::fStaticClassOffsets
protected

Definition at line 108 of file TTreeReaderValue.h.

Referenced by CreateProxy(), and GetAddress().

§ fTreeLastOffset

Long64_t ROOT::Internal::TTreeReaderValueBase::fTreeLastOffset
protected

Definition at line 105 of file TTreeReaderValue.h.

Referenced by GetLeaf().

§ fTreeReader

TTreeReader* ROOT::Internal::TTreeReaderValueBase::fTreeReader
protected

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