67 b.WriteFastArray(
object->ClassName(),
n+1);
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 *)
")";
102 if (
m->GetMethod())
return m;
103 Error(
"GetMethodCall",
"Unknown method:%s",
name);
142 b.ReadFastArray(classname,
n+1);
164 Warning(
"ReadBasket",
"%s::Streamer not available, using TClass::ReadBuffer instead",
fClass->
GetName());
172 if (
object->GetUniqueID() == 123456789) {
192void TLeafObject::Streamer(
TBuffer &
b)
197 if (R__v > 3 || R__v == 2) {
198 b.ReadClassBuffer(TLeafObject::Class(),
this, R__v, R__s, R__c);
223 b.WriteClassBuffer(TLeafObject::Class(),
this);
A TTree is a list of TBranches.
TObjArray * GetListOfBranches()
virtual void SetAddress(void *add)
Set address of this branch.
Bool_t IsAutoDelete() const
Return kTRUE if an existing object in a TBranchObject must be deleted.
Buffer base class used for serializing objects.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
Long_t Property() const
Returns the properties of the TClass as a bit field stored as a Long_t value.
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.
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.
A TLeaf for a general object derived from TObject.
virtual ~TLeafObject()
Default destructor for a LeafObject.
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual void PrintValue(Int_t i=0) const
Prints leaf value.
virtual void * GetValuePointer() const
const char * GetTypeName() const
Returns name of leaf type.
TLeafObject()
Default constructor for LeafObject.
Bool_t IsOnTerminalBranch() const
Return true if this leaf is does not have any sub-branch/leaf.
TObject * GetObject() const
virtual void ReadBasket(TBuffer &b)
Read leaf elements from Basket input buffer.
Bool_t fVirtual
Support for polymorphism, when set classname is written with object.
virtual void FillBasket(TBuffer &b)
Pack leaf elements in Basket output buffer.
virtual void SetAddress(void *add=0)
Set leaf buffer data address.
void ** fObjAddress
! Address of Pointer to object
TClassRef fClass
! pointer to class
TMethodCall * GetMethodCall(const char *name)
Returns pointer to method corresponding to name.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
TBranch * GetBranch() const
TBranch * fBranch
! Pointer to supporting branch (we do not own the branch)
Method or function calling interface.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Int_t GetEntriesFast() const
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
@ kInvalidObject
if object ctor succeeded but object should not be used
const char * Data() const