Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TVirtualStreamerInfo Class Referenceabstract

Abstract Interface class describing Streamer information for one class.

Definition at line 44 of file TVirtualStreamerInfo.h.

Public Types

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 ,
  kLegacyChar = 10 , 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 , kNoType = -1 , kUnsupportedConversion = -2 , kUnset = -3
}
 EReadWrite Enumerator. More...
 
enum  EStatusBits {
  kCannotOptimize = (1ULL << ( 12 )) , kIgnoreTObjectStreamer = (1ULL << ( 13 )) , kRecovered = (1ULL << ( 14 )) , kNeedCheck = (1ULL << ( 15 )) ,
  kIsCompiled = (1ULL << ( 16 )) , kBuildOldUsed = (1ULL << ( 17 )) , kBuildRunning = (1ULL << ( 18 ))
}
 
enum class  EStatusBitsDupExceptions { kIgnoreTObjectStreamer = TVirtualStreamerInfo::kIgnoreTObjectStreamer }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 

Public Member Functions

 TVirtualStreamerInfo ()
 Default constructor.
 
 TVirtualStreamerInfo (TClass *)
 Default constructor.
 
virtual ~TVirtualStreamerInfo ()
 Destructor.
 
virtual void Build (Bool_t isTransient=kFALSE)=0
 
virtual void BuildCheck (TFile *file=nullptr, Bool_t load=kTRUE)=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 *="") override=0
 Set name and title to empty strings ("").
 
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 TClassStreamerGenEmulatedClassStreamer (const char *class_name, Bool_t silent)=0
 
virtual TVirtualCollectionProxyGenEmulatedProxy (const char *class_name, Bool_t silent)=0
 
virtual Int_t GenerateHeaderFile (const char *dirname, const TList *subClasses=nullptr, const TList *extrainfos=nullptr)=0
 
virtual TVirtualStreamerInfoGenerateInfoForPair (const std::string &firstname, const std::string &secondname, bool silent, size_t hint_pair_offset, size_t hint_pair_size)=0
 
virtual TVirtualStreamerInfoGenerateInfoForPair (const std::string &pairclassname, bool silent, size_t hint_pair_offset, size_t hint_pair_size)=0
 Generate the TClass and TStreamerInfo for the requested pair.
 
virtual TClassStreamerGenExplicitClassStreamer (const ::ROOT::Detail::TCollectionProxyInfo &info, TClass *cl)=0
 
virtual TVirtualCollectionProxyGenExplicitProxy (const ::ROOT::Detail::TCollectionProxyInfo &info, TClass *cl)=0
 
virtual TClassGetActualClass (const void *obj) const =0
 
virtual UInt_t GetCheckSum () const =0
 
virtual TClassGetClass () const =0
 
virtual Int_t GetClassVersion () const =0
 
virtual TStreamerElementGetElem (Int_t id) const =0
 
virtual TStreamerElementGetElement (Int_t id) const =0
 
virtual Int_t GetElementOffset (Int_t id) const =0
 
virtual TObjArrayGetElements () 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 TStreamerElementGetStreamerElement (const char *datamember, Int_t &offset) const =0
 
TClassIsA () const override
 
Bool_t IsBuilt () const
 
Bool_t IsCompiled () const
 
Bool_t IsOptimized () const
 
Int_t IsRecovered () const
 
virtual void ls (Option_t *="") const override=0
 List TNamed name and title.
 
virtual void * New (void *obj=nullptr)=0
 
virtual void * NewArray (Long_t nElements, void *ary=nullptr)=0
 
virtual TVirtualStreamerInfoNewInfo (TClass *cl)=0
 
virtual void SetCheckSum (UInt_t checksum)=0
 
virtual void SetClass (TClass *cl)=0
 
virtual void SetClassVersion (Int_t vers)=0
 
