Logo ROOT   6.12/07
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TVirtualStreamerInfo Class Referenceabstract

Abstract Interface class describing Streamer information for one class.

Definition at line 37 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,
  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
}
 
enum  EStatusBits {
  kCannotOptimize = BIT(12), kIgnoreTObjectStreamer = BIT(13), kRecovered = BIT(14), kNeedCheck = BIT(15),
  kIsCompiled = BIT(16), kBuildOldUsed = BIT(17), kBuildRunning = BIT(18)
}
 
enum  EStatusBitsDupExceptions { EStatusBitsDupExceptions::kIgnoreTObjectStreamer = TVirtualStreamerInfo::kIgnoreTObjectStreamer }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = 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 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=0, const TList *extrainfos=0)=0
 
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
 
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 voidNew (void *obj=0)=0
 
virtual voidNewArray (Long_t nElements, void *ary=0)=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
 
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 ()
 TNamed destructor. More...
 
virtual TObjectClone (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
 
TNamedoperator= (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...
 
ULong_t CheckedHash ()
 Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. 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 TObjectDrawClone (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 TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () 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_tGetOption () 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...
 
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. 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...
 
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). 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...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (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...
 
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. 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 TVirtualStreamerInfoFactory ()
 Static function returning a pointer to a new TVirtualStreamerInfo object. More...
 
static TStreamerBasicTypeGetElementCounter (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...
 
TVirtualStreamerInfooperator= (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_tfIsCompiled
 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 TVirtualStreamerInfofgInfoFactory = 0
 
static Bool_t fgOptimize = kTRUE
 
static Bool_t fgStreamMemberWise = kTRUE
 

#include <TVirtualStreamerInfo.h>

Inheritance diagram for TVirtualStreamerInfo:
[legend]

Member Enumeration Documentation

◆ EReadWrite

Enumerator
kBase 
kOffsetL 
kOffsetP 
kCounter 
kCharStar 
kChar 
kShort 
kInt 
kLong 
kFloat 
kDouble 
kDouble32 
kUChar 
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 

Definition at line 83 of file TVirtualStreamerInfo.h.

◆ EStatusBits

Enumerator
kCannotOptimize 
kIgnoreTObjectStreamer 
kRecovered 
kNeedCheck 
kIsCompiled 
kBuildOldUsed 
kBuildRunning 

Definition at line 65 of file TVirtualStreamerInfo.h.

◆ EStatusBitsDupExceptions

Enumerator
kIgnoreTObjectStreamer 

Definition at line 75 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 ( )
pure virtual

Implemented in TStreamerInfo.

◆ BuildCheck()

virtual void TVirtualStreamerInfo::BuildCheck ( TFile file = 0)
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.

◆ Clear()

virtual void TVirtualStreamerInfo::Clear ( Option_t option)
pure 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.

◆ 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 = 0,
const TList extrainfos = 0 
)
pure virtual

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.

◆ IsBuilt()

Bool_t TVirtualStreamerInfo::IsBuilt ( ) const
inline

Definition at line 155 of file TVirtualStreamerInfo.h.

◆ IsCompiled()

Bool_t TVirtualStreamerInfo::IsCompiled ( ) const
inline

Definition at line 156 of file TVirtualStreamerInfo.h.

◆ IsOptimized()

Bool_t TVirtualStreamerInfo::IsOptimized ( ) const
inline

Definition at line 157 of file TVirtualStreamerInfo.h.

◆ IsRecovered()

Int_t TVirtualStreamerInfo::IsRecovered ( ) const
inline

Definition at line 158 of file TVirtualStreamerInfo.h.

◆ ls()

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

List TNamed name and title.

Reimplemented from TNamed.

Implemented in TStreamerInfo.

◆ New()

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

Implemented in TStreamerInfo.

◆ NewArray()

virtual void* TVirtualStreamerInfo::NewArray ( Long_t  nElements,
void ary = 0 
)
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 53 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 57 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.

◆ 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 45 of file TVirtualStreamerInfo.h.

◆ fgInfoFactory

TVirtualStreamerInfo * TVirtualStreamerInfo::fgInfoFactory = 0
staticprotected

Definition at line 48 of file TVirtualStreamerInfo.h.

◆ fgOptimize

Bool_t TVirtualStreamerInfo::fgOptimize = kTRUE
staticprotected

Definition at line 46 of file TVirtualStreamerInfo.h.

◆ fgStreamMemberWise

Bool_t TVirtualStreamerInfo::fgStreamMemberWise = kTRUE
staticprotected

Definition at line 47 of file TVirtualStreamerInfo.h.

◆ fIsBuilt

Bool_t TVirtualStreamerInfo::fIsBuilt
protected

true if the StreamerInfo has been optimized

Definition at line 41 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 42 of file TVirtualStreamerInfo.h.

◆ fOptimized

Bool_t TVirtualStreamerInfo::fOptimized
protected

Definition at line 40 of file TVirtualStreamerInfo.h.

Libraries for TVirtualStreamerInfo:
[legend]

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