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