void Streamer (TBuffer &) override
 Stream an object of class TVirtualStreamerInfo.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
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 TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
Bool_t IsSortable () const override
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE 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).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
 
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)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE 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.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static Bool_t CanDelete ()
 static function returning true if ReadBuffer can delete object
 
static Bool_t CanOptimize ()
 static function returning true if optimization can be on
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualStreamerInfoFactory ()
 Static function returning a pointer to a new TVirtualStreamerInfo object.
 
static TStreamerBasicTypeGetElementCounter (const char *countName, TClass *cl)
 Get pointer to a TStreamerBasicType in TClass *cl static function.
 
static const char * GetElementCounterStart (const char *dmTitle)
 Given a comment/title declaring an array counter, for example:
 
static Bool_t GetStreamMemberWise ()
 Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.
 
static void Optimize (Bool_t opt=kTRUE)
 This is a static function.
 
static void SetCanDelete (Bool_t opt=kTRUE)
 This is a static function.
 
static void SetFactory (TVirtualStreamerInfo *factory)
 static function: Set the StreamerInfo factory
 
static Bool_t SetStreamMemberWise (Bool_t enable=kTRUE)
 Set whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Protected Member Functions

 TVirtualStreamerInfo (const TVirtualStreamerInfo &info)
 copy constructor
 
TVirtualStreamerInfooperator= (const TVirtualStreamerInfo &)
 assignment operator
 
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).
 
void MakeZombie ()
 

Protected Attributes

Bool_t fIsBuilt: 1
 true if the StreamerInfo has been optimized
 
std::atomic< Bool_tfIsCompiled
 true if the StreamerInfo has been 'built' (i.e. has all the StreamerElements it should have)
 
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).
 
static TVirtualStreamerInfofgInfoFactory = nullptr
 
static Bool_t fgOptimize = kTRUE
 
static Bool_t fgStreamMemberWise = kTRUE
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 

#include <TVirtualStreamerInfo.h>

Inheritance diagram for TVirtualStreamerInfo:
[legend]

Member Enumeration Documentation

◆ EReadWrite

EReadWrite Enumerator.

Enum Constant Description
kBase Base class element
kOffsetL Fixed size array
kOffsetP Pointer to object
kCounter Counter for array size
kCharStar Pointer to array of char
kLegacyChar Equal to TDataType's kchar
kBits TObject::fBits in case of a referenced object
kObject Class derived from TObject, or for TStreamerSTL::fCtype non-pointer elements
kObjectp Class* derived from TObject and with comment field //->Class, or for TStreamerSTL::fCtype: pointer elements
kObjectP Class* derived from TObject and with NO comment field //->Class
kAny Class not derived from TObject
kAnyp Class* not derived from TObject with comment field //->Class
kAnyP Class* not derived from TObject with NO comment field //->Class
kAnyPnoVT Class* not derived from TObject with NO comment field //->Class and Class has NO virtual table
kSTLp Pointer to STL container
kTString TString, special case
kTObject TObject, special case
kTNamed TNamed , special case
kCache Cache the value in memory than is not part of the object but is accessible via a SchemaRule
kNoType Indicator that we don't know the current type because the member does not exist in memory
kUnsupportedConversion The member type onfile and in memory can not be converted
kUnset default value
Enumerator
kBase 
kOffsetL 
kOffsetP 
kCounter 
kCharStar 
kChar 
kShort 
kInt 
kLong 
kFloat 
kDouble 
kDouble32 
kLegacyChar 
kUChar 

Equal to TDataType's kchar.

kUShort 
kUInt 
kULong 
kBits 
kLong64 
kULong64 
kBool 
kFloat16 
kObject 
kAny 
kObjectp 
kObjectP 
kTString 
kTObject 
kTNamed 
kAnyp 
kAnyP 
kAnyPnoVT 
kSTLp 
kSkip 
kSkipL 
kSkipP 
kConv 
kConvL 
kConvP 
kSTL 
kSTLstring 
kStreamer 
kStreamLoop 
kCache 
kArtificial 
kCacheNew 
kCacheDelete 
kNeedObjectForVirtualBaseClass 
kMissing 
kNoType 
kUnsupportedConversion 

