ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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)
 
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:
[legend]

Member Enumeration Documentation

Enumerator
kReadSuccess 
kReadNothingYet 
kReadError 

Definition at line 66 of file TTreeReaderValue.h.

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

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

Unregister from tree reader, cleanup.

Definition at line 57 of file TTreeReaderValue.cxx.

Member Function Documentation

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.

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< Int_t >::Get().

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.

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

Definition at line 82 of file TTreeReaderValue.h.

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

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

Definition at line 80 of file TTreeReaderValue.cxx.

Detail::TBranchProxy* ROOT::Internal::TTreeReaderValueBase::GetProxy ( ) const
inlineprotected
virtual EReadStatus ROOT::Internal::TTreeReaderValueBase::GetReadStatus ( ) const
inlinevirtual

Reimplemented in ROOT::Internal::TTreeReaderArrayBase.

Definition at line 76 of file TTreeReaderValue.h.

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

Definition at line 75 of file TTreeReaderValue.h.

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

Definition at line 74 of file TTreeReaderValue.h.

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

Definition at line 97 of file TTreeReaderValue.h.

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.

Friends And Related Function Documentation

friend class ::TTreeReader
friend

Definition at line 113 of file TTreeReaderValue.h.

Member Data Documentation

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

Definition at line 99 of file TTreeReaderValue.h.

Referenced by TTreeReader::DeregisterValueReader(), and GetBranchName().

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

Definition at line 102 of file TTreeReaderValue.h.

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

Definition at line 104 of file TTreeReaderValue.h.

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

Definition at line 100 of file TTreeReaderValue.h.

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

Definition at line 103 of file TTreeReaderValue.h.

Referenced by TTreeReaderValue< Int_t >::Get(), GetProxy(), and IsValid().

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

Definition at line 107 of file TTreeReaderValue.h.

Referenced by GetReadStatus(), and IsValid().

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

Definition at line 106 of file TTreeReaderValue.h.

Referenced by GetSetupStatus(), and IsValid().

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

Definition at line 108 of file TTreeReaderValue.h.

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

Definition at line 105 of file TTreeReaderValue.h.

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

Definition at line 101 of file TTreeReaderValue.h.

Referenced by MarkTreeReaderUnavailable(), and ~TTreeReaderValueBase().

Collaboration diagram for ROOT::Internal::TTreeReaderValueBase:
[legend]

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