17#ifndef ROOT_TBranchProxyTemplate
18#define ROOT_TBranchProxyTemplate
20#if R__BRANCHPROXY_GENERATOR_VERSION != 2
22# error "Please regenerate this file using TTree::MakeProxy()!"
27#define InjecTBranchProxyInterface() \
28 ROOT::Detail::TBranchProxy *GetProxy() { return obj.GetProxy(); } \
29 void Reset() { obj.Reset(); } \
30 bool Setup() { return obj.Setup(); } \
31 bool IsInitialized() { return obj.IsInitialized(); } \
32 bool IsaPointer() const { return obj.IsaPointer(); } \
33 bool Read() { return obj.Read(); }
50 obj(director,parent,
name, top, mid) {};
57 std::cout <<
"fWhere " <<
obj.GetWhere() << std::endl;
58 if (
obj.GetWhere()) std::cout <<
"address? " << (T*)
obj.GetWhere() << std::endl;
63 if (!
obj.Read())
return 0;
83 std::cout <<
"obj.GetWhere() " <<
obj.GetWhere() << std::endl;
94 obj(director,parent,
name, top, mid) {};
102 static T default_val;
103 if (!
obj.Read())
return &default_val;
104 if (
obj.GetWhere()==0)
return &default_val;
106 T*
temp = (T*)
obj.GetClaStart(i);
108 else return &default_val;
125 std::cout <<
"obj.GetWhere() " <<
obj.GetWhere() << std::endl;
134 obj(director,top,
name,data) {};
136 obj(director,parent,
name, top, mid) {};
146 static const value_t default_val;
147 if (!
obj.Read())
return default_val;
148 if (
obj.GetWhere()==0)
return default_val;
152 else return default_val;
209 else return default_val;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
#define InjecTBranchProxyInterface()
Base class for all the proxy object.
TClaObjProxy(TBranchProxyDirector *director, const char *top, const char *name)
TClaObjProxy(TBranchProxyDirector *director, const char *name)
const TClonesArray * GetPtr()
TClaObjProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TClaObjProxy(TBranchProxyDirector *director, Detail::TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
const T * operator[](Int_t i)
Base class for the proxy around object in TClonesArray.
TObjProxy(TBranchProxyDirector *director, const char *top, const char *name)
TObjProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TObjProxy(TBranchProxyDirector *director, Detail::TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TObjProxy(TBranchProxyDirector *director, const char *name)
TStlObjProxy(TBranchProxyDirector *director, Detail::TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TVirtualCollectionProxy * GetCollection()
TStlObjProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TStlObjProxy(TBranchProxyDirector *director, const char *name)
const value_t & At(UInt_t i)
TStlObjProxy(TBranchProxyDirector *director, const char *top, const char *name)
const value_t & operator[](Int_t i)
Base class for the proxy around STL containers.
TVirtualCollectionProxy * fCollection
const value_t At(UInt_t i)
TStlSimpleProxy(TBranchProxyDirector *director, Detail::TBranchProxy *parent, const char *name, const char *top=0, const char *mid=0)
TVirtualCollectionProxy * GetCollection()
TStlSimpleProxy(TBranchProxyDirector *director, const char *top, const char *name)
TStlSimpleProxy(TBranchProxyDirector *director, const char *top, const char *name, const char *data)
TStlSimpleProxy(TBranchProxyDirector *director, const char *name)
const value_t operator[](Int_t i)
TClass instances represent classes, structs and namespaces in the ROOT type system.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
An array of clone (identical) objects.
RAII helper class that ensures that PushProxy() / PopProxy() are called when entering / leaving a C++...
Defines a common interface to inspect/change the contents of an object that represents a collection.
virtual TVirtualCollectionProxy * Generate() const =0
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.