Type corresponding to a 'missing' data member (with kMissing offset)

kUnset 

Definition at line 116 of file TVirtualStreamerInfo.h.

◆ EStatusBits

Enumerator
kCannotOptimize 
kIgnoreTObjectStreamer 
kRecovered 
kNeedCheck 
kIsCompiled 
kBuildOldUsed 
kBuildRunning 

Definition at line 72 of file TVirtualStreamerInfo.h.

◆ EStatusBitsDupExceptions

Enumerator
kIgnoreTObjectStreamer 

Definition at line 82 of file TVirtualStreamerInfo.h.

Constructor & Destructor Documentation

◆ TVirtualStreamerInfo() [1/3]

TVirtualStreamerInfo::TVirtualStreamerInfo ( const TVirtualStreamerInfo info)
protected

copy constructor

Definition at line 52 of file TVirtualStreamerInfo.cxx.

◆ TVirtualStreamerInfo() [2/3]

TVirtualStreamerInfo::TVirtualStreamerInfo ( )

Default constructor.

Definition at line 37 of file TVirtualStreamerInfo.cxx.

◆ TVirtualStreamerInfo() [3/3]

TVirtualStreamerInfo::TVirtualStreamerInfo ( TClass cl)

Default constructor.

Definition at line 44 of file TVirtualStreamerInfo.cxx.

◆ ~TVirtualStreamerInfo()

TVirtualStreamerInfo::~TVirtualStreamerInfo ( )
virtual

Destructor.

Definition at line 71 of file TVirtualStreamerInfo.cxx.

Member Function Documentation

◆ Build()

virtual void TVirtualStreamerInfo::Build ( Bool_t  isTransient = kFALSE)
pure virtual

Implemented in TStreamerInfo.

◆ BuildCheck()

virtual void TVirtualStreamerInfo::BuildCheck ( TFile file = nullptr,
Bool_t  load = kTRUE 
)
pure virtual

Implemented in TStreamerInfo.

◆ BuildEmulated()

virtual void TVirtualStreamerInfo::BuildEmulated ( TFile file)
pure virtual

Implemented in TStreamerInfo.

◆ BuildFor()

virtual Bool_t TVirtualStreamerInfo::BuildFor ( const TClass cl)
pure virtual

Implemented in TStreamerInfo.

◆ BuildOld()

virtual void TVirtualStreamerInfo::BuildOld ( )
pure virtual

Implemented in TStreamerInfo.

◆ CallShowMembers()

virtual void TVirtualStreamerInfo::CallShowMembers ( const void *  obj,
TMemberInspector insp,
Bool_t  isTransient 
) const
pure virtual

Implemented in TStreamerInfo.

◆ CanDelete()

Bool_t TVirtualStreamerInfo::CanDelete ( )
static

static function returning true if ReadBuffer can delete object

Definition at line 78 of file TVirtualStreamerInfo.cxx.

◆ CanOptimize()

Bool_t TVirtualStreamerInfo::CanOptimize ( )
static

static function returning true if optimization can be on

Definition at line 86 of file TVirtualStreamerInfo.cxx.

◆ Class()

static TClass * TVirtualStreamerInfo::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TVirtualStreamerInfo::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TVirtualStreamerInfo::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 216 of file TVirtualStreamerInfo.h.

◆ Clear()

virtual void TVirtualStreamerInfo::Clear ( Option_t option = "")
overridepure virtual

Set name and title to empty strings ("").

Reimplemented from TNamed.

Implemented in TStreamerInfo.

◆ CompareContent()

virtual Bool_t TVirtualStreamerInfo::CompareContent ( TClass cl,
TVirtualStreamerInfo info,
Bool_t  warn,
Bool_t  complete,
TFile file 
)
pure virtual

Implemented in TStreamerInfo.

