ROOT 6.10/09 Reference Guide |
Abstract Interface class describing Streamer information for one class.
Definition at line 37 of file TVirtualStreamerInfo.h.
Public Types | |
enum | { kCannotOptimize = BIT(12), kIgnoreTObjectStreamer = BIT(13), kRecovered = BIT(14), kNeedCheck = BIT(15), kIsCompiled = BIT(16), kBuildOldUsed = BIT(17), kBuildRunning = BIT(18) } |
enum | EReadWrite { kBase = 0, kOffsetL = 20, kOffsetP = 40, kCounter = 6, kCharStar = 7, kChar = 1, kShort = 2, kInt = 3, kLong = 4, kFloat = 5, kDouble = 8, kDouble32 = 9, kUChar = 11, kUShort = 12, kUInt = 13, kULong = 14, kBits = 15, kLong64 = 16, kULong64 = 17, kBool = 18, kFloat16 = 19, kObject = 61, kAny = 62, kObjectp = 63, kObjectP = 64, kTString = 65, kTObject = 66, kTNamed = 67, kAnyp = 68, kAnyP = 69, kAnyPnoVT = 70, kSTLp = 71, kSkip = 100, kSkipL = 120, kSkipP = 140, kConv = 200, kConvL = 220, kConvP = 240, kSTL = ROOT::kSTLany, kSTLstring = ROOT::kSTLstring, kStreamer = 500, kStreamLoop = 501, kCache = 600, kArtificial = 1000, kCacheNew = 1001, kCacheDelete = 1002, kNeedObjectForVirtualBaseClass = 99997, kMissing = 99999 } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
Public Member Functions | |
TVirtualStreamerInfo () | |
Default constructor. More... | |
TVirtualStreamerInfo (TClass *) | |
Default constructor. More... | |
virtual | ~TVirtualStreamerInfo () |
Destructor. More... | |
virtual void | Build ()=0 |
virtual void | BuildCheck (TFile *file=0)=0 |
virtual void | BuildEmulated (TFile *file)=0 |
virtual Bool_t | BuildFor (const TClass *cl)=0 |
virtual void | BuildOld ()=0 |
virtual void | CallShowMembers (const void *obj, TMemberInspector &insp, Bool_t isTransient) const =0 |
virtual void | Clear (Option_t *)=0 |
Set name and title to empty strings (""). More... | |
virtual Bool_t | CompareContent (TClass *cl, TVirtualStreamerInfo *info, Bool_t warn, Bool_t complete, TFile *file)=0 |
virtual void | Compile ()=0 |
virtual void | DeleteArray (void *p, Bool_t dtorOnly=kFALSE)=0 |
virtual void | Destructor (void *p, Bool_t dtorOnly=kFALSE)=0 |
virtual void | ForceWriteInfo (TFile *file, Bool_t force=kFALSE)=0 |
virtual TClassStreamer * | GenEmulatedClassStreamer (const char *class_name, Bool_t silent)=0 |
virtual TVirtualCollectionProxy * | GenEmulatedProxy (const char *class_name, Bool_t silent)=0 |
virtual Int_t | GenerateHeaderFile (const char *dirname, const TList *subClasses=0, const TList *extrainfos=0)=0 |
virtual TClassStreamer * | GenExplicitClassStreamer (const ::ROOT::Detail::TCollectionProxyInfo &info, TClass *cl)=0 |
virtual TVirtualCollectionProxy * | GenExplicitProxy (const ::ROOT::Detail::TCollectionProxyInfo &info, TClass *cl)=0 |
virtual TClass * | GetActualClass (const void *obj) const =0 |
virtual UInt_t | GetCheckSum () const =0 |
virtual TClass * | GetClass () const =0 |
virtual Int_t | GetClassVersion () const =0 |
virtual TStreamerElement * | GetElem (Int_t id) const =0 |
virtual TStreamerElement * | GetElement (Int_t id) const =0 |
virtual Int_t | GetElementOffset (Int_t id) const =0 |
virtual TObjArray * | GetElements () const =0 |
virtual Int_t | GetNumber () const =0 |
virtual Int_t | GetOffset (const char *) const =0 |
virtual Int_t | GetOffset (Int_t id) const =0 |
virtual Version_t | GetOldVersion () const =0 |
virtual Int_t | GetOnFileClassVersion () const =0 |
virtual Int_t | GetSize () const =0 |
virtual TStreamerElement * | GetStreamerElement (const char *datamember, Int_t &offset) const =0 |
Bool_t | IsBuilt () const |
Bool_t | IsCompiled () const |
Bool_t | IsOptimized () const |
Int_t | IsRecovered () const |
virtual void | ls (Option_t *option="") const =0 |
List TNamed name and title. More... | |
virtual void * | New (void *obj=0)=0 |
virtual void * | NewArray (Long_t nElements, void *ary=0)=0 |
virtual TVirtualStreamerInfo * | NewInfo (TClass *cl)=0 |
virtual void | SetCheckSum (UInt_t checksum)=0 |
virtual void | SetClass (TClass *cl)=0 |
virtual void | SetClassVersion (Int_t vers)=0 |
virtual void | TagFile (TFile *fFile)=0 |
virtual void | Update (const TClass *oldClass, TClass *newClass)=0 |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TString &name, const TString &title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. More... | |
virtual | ~TNamed () |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. More... | |
virtual void | Copy (TObject &named) const |
Copy this to obj. More... | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | IsSortable () const |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual void | Print (Option_t *option="") const |
Print TNamed name and title. More... | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. More... | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). More... | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
Bool_t | IsOnHeap () const |
Bool_t | IsZombie () const |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
void | SetBit (UInt_t f) |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Static Public Member Functions | |
static Bool_t | CanDelete () |
static function returning true if ReadBuffer can delete object More... | |
static Bool_t | CanOptimize () |
static function returning true if optimization can be on More... | |
static TVirtualStreamerInfo * | Factory () |
Static function returning a pointer to a new TVirtualStreamerInfo object. More... | |
static TStreamerBasicType * | GetElementCounter (const char *countName, TClass *cl) |
Get pointer to a TStreamerBasicType in TClass *cl static function. More... | |
static const char * | GetElementCounterStart (const char *dmTitle) |
Given a comment/title declaring an array counter, for example: //[fArraySize] array of size fArraySize return the start of the array dimension declaration start in the string (so the location of the 'f'. More... | |
static Bool_t | GetStreamMemberWise () |
Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible. More... | |
static void | Optimize (Bool_t opt=kTRUE) |
This is a static function. More... | |
static void | SetCanDelete (Bool_t opt=kTRUE) |
This is a static function. More... | |
static void | SetFactory (TVirtualStreamerInfo *factory) |
static function: Set the StreamerInfo factory More... | |
static Bool_t | SetStreamMemberWise (Bool_t enable=kTRUE) |
Set whether the TStreamerInfos will save the collections in "member-wise" order whenever possible. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Protected Member Functions | |
TVirtualStreamerInfo (const TVirtualStreamerInfo &info) | |
copy constructor More... | |
TVirtualStreamerInfo & | operator= (const TVirtualStreamerInfo &) |
assignment operator More... | |
void | ResetIsCompiled () |
void | SetIsCompiled () |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Protected Attributes | |
Bool_t | fIsBuilt: 1 |
true if the StreamerInfo has been optimized More... | |
std::atomic< Bool_t > | fIsCompiled |
true if the StreamerInfo has been 'built' (i.e. has all the StreamerElements it should have) More... | |
Bool_t | fOptimized: 1 |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Static Protected Attributes | |
static Bool_t | fgCanDelete = kTRUE |
true if the StreamerInfo has been compiled (i.e. fully built, ready to use for streaming). More... | |
static TVirtualStreamerInfo * | fgInfoFactory = 0 |
static Bool_t | fgOptimize = kTRUE |
static Bool_t | fgStreamMemberWise = kTRUE |
#include <TVirtualStreamerInfo.h>
anonymous enum |
Enumerator | |
---|---|
kCannotOptimize | |
kIgnoreTObjectStreamer | |
kRecovered | |
kNeedCheck | |
kIsCompiled | |
kBuildOldUsed | |
kBuildRunning |
Definition at line 65 of file TVirtualStreamerInfo.h.
Definition at line 74 of file TVirtualStreamerInfo.h.
|
protected |
copy constructor
Definition at line 52 of file TVirtualStreamerInfo.cxx.
TVirtualStreamerInfo::TVirtualStreamerInfo | ( | ) |
Default constructor.
Definition at line 37 of file TVirtualStreamerInfo.cxx.
TVirtualStreamerInfo::TVirtualStreamerInfo | ( | TClass * | cl | ) |
Default constructor.
Definition at line 44 of file TVirtualStreamerInfo.cxx.
|
virtual |
Destructor.
Definition at line 71 of file TVirtualStreamerInfo.cxx.
|
pure virtual |
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
static |
static function returning true if ReadBuffer can delete object
Definition at line 78 of file TVirtualStreamerInfo.cxx.
|
static |
static function returning true if optimization can be on
Definition at line 86 of file TVirtualStreamerInfo.cxx.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
static |
Static function returning a pointer to a new TVirtualStreamerInfo object.
If the Info factory does not exist, it is created via the plugin manager. In reality the factory is an empty TStreamerInfo object.
Definition at line 177 of file TVirtualStreamerInfo.cxx.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
static |
Get pointer to a TStreamerBasicType in TClass *cl static function.
Definition at line 117 of file TVirtualStreamerInfo.cxx.
|
static |
Given a comment/title declaring an array counter, for example:
return the start of the array dimension declaration start in the string (so the location of the 'f'.
Definition at line 99 of file TVirtualStreamerInfo.cxx.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
static |
Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.
The default is to store member-wise.
A collection can be saved member wise when it contain is guaranteed to be homogeneous. For example std::vector<THit> can be stored member wise, while std::vector<THit*> can not (possible use of polymorphism).
Definition at line 155 of file TVirtualStreamerInfo.cxx.
|
inline |
Definition at line 146 of file TVirtualStreamerInfo.h.
|
inline |
Definition at line 147 of file TVirtualStreamerInfo.h.
|
inline |
Definition at line 148 of file TVirtualStreamerInfo.h.
|
inline |
Definition at line 149 of file TVirtualStreamerInfo.h.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
|
protected |
assignment operator
Definition at line 60 of file TVirtualStreamerInfo.cxx.
This is a static function.
Set optimization option. When this option is activated (default), consecutive data members of the same type are merged into an array (faster). Optimization must be off in TTree split mode.
Definition at line 167 of file TVirtualStreamerInfo.cxx.
|
inlineprotected |
Definition at line 53 of file TVirtualStreamerInfo.h.
This is a static function.
Set object delete option. When this option is activated (default), ReadBuffer automatically delete objects when a data member is a pointer to an object. If your constructor is not presetting pointers to 0, you must call this static function TStreamerInfo::SetCanDelete(kFALSE);
Definition at line 220 of file TVirtualStreamerInfo.cxx.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
Implemented in TStreamerInfo.
|
static |
static function: Set the StreamerInfo factory
Definition at line 228 of file TVirtualStreamerInfo.cxx.
|
inlineprotected |
Definition at line 57 of file TVirtualStreamerInfo.h.
Set whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.
The default is to store member-wise.
Definition at line 243 of file TVirtualStreamerInfo.cxx.
Implemented in TStreamerInfo.
|
pure virtual |
Implemented in TStreamerInfo.
true if the StreamerInfo has been compiled (i.e. fully built, ready to use for streaming).
Definition at line 45 of file TVirtualStreamerInfo.h.
|
staticprotected |
Definition at line 48 of file TVirtualStreamerInfo.h.
Definition at line 46 of file TVirtualStreamerInfo.h.
Definition at line 47 of file TVirtualStreamerInfo.h.
|
protected |
true if the StreamerInfo has been optimized
Definition at line 41 of file TVirtualStreamerInfo.h.
|
protected |
true if the StreamerInfo has been 'built' (i.e. has all the StreamerElements it should have)
Definition at line 42 of file TVirtualStreamerInfo.h.
|
protected |
Definition at line 40 of file TVirtualStreamerInfo.h.