12 #ifndef ROOT_TStreamerElement 13 #define ROOT_TStreamerElement 213 const char *countName,
const char *countClass,
Int_t version,
const char *typeName);
249 TStreamerLoop(
const char *
name,
const char *title,
Int_t offset,
const char *countName,
const char *countClass,
Int_t version,
const char *typeName);
408 const char *typeName,
const char *trueType,
Bool_t dmPointer);
438 const char *typeName,
Bool_t dmPointer);
465 TStreamerArtificial(
const char *
name,
const char *title,
Int_t offset,
Int_t dtype,
const char *typeName) :
TStreamerElement(
name,title,offset,dtype,typeName),
fReadFunc(0),
fReadRawFunc(0) {}
virtual Bool_t IsTransient() const
Return kTRUE if the element represent an entity that is not written to the disk (transient members...
TStreamerBasicType()
value of data member when referenced by an array
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
virtual ~TStreamerBase()
TStreamerBase dtor.
ESTLtype
Conversion factor if a range is specified fFactor = (1<<nbits/(xmax-xmin)
ROOT::TSchemaRule::ReadFuncPtr_t fReadFunc
TStreamerSTL()
Default ctor.
void(* ReadRawFuncPtr_t)(char *, TBuffer &)
const char * GetInclude() const
Return the proper include for this element.
const char * GetCountClass() const
const char * GetTypeNameBasic() const
Return type name of this element in case the type name is not a standard basic type, return the basic type name known to CINT.
Int_t fNewType
base offset for TObject if the element inherits from it
void(* ClassStreamerFunc_t)(TBuffer &, void *)
virtual void SetOffset(Int_t offset)
virtual Bool_t IsaPointer() const
Int_t GetSize() const
Returns size of this element in bytes.
Int_t GetCountVersion() const
ClassConvStreamerFunc_t fConvStreamerFunc
Pointer to a wrapper around a custom streamer member function.
Int_t GetSize() const
Returns size of baseclass in bytes.
TStreamerBase & operator=(const TStreamerBase &)
TStreamerArtificial(const char *name, const char *title, Int_t offset, Int_t dtype, const char *typeName)
Int_t GetSize() const
Returns size of basicpointer in bytes.
Int_t GetSize() const
Returns size of object class in bytes.
virtual void SetSize(Int_t dsize)
virtual void ls(Option_t *option="") const
Print the content of the element.
Double_t fXmin
pointer to element Streamer
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
TStreamerObjectPointer & operator=(const TStreamerObjectPointer &)
virtual Bool_t IsaPointer() const
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
TMemberStreamer * GetStreamer() const
Return the local streamer object.
void SetCountVersion(Int_t count)
TStreamerObject & operator=(const TStreamerObject &)
virtual ~TStreamerObjectAny()
TStreamerObjectAny dtor.
Buffer base class used for serializing objects.
TStreamerSTLstring()
Default ctor.
TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
virtual void SetTypeName(const char *name)
void SetReadFunc(ROOT::TSchemaRule::ReadFuncPtr_t val)
const char * GetInclude() const
Return the proper include for this element.
TStreamerString & operator=(const TStreamerString &)
Int_t GetArrayLength() const
TStreamerBasicType & operator=(const TStreamerBasicType &)
TClass * fBaseClass
checksum of the base class (used during memberwise streaming)
virtual ~TStreamerObjectAnyPointer()
TStreamerObjectAnyPointer dtor.
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
ClassStreamerFunc_t fStreamerFunc
pointer to new base class if renamed
const char * GetInclude() const
Return the proper include for this element.
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
virtual ~TStreamerElement()
TStreamerElement dtor.
TStreamerString()
Default ctor.
Int_t GetArrayDim() const
void GetSequenceType(TString &type) const
Fill type with the string representation of sequence information including 'cached','repeat','write' or 'nodelete'.
TStreamerArtificial(const TStreamerArtificial &)
TStreamerObjectAnyPointer & operator=(const TStreamerObjectAnyPointer &)
virtual void SetMaxIndex(Int_t dim, Int_t max)
set maximum index for array with dimension dim
virtual ~TStreamerBasicType()
TStreamerBasicType dtor.
virtual Bool_t HasCounter() const
Bool_t IsaPointer() const
Return true if the data member is a pointer.
const char * GetInclude() const
Return the proper include for this element.
TStreamerLoop & operator=(const TStreamerLoop &)
virtual Bool_t CannotSplit() const
Returns true if the element cannot be split, false otherwise.
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
Int_t GetSize() const
Returns size of objectpointer in bytes.
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
virtual Int_t GetExecID() const
Returns the TExec id for the EXEC instruction in the comment field of a TRef data member...
#define ClassDef(name, id)
const char * GetInclude() const
Return the proper include for this element.
virtual Bool_t IsaPointer() const
TStreamerArtificial & operator=(const TStreamerArtificial &)
TStreamerObject()
Default ctor.
The TNamed class is the base class for all named ROOT classes.
const char * GetCountClass() const
virtual void SetNewClass(TClass *cl)
TStreamerBasicPointer & operator=(const TStreamerBasicPointer &)
Int_t GetSize() const
Returns size of anyclass in bytes.
Int_t GetTObjectOffset() const
void SetCountClass(const char *clname)
Method or function calling interface.
virtual ~TStreamerObject()
TStreamerObject dtor.
virtual void ls(Option_t *option="") const
Print the content of the element.
TVirtualStreamerInfo * GetBaseStreamerInfo() const
virtual ~TStreamerString()
TStreamerString dtor.
void SetCountVersion(Int_t count)
virtual ~TStreamerBasicPointer()
TStreamerBasicPointer dtor.
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
virtual void Update(const TClass *oldClass, TClass *newClass)
function called by the TClass constructor when replacing an emulated class by the real class ...
Double_t fXmax
Minimum of data member if a range is specified [xmin,xmax,nbits].
virtual void SetStreamer(TMemberStreamer *streamer)
set pointer to Streamer function for this element
Bool_t IsBase() const
Return kTRUE if the element represent a base class.
TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
TStreamerObjectAnyPointer()
Default ctor.
void SetErrorMessage(const char *msg)
Int_t fTObjectOffset
element offset in class
virtual const char * GetInclude() const
virtual ~TStreamerSTLstring()
TStreamerSTLstring dtor.
TStreamerObjectPointer()
Default ctor.
const char * GetInclude() const
Return the proper include for this element.
virtual void Update(const TClass *oldClass, TClass *newClass)
Function called by the TClass constructor when replacing an emulated class by the real class...
TStreamerBasicPointer()
pointer to basic type counter
void SetCountClass(const char *clname)
ULong_t GetMethod() const
TClass * GetNewBaseClass()
void SetBaseCheckSum(UInt_t cs)
TStreamerLoop()
pointer to basic type counter
Int_t WriteBuffer(TBuffer &b, char *pointer)
Write the base class into the buffer.
Int_t GetMaxIndex(Int_t i) const
TStreamerElement()
Default ctor.
ULong_t GetMethod() const
return offset of counter
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
ROOT::TSchemaRule::ReadRawFuncPtr_t fReadRawFunc
The ROOT global object gROOT contains a list of all defined classes.
void SetCountName(const char *name)
virtual ~TStreamerObjectPointer()
TStreamerObjectPointer dtor.
virtual void Update(const TClass *, TClass *)
function called by the TClass constructor when replacing an emulated class by the real class ...
virtual void Init(TVirtualStreamerInfo *obj=0)
Initliaze the element.
Int_t GetSize() const
Returns size of objectpointer in bytes.
Wrapper around an object and giving indirect access to its content even if the object is not of a cl...
TStreamerObjectAny & operator=(const TStreamerObjectAny &)
void(* ReadFuncPtr_t)(char *, TVirtualObject *)
virtual ~TStreamerLoop()
TStreamerLoop dtor.
virtual void SetStreamer(TMemberStreamer *streamer)
Set pointer to Streamer function for this element NOTE: we do not take ownership. ...
virtual Bool_t IsaPointer() const
virtual const char * GetFullName() const
Return element name including dimensions, if any Note that this function stores the name into a stati...
Double_t GetFactor() const
ULong_t GetMethod() const
return address of counter
virtual Int_t GetSize() const
Returns size of this element in bytes.
Bool_t IsBase() const
Return kTRUE if the element represent a base class.
void SetNewBaseClass(TClass *cl)
virtual Bool_t HasCounter() const
virtual Bool_t IsBase() const
Return kTRUE if the element represent a base class.
const char * GetCountName() const
virtual void SetType(Int_t dtype)
virtual Bool_t IsOldFormat(const char *newTypeName)
The early 3.00/00 and 3.01/01 versions used to store dm->GetTypeName instead of dm->GetFullTypename i...
virtual void SetTObjectOffset(Int_t tobjoffset)
TStreamerSTL & operator=(const TStreamerSTL &)
Int_t GetSize() const
Returns size of anyclass in bytes.
const char * GetInclude() const
Return the proper include for this element.
TClass * fNewClass
pointer to class of object
TMemberStreamer * fStreamer
new element class when reading
Int_t GetSize() const
Returns size of counter in bytes.
virtual void ls(Option_t *option="") const
Print the content of the element.
virtual Bool_t IsaPointer() const
Int_t GetSize() const
Returns size of anyclass in bytes.
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
TStreamerSTLstring & operator=(const TStreamerSTLstring &)
virtual void Update(const TClass *, TClass *)
function called by the TClass constructor when replacing an emulated class by the real class ...
void SetArrayDim(Int_t dim)
Set number of array dimensions.
const char * GetTypeName() const
const char * GetCountName() const
const char * GetInclude() const
Return the proper include for this element.
TClass * GetNewClass() const
Int_t GetSize() const
Returns size of STL container in bytes.
virtual void SetNewType(Int_t dtype)
ROOT::TSchemaRule::ReadFuncPtr_t GetReadFunc()
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
Int_t ReadBuffer(TBuffer &b, char *pointer)
Read the content of the buffer.
Double_t fFactor
Maximum of data member if a range is specified [xmin,xmax,nbits].
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
virtual ULong_t GetMethod() const
void SetBaseVersion(Int_t v)
TString fErrorMsg
Pointer to the current StreamerInfo for the baset class.
virtual Bool_t HasCounter() const
ROOT::TSchemaRule::ReadRawFuncPtr_t GetReadRawFunc()
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
const char * GetErrorMessage() const
TStreamerBasicType * fCounter
Abstract Interface class describing Streamer information for one class.
virtual ~TStreamerSTL()
TStreamerSTL dtor.
TClass * fNewBaseClass
pointer to base class
TVirtualStreamerInfo * fStreamerInfo
Pointer to a wrapper around a custom convertion streamer member function.
const char * GetInclude() const
Return the proper include for this element.
void SetReadRawFunc(ROOT::TSchemaRule::ReadRawFuncPtr_t val)
TStreamerElement & operator=(const TStreamerElement &)
void InitStreaming()
Error message in case of checksum/version mismatch.
Int_t GetCountVersion() const
Bool_t CannotSplit() const
We can not split STL's which are inside a variable size array.
TStreamerObjectAny()
Default ctor.
TStreamerBasicType * fCounter
TString fTypeName
new element type when reading
TClass * GetClass() const
void SetCountName(const char *name)
ULong_t GetMethod() const
return address of counter
const char * Data() const