◆ Compile()

virtual void TVirtualStreamerInfo::Compile ( )
pure virtual

Implemented in TStreamerInfo.

◆ DeclFileName()

static const char * TVirtualStreamerInfo::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 216 of file TVirtualStreamerInfo.h.

◆ DeleteArray()

virtual void TVirtualStreamerInfo::DeleteArray ( void *  p,
Bool_t  dtorOnly = kFALSE 
)
pure virtual

Implemented in TStreamerInfo.

◆ Destructor()

virtual void TVirtualStreamerInfo::Destructor ( void *  p,
Bool_t  dtorOnly = kFALSE 
)
pure virtual

Implemented in TStreamerInfo.

◆ Factory()

TVirtualStreamerInfo * TVirtualStreamerInfo::Factory ( )
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.

◆ ForceWriteInfo()

virtual void TVirtualStreamerInfo::ForceWriteInfo ( TFile file,
Bool_t  force = kFALSE 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenEmulatedClassStreamer()

virtual TClassStreamer * TVirtualStreamerInfo::GenEmulatedClassStreamer ( const char *  class_name,
Bool_t  silent 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenEmulatedProxy()

virtual TVirtualCollectionProxy * TVirtualStreamerInfo::GenEmulatedProxy ( const char *  class_name,
Bool_t  silent 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenerateHeaderFile()

virtual Int_t TVirtualStreamerInfo::GenerateHeaderFile ( const char *  dirname,
const TList subClasses = nullptr,
const TList extrainfos = nullptr 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenerateInfoForPair() [1/2]

virtual TVirtualStreamerInfo * TVirtualStreamerInfo::GenerateInfoForPair ( const std::string &  firstname,
const std::string &  secondname,
bool  silent,
size_t  hint_pair_offset,
size_t  hint_pair_size 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenerateInfoForPair() [2/2]

virtual TVirtualStreamerInfo * TVirtualStreamerInfo::GenerateInfoForPair ( const std::string &  pairclassname,
bool  silent,
size_t  hint_pair_offset,
size_t  hint_pair_size 
)
pure virtual

Generate the TClass and TStreamerInfo for the requested pair.

This creates a TVirtualStreamerInfo for the pair and trigger the BuildCheck/Old to provokes the creation of the corresponding TClass. This relies on the dictionary for std::pair<const int, int> to already exist (or the interpreter information being available) as it is used as a template.

Note
The returned object is owned by the caller.

Implemented in TStreamerInfo.

◆ GenExplicitClassStreamer()

virtual TClassStreamer * TVirtualStreamerInfo::GenExplicitClassStreamer ( const ::ROOT::Detail::TCollectionProxyInfo info,
TClass cl 
)
pure virtual

Implemented in TStreamerInfo.

◆ GenExplicitProxy()

virtual TVirtualCollectionProxy * TVirtualStreamerInfo::GenExplicitProxy ( const ::ROOT::Detail::TCollectionProxyInfo info,
TClass cl 
)
pure virtual

Implemented in TStreamerInfo.

◆ GetActualClass()

virtual TClass * TVirtualStreamerInfo::GetActualClass ( const void *  obj) const
pure virtual

Implemented in TStreamerInfo.

◆ GetCheckSum()

virtual UInt_t TVirtualStreamerInfo::GetCheckSum ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetClass()

virtual TClass * TVirtualStreamerInfo::GetClass ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetClassVersion()

virtual Int_t TVirtualStreamerInfo::GetClassVersion ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetElem()

virtual TStreamerElement * TVirtualStreamerInfo::GetElem ( Int_t  id) const
pure virtual

Implemented in TStreamerInfo.

◆ GetElement()

virtual TStreamerElement * TVirtualStreamerInfo::GetElement ( Int_t  id) const
pure virtual

Implemented in TStreamerInfo.

◆ GetElementCounter()

TStreamerBasicType * TVirtualStreamerInfo::GetElementCounter ( const char *  countName,
TClass cl 
)
static

Get pointer to a TStreamerBasicType in TClass *cl static function.

Definition at line 117 of file TVirtualStreamerInfo.cxx.

◆ GetElementCounterStart()

const char * TVirtualStreamerInfo::GetElementCounterStart ( const char *  dmTitle)
static

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'.

Definition at line 99 of file TVirtualStreamerInfo.cxx.

◆ GetElementOffset()

virtual Int_t TVirtualStreamerInfo::GetElementOffset ( Int_t  id) const
pure virtual

Implemented in TStreamerInfo.

◆ GetElements()

virtual TObjArray * TVirtualStreamerInfo::GetElements ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetNumber()

virtual Int_t TVirtualStreamerInfo::GetNumber ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetOffset() [1/2]

virtual Int_t TVirtualStreamerInfo::GetOffset ( const char *  ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetOffset() [2/2]

virtual Int_t TVirtualStreamerInfo::GetOffset ( Int_t  id) const
pure virtual

Implemented in TStreamerInfo.

◆ GetOldVersion()

virtual Version_t TVirtualStreamerInfo::GetOldVersion ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetOnFileClassVersion()

virtual Int_t TVirtualStreamerInfo::GetOnFileClassVersion ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetSize()

virtual Int_t TVirtualStreamerInfo::GetSize ( ) const
pure virtual

Implemented in TStreamerInfo.

◆ GetStreamerElement()

virtual TStreamerElement * TVirtualStreamerInfo::GetStreamerElement ( const char *  datamember,
Int_t offset 
) const
pure virtual

Implemented in TStreamerInfo.

◆ GetStreamMemberWise()

Bool_t TVirtualStreamerInfo::GetStreamMemberWise ( )
static

Return whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.

The default is to store member-wise.

  • kTRUE indicates member-wise storing
  • kFALSE inddicates object-wise storing

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.

◆ IsA()

TClass * TVirtualStreamerInfo::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TNamed.

Definition at line 216 of file TVirtualStreamerInfo.h.

◆ IsBuilt()

Bool_t TVirtualStreamerInfo::IsBuilt ( ) const
inline

Definition at line 172 of file TVirtualStreamerInfo.h.

◆ IsCompiled()

Bool_t TVirtualStreamerInfo::IsCompiled ( ) const
inline

Definition at line 173 of file TVirtualStreamerInfo.h.

◆ IsOptimized()

Bool_t TVirtualStreamerInfo::IsOptimized ( ) const
inline

Definition at line 174 of file TVirtualStreamerInfo.h.

◆ IsRecovered()

Int_t TVirtualStreamerInfo::IsRecovered ( ) const
inline

Definition at line 175 of file TVirtualStreamerInfo.h.

◆ ls()

virtual void TVirtualStreamerInfo::ls ( Option_t option = "") const
overridepure virtual

List TNamed name and title.

Reimplemented from TNamed.

Implemented in TStreamerInfo.

◆ New()

virtual void * TVirtualStreamerInfo::New ( void *  obj = nullptr)
pure virtual

Implemented in TStreamerInfo.

◆ NewArray()

virtual void * TVirtualStreamerInfo::NewArray ( Long_t  nElements,
void *  ary = nullptr 
)
pure virtual

Implemented in TStreamerInfo.

◆ NewInfo()

virtual TVirtualStreamerInfo * TVirtualStreamerInfo::NewInfo ( TClass cl)
pure virtual

Implemented in TStreamerInfo.

◆ operator=()

TVirtualStreamerInfo & TVirtualStreamerInfo::operator= ( const TVirtualStreamerInfo info)
protected

assignment operator

Definition at line 60 of file TVirtualStreamerInfo.cxx.

◆ Optimize()

void TVirtualStreamerInfo::Optimize ( Bool_t  opt = kTRUE)
static

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.

◆ ResetIsCompiled()

void TVirtualStreamerInfo::ResetIsCompiled ( )
inlineprotected

Definition at line 60 of file TVirtualStreamerInfo.h.

◆ SetCanDelete()

void TVirtualStreamerInfo::SetCanDelete ( Bool_t  opt = kTRUE)
static

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.

◆ SetCheckSum()

virtual void TVirtualStreamerInfo::SetCheckSum ( UInt_t  checksum)
pure virtual

Implemented in TStreamerInfo.

◆ SetClass()

virtual void TVirtualStreamerInfo::SetClass ( TClass cl)
pure virtual

Implemented in TStreamerInfo.

◆ SetClassVersion()

virtual void TVirtualStreamerInfo::SetClassVersion ( Int_t  vers)
pure virtual

Implemented in TStreamerInfo.

◆ SetFactory()

void TVirtualStreamerInfo::SetFactory ( TVirtualStreamerInfo factory)
static

static function: Set the StreamerInfo factory

Definition at line 228 of file TVirtualStreamerInfo.cxx.

◆ SetIsCompiled()

void TVirtualStreamerInfo::SetIsCompiled ( )
inlineprotected

Definition at line 64 of file TVirtualStreamerInfo.h.

◆ SetStreamMemberWise()

Bool_t TVirtualStreamerInfo::SetStreamMemberWise ( Bool_t  enable = kTRUE)
static

Set whether the TStreamerInfos will save the collections in "member-wise" order whenever possible.

The default is to store member-wise.

  • kTRUE indicates member-wise storing
  • kFALSE indicates object-wise storing This function returns the previous value of fgStreamMemberWise.

Definition at line 243 of file TVirtualStreamerInfo.cxx.

◆ Streamer()

void TVirtualStreamerInfo::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TVirtualStreamerInfo.

Reimplemented from TNamed.

Definition at line 257 of file TVirtualStreamerInfo.cxx.

◆ StreamerNVirtual()

void TVirtualStreamerInfo::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 216 of file TVirtualStreamerInfo.h.

◆ TagFile()

virtual void TVirtualStreamerInfo::TagFile ( TFile fFile)
pure virtual

Implemented in TStreamerInfo.

◆ Update()

virtual void TVirtualStreamerInfo::Update ( const TClass oldClass,
TClass newClass 
)
pure virtual

Implemented in TStreamerInfo.

Member Data Documentation

◆ fgCanDelete

Bool_t TVirtualStreamerInfo::fgCanDelete = kTRUE
staticprotected

true if the StreamerInfo has been compiled (i.e. fully built, ready to use for streaming).

Definition at line 52 of file TVirtualStreamerInfo.h.

◆ fgInfoFactory

TVirtualStreamerInfo * TVirtualStreamerInfo::fgInfoFactory = nullptr
staticprotected

Definition at line 55 of file TVirtualStreamerInfo.h.

◆ fgOptimize

Bool_t TVirtualStreamerInfo::fgOptimize = kTRUE
staticprotected

Definition at line 53 of file TVirtualStreamerInfo.h.

◆ fgStreamMemberWise

Bool_t TVirtualStreamerInfo::fgStreamMemberWise = kTRUE
staticprotected

Definition at line 54 of file TVirtualStreamerInfo.h.

◆ fIsBuilt

Bool_t TVirtualStreamerInfo::fIsBuilt
protected

true if the StreamerInfo has been optimized

Definition at line 48 of file TVirtualStreamerInfo.h.

◆ fIsCompiled

std::atomic<Bool_t> TVirtualStreamerInfo::fIsCompiled
protected

true if the StreamerInfo has been 'built' (i.e. has all the StreamerElements it should have)

Definition at line 49 of file TVirtualStreamerInfo.h.

◆ fOptimized

Bool_t TVirtualStreamerInfo::fOptimized
protected

Definition at line 47 of file TVirtualStreamerInfo.h.

Libraries for TVirtualStreamerInfo:

The documentation for this class was generated from the following files: