Logo ROOT   6.10/00
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TStreamerElement.h
Go to the documentation of this file.
1 // @(#)root/meta:$Id: e0eac11e63ad37390c9467c97c5c6849c4ab7d39 $
2 // Author: Rene Brun 12/10/2000
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TStreamerElement
13 #define ROOT_TStreamerElement
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TStreamerElement //
19 // //
20 // Describe one element (data member) to be Streamed //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TNamed.h"
25 
26 #include "ESTLType.h"
27 
28 class TMethodCall;
29 class TClass;
30 class TStreamerBasicType;
32 
33 class TStreamerElement : public TNamed {
34 
35 private:
36  TStreamerElement(const TStreamerElement &); // Not implemented
37  TStreamerElement&operator=(const TStreamerElement&); // Not implemented
38 
39 protected:
40  Int_t fType; //element type
41  Int_t fSize; //sizeof element
42  Int_t fArrayLength; //cumulative size of all array dims
43  Int_t fArrayDim; //number of array dimensions
44  Int_t fMaxIndex[5]; //Maximum array index for array dimension "dim"
45  Int_t fOffset; //!element offset in class
46  Int_t fTObjectOffset; //!base offset for TObject if the element inherits from it
47  Int_t fNewType; //!new element type when reading
48  TString fTypeName; //Data type name of data member
49  TClass *fClassObject; //!pointer to class of object
50  TClass *fNewClass; //!new element class when reading
51  TMemberStreamer *fStreamer; //!pointer to element Streamer
52  Double_t fXmin; //!Minimum of data member if a range is specified [xmin,xmax,nbits]
53  Double_t fXmax; //!Maximum of data member if a range is specified [xmin,xmax,nbits]
54  Double_t fFactor; //!Conversion factor if a range is specified fFactor = (1<<nbits/(xmax-xmin)
55 
56 public:
57 
58  enum ESTLtype {
59  kSTL = ROOT::kSTLany,
60  kSTLstring = ROOT::kSTLstring,
61  kSTLvector = ROOT::kSTLvector,
62  kSTLlist = ROOT::kSTLlist,
63  kSTLforwardlist = ROOT::kSTLforwardlist,
64  kSTLdeque = ROOT::kSTLdeque,
65  kSTLmap = ROOT::kSTLmap,
66  kSTLmultimap = ROOT::kSTLmultimap,
67  kSTLset = ROOT::kSTLset,
68  kSTLmultiset = ROOT::kSTLmultiset,
69  kSTLunorderedset = ROOT::kSTLunorderedset,
70  kSTLunorderedmultiset = ROOT::kSTLunorderedmultiset,
71  kSTLunorderedmap = ROOT::kSTLunorderedmap,
72  kSTLunorderedmultimap = ROOT::kSTLunorderedmultimap,
73  kSTLbitset = ROOT::kSTLbitset
74  };
75  // TStreamerElement status bits
76  enum {
77  kHasRange = BIT(6),
78  kCache = BIT(9),
79  kRepeat = BIT(10),
80  kRead = BIT(11),
81  kWrite = BIT(12),
84  };
85 
87  TStreamerElement(const char *name, const char *title, Int_t offset, Int_t dtype, const char *typeName);
88  virtual ~TStreamerElement();
89  virtual Bool_t CannotSplit() const;
90  Int_t GetArrayDim() const {return fArrayDim;}
91  Int_t GetArrayLength() const {return fArrayLength;}
92  virtual TClass *GetClassPointer() const;
93  TClass *GetClass() const {return GetClassPointer();}
94  virtual Int_t GetExecID() const;
95  virtual const char *GetFullName() const;
96  virtual const char *GetInclude() const {return "";}
97  Int_t GetMaxIndex(Int_t i) const {return fMaxIndex[i];}
98  virtual ULong_t GetMethod() const {return ULong_t(fStreamer);}
100  virtual Int_t GetSize() const;
101  Int_t GetNewType() const {return fNewType;}
102  TClass* GetNewClass() const { return fNewClass; }
103  Int_t GetType() const {return fType;}
104  Int_t GetOffset() const {return fOffset;}
105  void GetSequenceType(TString &type) const;
107  const char *GetTypeName() const {return fTypeName.Data();}
108  const char *GetTypeNameBasic() const;
109  Double_t GetFactor() const {return fFactor;}
110  Double_t GetXmin() const {return fXmin;}
111  Double_t GetXmax() const {return fXmax;}
112  virtual void Init(TVirtualStreamerInfo *obj=0);
113  virtual Bool_t IsaPointer() const {return kFALSE;}
114  virtual Bool_t HasCounter() const {return kFALSE;}
115  virtual Bool_t IsOldFormat(const char *newTypeName);
116  virtual Bool_t IsBase() const;
117  virtual Bool_t IsTransient() const;
118  virtual void ls(Option_t *option="") const;
119  virtual void SetArrayDim(Int_t dim);
120  virtual void SetMaxIndex(Int_t dim, Int_t max);
121  virtual void SetOffset(Int_t offset) {fOffset=offset;}
122  virtual void SetTObjectOffset(Int_t tobjoffset) {fTObjectOffset=tobjoffset;}
123  virtual void SetStreamer(TMemberStreamer *streamer);
124  virtual void SetSize(Int_t dsize) {fSize = dsize;}
125  virtual void SetNewType(Int_t dtype) {fNewType = dtype;}
126  virtual void SetNewClass( TClass* cl ) { fNewClass= cl; }
127  virtual void SetType(Int_t dtype) {fType = dtype;}
128  virtual void SetTypeName(const char *name) {fTypeName = name; fClassObject = (TClass*)-1; }
129  virtual void Update(const TClass *oldClass, TClass *newClass);
130 
131  ClassDef(TStreamerElement,4) //Base class for one element (data member) to be Streamed
132 };
133 
134 //________________________________________________________________________
136 
137 private:
138  TStreamerBase(const TStreamerBase &); // Not implemented
139  TStreamerBase&operator=(const TStreamerBase&); // Not implemented
140 
141 protected:
142  Int_t fBaseVersion; //version number of the base class (used during memberwise streaming)
143  UInt_t &fBaseCheckSum; //!checksum of the base class (used during memberwise streaming)
144  TClass *fBaseClass; //!pointer to base class
145  TClass *fNewBaseClass; //!pointer to new base class if renamed
146  ClassStreamerFunc_t fStreamerFunc; //!Pointer to a wrapper around a custom streamer member function.
147  ClassConvStreamerFunc_t fConvStreamerFunc; //!Pointer to a wrapper around a custom convertion streamer member function.
148  TVirtualStreamerInfo *fStreamerInfo; //!Pointer to the current StreamerInfo for the baset class.
149  TString fErrorMsg; //!Error message in case of checksum/version mismatch.
150 
151  void InitStreaming();
152 
153 public:
154 
155  TStreamerBase();
156  TStreamerBase(const char *name, const char *title, Int_t offset);
157  virtual ~TStreamerBase();
160  virtual TClass *GetClassPointer() const;
161  const char *GetErrorMessage() const { return fErrorMsg; }
162  const char *GetInclude() const;
164  ULong_t GetMethod() const {return 0;}
165  Int_t GetSize() const;
167  virtual void Init(TVirtualStreamerInfo *obj=0);
168  Bool_t IsBase() const;
169  virtual void ls(Option_t *option="") const;
170  Int_t ReadBuffer (TBuffer &b, char *pointer);
174  void SetErrorMessage(const char *msg) { fErrorMsg = msg; }
175  virtual void Update(const TClass *oldClass, TClass *newClass);
176  Int_t WriteBuffer(TBuffer &b, char *pointer);
177 
178  ClassDef(TStreamerBase,3) //Streamer element of type base class
179 };
180 
181 //________________________________________________________________________
183 
184 private:
185  TStreamerBasicPointer(const TStreamerBasicPointer &); // Not implemented
186  TStreamerBasicPointer&operator=(const TStreamerBasicPointer&); // Not implemented
187 
188 protected:
189  Int_t fCountVersion; //version number of the class with the counter
190  TString fCountName; //name of data member holding the array count
191  TString fCountClass; //name of the class with the counter
192  TStreamerBasicType *fCounter; //!pointer to basic type counter
193 
194 public:
195 
197  TStreamerBasicPointer(const char *name, const char *title, Int_t offset, Int_t dtype,
198  const char *countName, const char *countClass, Int_t version, const char *typeName);
199  virtual ~TStreamerBasicPointer();
200  TClass *GetClassPointer() const { return 0; }
201  const char *GetCountClass() const {return fCountClass.Data();}
202  const char *GetCountName() const {return fCountName.Data();}
204  ULong_t GetMethod() const;
205  Int_t GetSize() const;
206  virtual void Init(TVirtualStreamerInfo *obj=0);
207  virtual Bool_t HasCounter() const {return fCounter!=0; }
208  virtual Bool_t IsaPointer() const {return kTRUE; }
209  void SetArrayDim(Int_t dim);
210  void SetCountClass(const char *clname) {fCountClass = clname; }
211  void SetCountName(const char *name) {fCountName = name; }
212  void SetCountVersion(Int_t count) {fCountVersion = count;}
213  virtual void Update(const TClass * /* oldClass */, TClass * /*newClass*/ ) {}
214 
215  ClassDef(TStreamerBasicPointer,2) //Streamer element for a pointer to a basic type
216 };
217 
218 //________________________________________________________________________
220 
221 private:
222  TStreamerLoop(const TStreamerLoop&); // Not implemented
223  TStreamerLoop&operator=(const TStreamerLoop&); // Not implemented
224 
225 protected:
226  Int_t fCountVersion; //version number of the class with the counter
227  TString fCountName; //name of data member holding the array count
228  TString fCountClass; //name of the class with the counter
229  TStreamerBasicType *fCounter; //!pointer to basic type counter
230 
231 public:
232 
233  TStreamerLoop();
234  TStreamerLoop(const char *name, const char *title, Int_t offset, const char *countName, const char *countClass, Int_t version, const char *typeName);
235  virtual ~TStreamerLoop();
236  const char *GetCountClass() const {return fCountClass.Data();}
237  const char *GetCountName() const {return fCountName.Data();}
239  const char *GetInclude() const;
240  ULong_t GetMethod() const;
241  Int_t GetSize() const;
242  virtual void Init(TVirtualStreamerInfo *obj=0);
243  virtual Bool_t IsaPointer() const {return kTRUE; }
244  virtual Bool_t HasCounter() const {return fCounter!=0; }
245  void SetCountClass(const char *clname) {fCountClass = clname; }
246  void SetCountName(const char *name) {fCountName = name; }
247  void SetCountVersion(Int_t count) {fCountVersion = count;}
248 
249  ClassDef(TStreamerLoop,2) //Streamer element for a pointer to an array of objects
250 };
251 
252 //________________________________________________________________________
254 
255 private:
256  TStreamerBasicType(const TStreamerBasicType&); // Not implemented
257  TStreamerBasicType&operator=(const TStreamerBasicType&); // Not implemented
258 
259 protected:
260  Int_t fCounter; //!value of data member when referenced by an array
261 
262 public:
263 
265  TStreamerBasicType(const char *name, const char *title, Int_t offset, Int_t dtype, const char *typeName);
266  virtual ~TStreamerBasicType();
267  TClass *GetClassPointer() const { return 0; }
268  Int_t GetCounter() const {return fCounter;}
269  ULong_t GetMethod() const;
270  Int_t GetSize() const;
271  virtual void Update(const TClass * /* oldClass */, TClass * /* newClass */) {}
272 
273  ClassDef(TStreamerBasicType,2) //Streamer element for a basic type
274 };
275 
276 //________________________________________________________________________
278 
279 private:
280  TStreamerObject(const TStreamerObject&); // Not implemented
281  TStreamerObject&operator=(const TStreamerObject&); // Not implemented
282 
283 public:
284 
285  TStreamerObject();
286  TStreamerObject(const char *name, const char *title, Int_t offset, const char *typeName);
287  virtual ~TStreamerObject();
288  const char *GetInclude() const;
289  Int_t GetSize() const;
290  virtual void Init(TVirtualStreamerInfo *obj=0);
291 
292  ClassDef(TStreamerObject,2) //Streamer element of type object
293 };
294 
295 //________________________________________________________________________
297 
298 private:
299  TStreamerObjectAny(const TStreamerObjectAny&); // Not implemented
300  TStreamerObjectAny&operator=(const TStreamerObjectAny&); // Not implemented
301 
302 public:
303 
305  TStreamerObjectAny(const char *name, const char *title, Int_t offset, const char *typeName);
306  virtual ~TStreamerObjectAny();
307  const char *GetInclude() const;
308  Int_t GetSize() const;
309  virtual void Init(TVirtualStreamerInfo *obj=0);
310 
311  ClassDef(TStreamerObjectAny,2) //Streamer element of type object other than TObject
312 };
313 
314 //________________________________________________________________________
316 
317 private:
318  TStreamerObjectPointer(const TStreamerObjectPointer&); // Not implemented
319  TStreamerObjectPointer&operator=(const TStreamerObjectPointer&); // Not implemented
320 
321 public:
322 
324  TStreamerObjectPointer(const char *name, const char *title, Int_t offset, const char *typeName);
325  virtual ~TStreamerObjectPointer();
326  const char *GetInclude() const;
327  Int_t GetSize() const;
328  virtual void Init(TVirtualStreamerInfo *obj=0);
329  virtual Bool_t IsaPointer() const {return kTRUE;}
330  virtual void SetArrayDim(Int_t dim);
331 
332  ClassDef(TStreamerObjectPointer,2) //Streamer element of type pointer to a TObject
333 };
334 
335 //________________________________________________________________________
337 
338 private:
339  TStreamerObjectAnyPointer(const TStreamerObjectAnyPointer&); // Not implemented
341 
342 public:
343 
345  TStreamerObjectAnyPointer(const char *name, const char *title, Int_t offset, const char *typeName);
346  virtual ~TStreamerObjectAnyPointer();
347  const char *GetInclude() const;
348  Int_t GetSize() const;
349  virtual void Init(TVirtualStreamerInfo *obj=0);
350  virtual Bool_t IsaPointer() const {return kTRUE;}
351  virtual void SetArrayDim(Int_t dim);
352 
353  ClassDef(TStreamerObjectAnyPointer,1) //Streamer element of type pointer to a non TObject
354 };
355 
356 //________________________________________________________________________
358 
359 private:
360  TStreamerString(const TStreamerString&); // Not implemented
361  TStreamerString&operator=(const TStreamerString&); // Not implemented
362 
363 public:
364 
365  TStreamerString();
366  TStreamerString(const char *name, const char *title, Int_t offset);
367  virtual ~TStreamerString();
368  const char *GetInclude() const;
369  Int_t GetSize() const;
370 
371  ClassDef(TStreamerString,2) //Streamer element of type TString
372 };
373 
374 //________________________________________________________________________
376 
377  enum {
378  kWarned = BIT(21)
379  };
380 
381 private:
382  TStreamerSTL(const TStreamerSTL&); // Not implemented
383  TStreamerSTL&operator=(const TStreamerSTL&); // Not implemented
384 
385 protected:
386  Int_t fSTLtype; //type of STL vector
387  Int_t fCtype; //STL contained type
388 
389 public:
390 
391  TStreamerSTL();
392  TStreamerSTL(const char *name, const char *title, Int_t offset,
393  const char *typeName, const char *trueType, Bool_t dmPointer);
394  TStreamerSTL(const char *name, const char *title, Int_t offset,
395  const char *typeName, const TVirtualCollectionProxy &proxy , Bool_t dmPointer);
396  virtual ~TStreamerSTL();
397  Bool_t CannotSplit() const;
398  Bool_t IsaPointer() const;
399  Bool_t IsBase() const;
400  Int_t GetSTLtype() const {return fSTLtype;}
401  Int_t GetCtype() const {return fCtype;}
402  const char *GetInclude() const;
403  Int_t GetSize() const;
404  virtual void ls(Option_t *option="") const;
405  void SetSTLtype(Int_t t) {fSTLtype = t;}
406  void SetCtype(Int_t t) {fCtype = t;}
407  virtual void SetStreamer(TMemberStreamer *streamer);
408 
409  ClassDef(TStreamerSTL,3) //Streamer element of type STL container
410 };
411 
412 //________________________________________________________________________
414 
415 private:
416  TStreamerSTLstring(const TStreamerSTLstring&); // Not implemented
417  TStreamerSTLstring&operator=(const TStreamerSTLstring&); // Not implemented
418 
419 public:
420 
422  TStreamerSTLstring(const char *name, const char *title, Int_t offset,
423  const char *typeName, Bool_t dmPointer);
424  virtual ~TStreamerSTLstring();
425  const char *GetInclude() const;
426  Int_t GetSize() const;
427 
428  ClassDef(TStreamerSTLstring,2) //Streamer element of type C++ string
429 };
430 
431 class TVirtualObject;
432 class TBuffer;
433 
434 #include "TSchemaRule.h"
435 
436 //________________________________________________________________________
438 private:
439  TStreamerArtificial(const TStreamerArtificial&); // Not implemented
440  TStreamerArtificial&operator=(const TStreamerArtificial&); // Not implemented
441 
442 protected:
445 
446 public:
447 
448  // TStreamerArtificial() : fReadFunc(0),fReadRawFunc(0) {}
449 
450  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) {}
451 
454 
457 
458  ClassDef(TStreamerArtificial, 0); // StreamerElement injected by a TSchemaRule. Transient only to preverse forward compatibility.
459 };
460 
461 #endif
Int_t GetTObjectOffset() const
const char * GetInclude() const
Return the proper include for this element.
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&lt;&lt;nbits/(xmax-xmin)
ROOT::TSchemaRule::ReadFuncPtr_t fReadFunc
TStreamerSTL()
Default ctor.
Bool_t CannotSplit() const
We can not split STL&#39;s which are inside a variable size array.
Int_t fNewType
base offset for TObject if the element inherits from it
virtual void SetOffset(Int_t offset)
Int_t GetOffset() const
Int_t GetCountVersion() const
const char * GetTypeName() const
ClassConvStreamerFunc_t fConvStreamerFunc
Pointer to a wrapper around a custom streamer member function.
TStreamerBase & operator=(const TStreamerBase &)
TStreamerArtificial(const char *name, const char *title, Int_t offset, Int_t dtype, const char *typeName)
Double_t GetXmin() const
virtual void SetSize(Int_t dsize)
const char Option_t
Definition: RtypesCore.h:62
virtual Bool_t CannotSplit() const
Returns true if the element cannot be split, false otherwise.
Bool_t IsaPointer() const
Return true if the data member is a pointer.
Double_t fXmin
pointer to element Streamer
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
TStreamerObjectPointer & operator=(const TStreamerObjectPointer &)
#define BIT(n)
Definition: Rtypes.h:75
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
UInt_t GetBaseCheckSum()
const char * GetCountClass() const
void SetCountVersion(Int_t count)
TStreamerObject & operator=(const TStreamerObject &)
virtual ~TStreamerObjectAny()
TStreamerObjectAny dtor.
Buffer base class used for serializing objects.
Definition: TBuffer.h:40
TStreamerSTLstring()
Default ctor.
virtual void SetTypeName(const char *name)
Int_t GetSize() const
Returns size of objectpointer in bytes.
TClass * GetNewClass() const
void SetReadFunc(ROOT::TSchemaRule::ReadFuncPtr_t val)
TStreamerString & operator=(const TStreamerString &)
virtual Bool_t IsTransient() const
Return kTRUE if the element represent an entity that is not written to the disk (transient members...
virtual Int_t GetSize() const
Returns size of this element in bytes.
Basic string class.
Definition: TString.h:129
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TStreamerBasicType & operator=(const TStreamerBasicType &)
TClass * fBaseClass
checksum of the base class (used during memberwise streaming)
const char * GetInclude() const
Return the proper include for this element.
virtual ~TStreamerObjectAnyPointer()
TStreamerObjectAnyPointer dtor.
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
ClassStreamerFunc_t fStreamerFunc
pointer to new base class if renamed
virtual Bool_t IsBase() const
Return kTRUE if the element represent a base class.
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
virtual ~TStreamerElement()
TStreamerElement dtor.
TStreamerString()
Default ctor.
Int_t GetBaseVersion()
ULong_t GetMethod() const
return address of counter
ULong_t GetMethod() const
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.
Int_t GetSize() const
Returns size of anyclass in bytes.
virtual Bool_t IsaPointer() const
Double_t GetFactor() const
TStreamerLoop & operator=(const TStreamerLoop &)
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
const char * Data() const
Definition: TString.h:344
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
ULong_t GetMethod() const
return offset of counter
virtual Bool_t IsaPointer() const
#define ClassDef(name, id)
Definition: Rtypes.h:297
Int_t GetSize() const
Returns size of anyclass in bytes.
TStreamerArtificial & operator=(const TStreamerArtificial &)
TStreamerObject()
Default ctor.
const char * GetCountClass() const
virtual Bool_t IsaPointer() const
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
const char * GetInclude() const
Return the proper include for this element.
const char * GetCountName() const
Int_t GetSize() const
Returns size of counter in bytes.
virtual void SetNewClass(TClass *cl)
virtual Bool_t IsaPointer() const
TStreamerBasicPointer & operator=(const TStreamerBasicPointer &)
void(* ReadFuncPtr_t)(char *, TVirtualObject *)
Definition: TSchemaRule.h:42
const char * GetInclude() const
Return the proper include for this element.
void SetSTLtype(Int_t t)
Int_t GetSize() const
Returns size of baseclass in bytes.
void SetCtype(Int_t t)
UInt_t & fBaseCheckSum
const char * GetInclude() const
Return the proper include for this element.
void SetCountClass(const char *clname)
Method or function calling interface.
Definition: TMethodCall.h:37
virtual ~TStreamerObject()
TStreamerObject dtor.
virtual ~TStreamerString()
TStreamerString dtor.
void SetCountVersion(Int_t count)
virtual const char * GetInclude() const
Int_t GetCountVersion() const
virtual ~TStreamerBasicPointer()
TStreamerBasicPointer dtor.
Int_t GetArrayDim() const
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 ls(Option_t *option="") const
Print the content of the element.
virtual void SetStreamer(TMemberStreamer *streamer)
set pointer to Streamer function for this element
TStreamerObjectAnyPointer()
Default ctor.
void SetErrorMessage(const char *msg)
Int_t fTObjectOffset
element offset in class
virtual void ls(Option_t *option="") const
Print the content of the element.
virtual ~TStreamerSTLstring()
TStreamerSTLstring dtor.
virtual Bool_t HasCounter() const
TStreamerObjectPointer()
Default ctor.
Int_t GetSize() const
Returns size of basicpointer in bytes.
Int_t GetCtype() const
SVector< double, 2 > v
Definition: Dict.h:5
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
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.
void SetCountClass(const char *clname)
Int_t GetMaxIndex(Int_t i) const
TClass * GetNewBaseClass()
void SetBaseCheckSum(UInt_t cs)
TStreamerLoop()
pointer to basic type counter
Int_t GetSTLtype() const
Int_t WriteBuffer(TBuffer &b, char *pointer)
Write the base class into the buffer.
unsigned int UInt_t
Definition: RtypesCore.h:42
TStreamerElement()
Default ctor.
virtual Int_t GetExecID() const
Returns the TExec id for the EXEC instruction in the comment field of a TRef data member...
Int_t GetCounter() const
virtual Bool_t IsaPointer() const
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.
Definition: TClass.h:71
void SetCountName(const char *name)
virtual ~TStreamerObjectPointer()
TStreamerObjectPointer dtor.
Int_t GetSize() const
Returns size of objectpointer in bytes.
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.
const Bool_t kFALSE
Definition: RtypesCore.h:92
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
Int_t GetSize() const
Returns size of this element in bytes.
TStreamerObjectAny & operator=(const TStreamerObjectAny &)
TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
const char * GetCountName() const
void(* ReadRawFuncPtr_t)(char *, TBuffer &)
Definition: TSchemaRule.h:43
virtual ~TStreamerLoop()
TStreamerLoop dtor.
virtual void SetStreamer(TMemberStreamer *streamer)
Set pointer to Streamer function for this element NOTE: we do not take ownership. ...
ULong_t GetMethod() const
return address of counter
double Double_t
Definition: RtypesCore.h:55
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
virtual TClass * GetClassPointer() const
Returns a pointer to the TClass of this element.
const char * GetInclude() const
Return the proper include for this element.
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition: Rtypes.h:62
int type
Definition: TGX11.cxx:120
void SetNewBaseClass(TClass *cl)
unsigned long ULong_t
Definition: RtypesCore.h:51
virtual void ls(Option_t *option="") const
Print the content of the element.
virtual void SetType(Int_t dtype)
Int_t GetNewType() const
virtual Bool_t IsOldFormat(const char *newTypeName)
The early 3.00/00 and 3.01/01 versions used to store dm-&gt;GetTypeName instead of dm-&gt;GetFullTypename i...
Int_t GetSize() const
Returns size of object class in bytes.
virtual void SetTObjectOffset(Int_t tobjoffset)
TStreamerSTL & operator=(const TStreamerSTL &)
TMemberStreamer * GetStreamer() const
Return the local streamer object.
Bool_t IsBase() const
Return kTRUE if the element represent a base class.
Int_t GetSize() const
Returns size of STL container in bytes.
TClass * fNewClass
pointer to class of object
const char * GetErrorMessage() const
TMemberStreamer * fStreamer
new element class when reading
TClass * GetClass() const
const char * GetInclude() const
Return the proper include for this element.
Bool_t IsBase() const
Return kTRUE if the element represent a base class.
virtual ULong_t GetMethod() const
virtual void SetArrayDim(Int_t dim)
Set number of array dimensions.
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition: Rtypes.h:63
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 GetSequenceType(TString &type) const
Fill type with the string representation of sequence information including &#39;cached&#39;,&#39;repeat&#39;,&#39;write&#39; or &#39;nodelete&#39;.
void SetArrayDim(Int_t dim)
Set number of array dimensions.
const char * GetInclude() const
Return the proper include for this element.
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
Definition: TRolke.cxx:630
virtual Bool_t HasCounter() const
Int_t ReadBuffer(TBuffer &b, char *pointer)
Read the content of the buffer.
Int_t GetType() const
TVirtualStreamerInfo * GetBaseStreamerInfo() const
Double_t fFactor
Maximum of data member if a range is specified [xmin,xmax,nbits].
virtual void Init(TVirtualStreamerInfo *obj=0)
Setup the element.
void SetBaseVersion(Int_t v)
TString fErrorMsg
Pointer to the current StreamerInfo for the baset class.
ROOT::TSchemaRule::ReadRawFuncPtr_t GetReadRawFunc()
virtual const char * GetFullName() const
Return element name including dimensions, if any Note that this function stores the name into a stati...
TStreamerBasicType * fCounter
Abstract Interface class describing Streamer information for one class.
virtual ~TStreamerSTL()
TStreamerSTL dtor.
Int_t GetSize() const
Returns size of anyclass in bytes.
const Bool_t kTRUE
Definition: RtypesCore.h:91
TClass * fNewBaseClass
pointer to base class
TVirtualStreamerInfo * fStreamerInfo
Pointer to a wrapper around a custom convertion streamer member function.
Double_t GetXmax() const
void SetReadRawFunc(ROOT::TSchemaRule::ReadRawFuncPtr_t val)
TStreamerElement & operator=(const TStreamerElement &)
void InitStreaming()
Error message in case of checksum/version mismatch.
char name[80]
Definition: TGX11.cxx:109
virtual Bool_t HasCounter() const
TStreamerObjectAny()
Default ctor.
TStreamerBasicType * fCounter
TString fTypeName
new element type when reading
Int_t GetArrayLength() const
void SetCountName(const char *name)
const char * GetInclude() const
Return the proper include for this element.