41 :
TLeaf(parent, name,type)
75 object->SetUniqueID(123456789);
80 Error(
"FillBasket",
"Attempt to write a NULL object in leaf:%s",
GetName());
93 char *namecpy =
new char[strlen(name)+1];
95 char *params = strchr(namecpy,
'(');
96 if (params) { *params = 0; params++; }
97 else params = (
char *)
")";
103 Error(
"GetMethodCall",
"Unknown method:%s",name);
164 Warning(
"ReadBasket",
"%s::Streamer not available, using TClass::ReadBuffer instead",
fClass->
GetName());
192 void TLeafObject::Streamer(
TBuffer &
b)
197 if (R__v > 3 || R__v == 2) {
virtual const char * GetName() const
Returns name of object.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
virtual UInt_t GetUniqueID() const
Return the unique object id.
Bool_t IsOnTerminalBranch() const
Return true if this leaf is does not have any sub-branch/leaf.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Bool_t fVirtual
Support for polymorphism, when set classname is written with object.
virtual void SetAddress(void *add)
Set address of this branch.
TObject * GetObject() const
A TLeaf for a general object derived from TObject.
Buffer base class used for serializing objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
TClassRef fClass
! pointer to class
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Int_t ReadBuffer(TBuffer &b, void *pointer, Int_t version, UInt_t start, UInt_t count)
Function called by the Streamer functions to deserialize information from buffer b into object at p...
virtual const char * ClassName() const
Returns name of class to which the object belongs.
TMethodCall * GetMethodCall(const char *name)
Returns pointer to method corresponding to name.
Bool_t IsAutoDelete() const
Return kTRUE if an existing object in a TBranchObject must be deleted.
TObjArray * GetListOfBranches()
virtual void * GetValuePointer() const
virtual void ReadBasket(TBuffer &b)
Read leaf elements from Basket input buffer.
Method or function calling interface.
if object ctor succeeded but object should not be used
void ** fObjAddress
! Address of Pointer to object
virtual void SetAddress(void *add=0)
Set leaf buffer data address.
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
virtual ~TLeafObject()
Default destructor for a LeafObject.
Int_t GetEntriesFast() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Long_t Property() const
Set TObject::fBits and fStreamerType to cache information about the class.
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
virtual void FillBasket(TBuffer &b)
Pack leaf elements in Basket output buffer.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
virtual Bool_t Notify()
This method must be overridden to handle object notifcation.
virtual void PrintValue(Int_t i=0) const
Prints leaf value.
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.
const char * GetTypeName() const
Returns name of leaf type.
Mother of all ROOT objects.
TLeafObject()
Default constructor for LeafObject.
TBranch * fBranch
! Pointer to supporting branch (we do not own the branch)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TBranch * GetBranch() const
A TTree is a list of TBranches.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual const char * GetTitle() const
Returns title of object.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
const char * Data() const