Logo ROOT  
Reference Guide
TClass.h
Go to the documentation of this file.
1 // @(#)root/meta:$Id$
2 // Author: Rene Brun 07/01/95
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_TClass
13 #define ROOT_TClass
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TClass //
18 // //
19 // Dictionary of a class. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TDictionary.h"
24 #include "TString.h"
25 
26 #ifdef R__LESS_INCLUDES
27 class TObjArray;
28 #else
29 #include "TObjArray.h"
30 // Not used in this header file; user code should #include this directly.
31 // #include "TObjString.h"
32 // #include "ThreadLocalStorage.h"
33 // #include <set>
34 #endif
35 
36 #include <map>
37 #include <string>
38 #include <unordered_set>
39 #include <vector>
40 #include <atomic>
41 
42 class TBaseClass;
43 class TBrowser;
44 class TDataMember;
45 class TCling;
46 class TMethod;
47 class TRealData;
48 class TBuffer;
51 class TMethodCall;
52 class TVirtualIsAProxy;
53 class TVirtualRefProxy;
54 class THashTable;
55 class TListOfFunctions;
57 class TListOfDataMembers;
58 class TListOfEnums;
59 class TViewPubFunctions;
61 class TFunctionTemplate;
62 class TProtoClass;
63 
64 namespace ROOT {
65  class TGenericClassInfo;
66  class TMapTypeToTClass;
67  class TMapDeclIdToTClass;
68  namespace Detail {
69  class TSchemaRuleSet;
70  class TCollectionProxyInfo;
71  }
72  namespace Internal {
73  class TCheckHashRecursiveRemoveConsistency;
74  }
75 }
76 
77 typedef ROOT::TMapTypeToTClass IdMap_t;
78 typedef ROOT::TMapDeclIdToTClass DeclIdMap_t;
79 
80 class TClass : public TDictionary {
81 
82 friend class TCling;
83 friend void ROOT::ResetClassVersion(TClass*, const char*, Short_t);
85 friend class TProtoClass;
87 
88 public:
89  // TClass status bits
90  enum EStatusBits {
91  kReservedLoading = BIT(7), // Internal status bits, set and reset only during initialization
92 
96  kUnloaded = BIT(16), // The library containing the dictionary for this class was
97  // loaded and has been unloaded from memory.
98  kIsTObject = BIT(17),
99  kIsForeign = BIT(18),
100  kIsEmulation = BIT(19), // Deprecated
101  kStartWithTObject = BIT(20), // see comments for IsStartingWithTObject()
102  kWarned = BIT(21),
104  kHasCustomStreamerMember = BIT(23) // The class has a Streamer method and it is implemented by the user or an older (not StreamerInfo based) automatic streamer.
105  };
107  enum ECheckSum {
109  kNoEnum = 1, // Used since v3.3
110  kReflexNoComment = 2, // Up to v5.34.18 (has no range/comment and no typedef at all)
111  kNoRange = 3, // Up to v5.17
112  kWithTypeDef = 4, // Up to v5.34.18 and v5.99/06
113  kReflex = 5, // Up to v5.34.18 (has no typedef at all)
114  kNoRangeCheck = 6, // Up to v5.34.18 and v5.99/06
115  kNoBaseCheckSum = 7, // Up to v5.34.18 and v5.99/06
116  kLatestCheckSum = 8
117  };
118 
119  // Describe the current state of the TClass itself.
120  enum EState {
121  kNoInfo, // The state has not yet been initialized, i.e. the TClass
122  // was just created and/or there is no trace of it in the interpreter.
123  kForwardDeclared, // The interpreted knows the entity is a class but that's it.
124  kEmulated, // The information about the class only comes from a TStreamerInfo
125  kInterpreted, // The class is described completely/only in the interpreter database.
126  kHasTClassInit, // The class has a TClass proper bootstrap coming from a run
127  // through rootcling/genreflex/TMetaUtils and the library
128  // containing this dictionary has been loaded in memory.
130  kNamespaceForMeta // Very transient state necessary to bootstrap namespace entries
131  // in ROOT Meta w/o interpreter information
132  };
133 
134 private:
135 
136 
137 
139  // A class which is used to collect decl names starting from normalised
140  // names (typedef resolution is excluded here, just string manipulation
141  // is performed). At the heart of the implementation, an unordered set.
142  public:
143  TDeclNameRegistry(Int_t verbLevel=0);
144  void AddQualifiedName(const char *name);
145  Bool_t HasDeclName(const char *name) const;
147  private:
149  std::unordered_set<std::string> fClassNamesSet;
150  mutable std::atomic_flag fSpinLock; // MSVC doesn't support = ATOMIC_FLAG_INIT;
151  };
152 
154  // Trivial RAII used to insert names in the registry
156  const char* fName;
158  public:
159  InsertTClassInRegistryRAII(TClass::EState &state, const char *name, TDeclNameRegistry &emuRegistry);
161  };
162 
163  // TClass objects can be created as a result of opening a TFile (in which
164  // they are in emulated mode) or as a result of loading the dictionary for
165  // the corresponding class. When a dictionary is loaded any pre-existing
166  // emulated TClass is replaced by the one created/coming from the dictionary.
167  // To have a reference that always point to the 'current' TClass object for
168  // a given class, one should use a TClassRef.
169  // TClassRef works by holding on to the fPersistentRef which is updated
170  // atomically whenever a TClass is replaced. During the replacement the
171  // value of fPersistentRef is set to zero, leading the TClassRef to call
172  // TClass::GetClass which is also locked by the replacement. At the end
173  // of the replacement, fPersistentRef points to the new TClass object.
174  std::atomic<TClass**> fPersistentRef;//!Persistent address of pointer to this TClass object and its successors.
175 
176  typedef std::atomic<std::map<std::string, TObjArray*>*> ConvSIMap_t;
177 
178  mutable TObjArray *fStreamerInfo; //Array of TVirtualStreamerInfo
179  mutable ConvSIMap_t fConversionStreamerInfo; //Array of the streamer infos derived from another class.
180  TList *fRealData; //linked list for persistent members including base classes
181  std::atomic<TList*> fBase; //linked list for base classes
182  std::atomic<TListOfDataMembers*> fData; //linked list for data members; non-owning.
183  std::atomic<TListOfDataMembers*> fUsingData;//linked list for data members pulled in through using decls.
184 
185  std::atomic<TListOfEnums*> fEnums; //linked list for the enums
186  TListOfFunctionTemplates *fFuncTemplate; //linked list for function templates [Not public until implemented as active list]
187  std::atomic<TListOfFunctions*> fMethod; //linked list for methods
188 
189  TViewPubDataMembers*fAllPubData; //all public data members (including from base classes)
190  TViewPubFunctions *fAllPubMethod; //all public methods (including from base classes)
191  mutable TList *fClassMenuList; //list of class menu items
192 
193  const char *fDeclFileName; //name of class declaration file
194  const char *fImplFileName; //name of class implementation file
195  Short_t fDeclFileLine; //line of class declaration
196  Short_t fImplFileLine; //line of class implementation
197  UInt_t fInstanceCount; //number of instances of this class
198  UInt_t fOnHeap; //number of instances on heap
199  mutable std::atomic<UInt_t> fCheckSum; //checksum of data members and base classes
200  TVirtualCollectionProxy *fCollectionProxy; //Collection interface
201  Version_t fClassVersion; //Class version Identifier
202  ClassInfo_t *fClassInfo; //pointer to CINT class info class
203  TString fContextMenuTitle;//context menu title
204  const std::type_info *fTypeInfo; //pointer to the C++ type information.
205  ShowMembersFunc_t fShowMembers; //pointer to the class's ShowMembers function
206  TClassStreamer *fStreamer; //pointer to streamer function
207  TString fSharedLibs; //shared libraries containing class code
208 
209  TVirtualIsAProxy *fIsA; //!pointer to the class's IsA proxy.
210  IsAGlobalFunc_t fGlobalIsA; //pointer to a global IsA function.
211  mutable std::atomic<TMethodCall*> fIsAMethod; //!saved info to call a IsA member function
212 
213  ROOT::MergeFunc_t fMerge; //pointer to a function implementing Merging objects of this class.
214  ROOT::ResetAfterMergeFunc_t fResetAfterMerge; //pointer to a function implementing Merging objects of this class.
215  ROOT::NewFunc_t fNew; //pointer to a function newing one object.
216  ROOT::NewArrFunc_t fNewArray; //pointer to a function newing an array of objects.
217  ROOT::DelFunc_t fDelete; //pointer to a function deleting one object.
218  ROOT::DelArrFunc_t fDeleteArray; //pointer to a function deleting an array of objects.
219  ROOT::DesFunc_t fDestructor; //pointer to a function call an object's destructor.
220  ROOT::DirAutoAdd_t fDirAutoAdd; //pointer which implements the Directory Auto Add feature for this class.']'
221  ClassStreamerFunc_t fStreamerFunc; //Wrapper around this class custom Streamer member function.
222  ClassConvStreamerFunc_t fConvStreamerFunc; //Wrapper around this class custom conversion Streamer member function.
223  Int_t fSizeof; //Sizeof the class.
224 
225  Int_t fCanSplit; //!Indicates whether this class can be split or not.
226  mutable std::atomic<Long_t> fProperty; //!Property
227  mutable Long_t fClassProperty; //!C++ Property of the class (is abstract, has virtual table, etc.)
228 
229  // fHasRootPcmInfo needs to be atomic as long as GetListOfBases needs to modify it.
230  std::atomic<Bool_t> fHasRootPcmInfo; //!Whether info was loaded from a root pcm.
231  mutable std::atomic<Bool_t> fCanLoadClassInfo; //!Indicates whether the ClassInfo is supposed to be available.
232  mutable std::atomic<Bool_t> fIsOffsetStreamerSet; //!saved remember if fOffsetStreamer has been set.
233  mutable std::atomic<Bool_t> fVersionUsed; //!Indicates whether GetClassVersion has been called
234 
236  kNotInitialized = 0,
237  kSet = BIT(0),
238  // kInconsistent when kSet & !kConsistent.
239  kConsistentHash = BIT(1)
240  };
242  return l & static_cast<UChar_t>(r);
243  }
244  mutable std::atomic<UChar_t> fRuntimeProperties; //! Properties that can only be evaluated at run-time
245 
246  mutable Long_t fOffsetStreamer; //!saved info to call Streamer
247  Int_t fStreamerType; //!cached of the streaming method to use
248  EState fState; //!Current 'state' of the class (Emulated,Interpreted,Loaded)
249  mutable std::atomic<TVirtualStreamerInfo*> fCurrentInfo; //!cached current streamer info.
250  mutable std::atomic<TVirtualStreamerInfo*> fLastReadInfo; //!cached streamer info used in the last read.
251  TVirtualRefProxy *fRefProxy; //!Pointer to reference proxy if this class represents a reference
252  ROOT::Detail::TSchemaRuleSet *fSchemaRules; //! Schema evolution rules
253 
254  typedef void (*StreamerImpl_t)(const TClass* pThis, void *obj, TBuffer &b, const TClass *onfile_class);
255 #ifdef R__NO_ATOMIC_FUNCTION_POINTER
256  mutable StreamerImpl_t fStreamerImpl; //! Pointer to the function implementing streaming for this class
257 #else
258  mutable std::atomic<StreamerImpl_t> fStreamerImpl; //! Pointer to the function implementing streaming for this class
259 #endif
260 
263  TMethod *GetClassMethod(Long_t faddr);
265  Int_t GetBaseClassOffsetRecurse(const TClass *toBase);
266  void Init(const char *name, Version_t cversion, const std::type_info *info,
267  TVirtualIsAProxy *isa,
268  const char *dfil, const char *ifil,
269  Int_t dl, Int_t il,
270  ClassInfo_t *classInfo,
271  Bool_t silent);
272  void ForceReload (TClass* oldcl);
273  void LoadClassInfo() const;
274 
275  static TClass *LoadClassDefault(const char *requestedname, Bool_t silent);
276  static TClass *LoadClassCustom(const char *requestedname, Bool_t silent);
277 
278  void SetClassVersion(Version_t version);
279  void SetClassSize(Int_t sizof) { fSizeof = sizof; }
281 
282  void SetStreamerImpl();
283 
284  void SetRuntimeProperties();
285 
286  // Various implementation for TClass::Stramer
287  static void StreamerExternal(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
288  static void StreamerTObject(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
289  static void StreamerTObjectInitialized(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
290  static void StreamerTObjectEmulated(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
291  static void StreamerInstrumented(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
292  static void ConvStreamerInstrumented(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
293  static void StreamerStreamerInfo(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
294  static void StreamerDefault(const TClass* pThis, void *object, TBuffer &b, const TClass *onfile_class);
295 
296  static IdMap_t *GetIdMap(); //Map from typeid to TClass pointer
297  static DeclIdMap_t *GetDeclIdMap(); //Map from DeclId_t to TClass pointer
298  static std::atomic<Int_t> fgClassCount; //provides unique id for a each class
299  //stored in TObject::fUniqueID
300  static TDeclNameRegistry fNoInfoOrEmuOrFwdDeclNameRegistry; // Store decl names of the forwardd and no info instances
301  static Bool_t HasNoInfoOrEmuOrFwdDeclaredDecl(const char*);
302 
303  // Internal status bits, set and reset only during initialization and thus under the protection of the global lock.
305  // Internal streamer type.
307 
308  // These are the above-referenced hash tables. (The pointers are null
309  // if no entries have been made.)
311 
312 private:
313  TClass(const TClass& tc) = delete;
314  TClass& operator=(const TClass&) = delete;
315 
316  bool IsClassStructOrUnion() const { return Property() & (kIsClass|kIsStruct|kIsUnion); }
317  TList *CreateListOfDataMembers(std::atomic<TListOfDataMembers*> &data, TDictionary::EMemberSelection selection, bool load);
318 
319 protected:
320  TVirtualStreamerInfo *FindStreamerInfo(TObjArray *arr, UInt_t checksum) const;
321  void GetMissingDictionariesForBaseClasses(TCollection &result, TCollection &visited, bool recurse);
322  void GetMissingDictionariesForMembers(TCollection &result, TCollection &visited, bool recurse);
323  void GetMissingDictionariesWithRecursionCheck(TCollection &result, TCollection &visited, bool recurse);
324  void GetMissingDictionariesForPairElements(TCollection &result, TCollection &visited, bool recurse);
325 
326 public:
327  TClass();
328  TClass(const char *name, Bool_t silent = kFALSE);
329  TClass(const char *name, Version_t cversion, Bool_t silent = kFALSE);
330  TClass(const char *name, Version_t cversion, EState theState, Bool_t silent = kFALSE);
331  TClass(ClassInfo_t *info, Version_t cversion,
332  const char *dfil, const char *ifil = 0,
333  Int_t dl = 0, Int_t il = 0, Bool_t silent = kFALSE);
334  TClass(const char *name, Version_t cversion,
335  const char *dfil, const char *ifil = 0,
336  Int_t dl = 0, Int_t il = 0, Bool_t silent = kFALSE);
337  TClass(const char *name, Version_t cversion,
338  const std::type_info &info, TVirtualIsAProxy *isa,
339  const char *dfil, const char *ifil,
340  Int_t dl, Int_t il, Bool_t silent = kFALSE);
341  virtual ~TClass();
342 
343  void AddInstance(Bool_t heap = kFALSE) { fInstanceCount++; if (heap) fOnHeap++; }
344  void AddImplFile(const char *filename, int line);
345  static Bool_t AddRule(const char *rule);
346  static Int_t ReadRules(const char *filename);
347  static Int_t ReadRules();
349  virtual void Browse(TBrowser *b);
350  void BuildRealData(void *pointer=0, Bool_t isTransient = kFALSE);
351  void BuildEmulatedRealData(const char *name, Long_t offset, TClass *cl);
352  void CalculateStreamerOffset() const;
353  Bool_t CallShowMembers(const void* obj, TMemberInspector &insp, Bool_t isTransient = kFALSE) const;
354  Bool_t CanSplit() const;
356  Long_t ClassProperty() const;
357  TObject *Clone(const char *newname="") const;
359  void Draw(Option_t *option="");
360  void Dump() const { TDictionary::Dump(); }
361  void Dump(const void *obj, Bool_t noAddr = kFALSE) const;
362  char *EscapeChars(const char *text) const;
364  TVirtualStreamerInfo *GetConversionStreamerInfo( const char* onfile_classname, Int_t version ) const;
365  TVirtualStreamerInfo *FindConversionStreamerInfo( const char* onfile_classname, UInt_t checksum ) const;
366  TVirtualStreamerInfo *GetConversionStreamerInfo( const TClass* onfile_cl, Int_t version ) const;
367  TVirtualStreamerInfo *FindConversionStreamerInfo( const TClass* onfile_cl, UInt_t checksum ) const;
369  Bool_t HasDefaultConstructor(Bool_t testio = kFALSE) const;
373  UInt_t GetCheckSum(Bool_t &isvalid) const;
374  UInt_t GetCheckSum(ECheckSum code, Bool_t &isvalid) const;
376  TVirtualIsAProxy *GetIsAProxy() const;
377  TMethod *GetClassMethod(const char *name, const char *params, Bool_t objectIsConst = kFALSE);
378  TMethod *GetClassMethodWithPrototype(const char *name, const char *proto,
379  Bool_t objectIsConst = kFALSE,
382  if (!fVersionUsed.load(std::memory_order_relaxed))
384  return fClassVersion;
385  }
386  Int_t GetClassSize() const { return Size(); }
387  TDataMember *GetDataMember(const char *datamember) const;
388  Long_t GetDataMemberOffset(const char *membername) const;
389  const char *GetDeclFileName() const;
391  ROOT::DelFunc_t GetDelete() const;
394  ClassInfo_t *GetClassInfo() const {
396  LoadClassInfo();
397  return fClassInfo;
398  }
399  const char *GetContextMenuTitle() const { return fContextMenuTitle; }
401  auto current = fCurrentInfo.load(std::memory_order_relaxed);
402  if (current) return current;
403  else return DetermineCurrentStreamerInfo();
404  }
409  TList *GetListOfEnums(Bool_t load = kTRUE);
413  TCollection *GetListOfMethodOverloads(const char* name) const;
414  TList *GetListOfRealData() const { return fRealData; }
417  const char *GetImplFileName() const { return fImplFileName; }
419  TClass *GetActualClass(const void *object) const;
420  TClass *GetBaseClass(const char *classname);
421  TClass *GetBaseClass(const TClass *base);
422  Int_t GetBaseClassOffset(const TClass *toBase, void *address = 0, bool isDerivedObject = true);
423  TClass *GetBaseDataMember(const char *datamember);
428  UInt_t GetHeapInstanceCount() const { return fOnHeap; }
429  void GetMenuItems(TList *listitems);
430  TList *GetMenuList() const;
431  TMethod *GetMethod(const char *method, const char *params, Bool_t objectIsConst = kFALSE);
432  TMethod *GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst = kFALSE,
434  TMethod *GetMethodAny(const char *method);
435  TMethod *GetMethodAllAny(const char *method);
436  Int_t GetNdata();
437  ROOT::MergeFunc_t GetMerge() const;
439  ROOT::NewFunc_t GetNew() const;
441  Int_t GetNmethods();
442  TClass *const*GetPersistentRef() const { return fPersistentRef; }
443  TRealData *GetRealData(const char *name) const;
447  const char *GetSharedLibs();
449  EState GetState() const { return fState; }
450  TClassStreamer *GetStreamer() const;
453  const TObjArray *GetStreamerInfos() const { return fStreamerInfo; }
454  TVirtualStreamerInfo *GetStreamerInfo(Int_t version=0) const;
457  const std::type_info *GetTypeInfo() const { return fTypeInfo; };
458 
459  /// @brief Return 'true' if we can guarantee that if this class (or any class in
460  /// this class inheritance hierarchy) overload TObject::Hash it also starts
461  /// the RecursiveRemove process from its own destructor.
463  {
464  if (!fRuntimeProperties)
467  }
468  Bool_t HasDictionary() const;
469  static Bool_t HasDictionarySelection(const char* clname);
470  Bool_t HasLocalHashMember() const;
471  void GetMissingDictionaries(THashTable& result, bool recurse = false);
472  void IgnoreTObjectStreamer(Bool_t ignore=kTRUE);
473  Bool_t InheritsFrom(const char *cl) const;
474  Bool_t InheritsFrom(const TClass *cl) const;
475  void InterpretedShowMembers(void* obj, TMemberInspector &insp, Bool_t isTransient);
476  Bool_t IsFolder() const { return kTRUE; }
477  Bool_t IsLoaded() const;
478  Bool_t IsForeign() const;
480  Bool_t IsVersioned() const { return !( GetClassVersion()<=1 && IsForeign() ); }
481  Bool_t IsTObject() const;
482  static TClass *LoadClass(const char *requestedname, Bool_t silent);
483  void ls(Option_t *opt="") const;
484  void MakeCustomMenuList();
485  Bool_t MatchLegacyCheckSum(UInt_t checksum) const;
486  void Move(void *arenaFrom, void *arenaTo) const;
487  void *New(ENewType defConstructor = kClassNew, Bool_t quiet = kFALSE) const;
488  void *New(void *arena, ENewType defConstructor = kClassNew) const;
489  void *NewArray(Long_t nElements, ENewType defConstructor = kClassNew) const;
490  void *NewArray(Long_t nElements, void *arena, ENewType defConstructor = kClassNew) const;
491  virtual void PostLoadCheck();
492  Long_t Property() const;
493  Int_t ReadBuffer(TBuffer &b, void *pointer, Int_t version, UInt_t start, UInt_t count);
494  Int_t ReadBuffer(TBuffer &b, void *pointer);
496  void RemoveStreamerInfo(Int_t slot);
497  void ReplaceWith(TClass *newcl) const;
498  void ResetCaches();
499  void ResetClassInfo(Long_t tagnum);
500  void ResetClassInfo();
502  void ResetMenuList();
503  Int_t Size() const;
504  void SetCanSplit(Int_t splitmode);
506  void SetContextMenuTitle(const char *title);
509  void SetDeclFile(const char *name, int line) { fDeclFileName = name; fDeclFileLine = line; }
510  void SetDelete(ROOT::DelFunc_t deleteFunc);
511  void SetDeleteArray(ROOT::DelArrFunc_t deleteArrayFunc);
512  void SetDirectoryAutoAdd(ROOT::DirAutoAdd_t dirAutoAddFunc);
513  void SetDestructor(ROOT::DesFunc_t destructorFunc);
514  void SetImplFileName(const char *implFileName) { fImplFileName = implFileName; }
515  void SetMerge(ROOT::MergeFunc_t mergeFunc);
517  void SetNew(ROOT::NewFunc_t newFunc);
518  void SetNewArray(ROOT::NewArrFunc_t newArrayFunc);
519  TVirtualStreamerInfo *SetStreamerInfo(Int_t version, const char *info="");
520  void SetUnloaded();
521  Int_t WriteBuffer(TBuffer &b, void *pointer, const char *info="");
522 
524  void AdoptStreamer(TClassStreamer *strm);
525  void AdoptMemberStreamer(const char *name, TMemberStreamer *strm);
526  void SetMemberStreamer(const char *name, MemberStreamerFunc_t strm);
529 
530  // Function to retrieve the TClass object and dictionary function
531  static void AddClass(TClass *cl);
532  static void AddClassToDeclIdMap(TDictionary::DeclId_t id, TClass* cl);
533  static void RemoveClass(TClass *cl);
535  static TClass *GetClass(const char *name, Bool_t load = kTRUE, Bool_t silent = kFALSE);
536  static TClass *GetClass(const std::type_info &typeinfo, Bool_t load = kTRUE, Bool_t silent = kFALSE);
537  static TClass *GetClass(ClassInfo_t *info, Bool_t load = kTRUE, Bool_t silent = kFALSE);
538  template<typename T>
539  static TClass *GetClass(Bool_t load = kTRUE, Bool_t silent = kFALSE);
540  static Bool_t GetClass(DeclId_t id, std::vector<TClass*> &classes);
541  static DictFuncPtr_t GetDict (const char *cname);
542  static DictFuncPtr_t GetDict (const std::type_info &info);
543 
544  static Int_t AutoBrowse(TObject *obj, TBrowser *browser);
545  static ENewType IsCallingNew();
546  static TClass *Load(TBuffer &b);
547  void Store(TBuffer &b) const;
548 
549  // Pseudo-method apply to the 'obj'. In particular those are used to
550  // implement TObject like methods for non-TObject classes
551 
552  Int_t Browse(void *obj, TBrowser *b) const;
553  void DeleteArray(void *ary, Bool_t dtorOnly = kFALSE);
554  void Destructor(void *obj, Bool_t dtorOnly = kFALSE);
555  void *DynamicCast(const TClass *base, void *obj, Bool_t up = kTRUE);
556  const void *DynamicCast(const TClass *base, const void *obj, Bool_t up = kTRUE);
557  Bool_t IsFolder(void *obj) const;
558 
559  inline void Streamer(void *obj, TBuffer &b, const TClass *onfile_class = 0) const
560  {
561  // Inline for performance, skipping one function call.
562 #ifdef R__NO_ATOMIC_FUNCTION_POINTER
563  fStreamerImpl(this,obj,b,onfile_class);
564 #else
565  auto t = fStreamerImpl.load();
566  t(this,obj,b,onfile_class);
567 #endif
568  }
569 
570  ClassDef(TClass,0) //Dictionary containing class information
571 };
572 
573 namespace ROOT {
574 namespace Internal {
575 template <typename T>
576 TClass *GetClassHelper(Bool_t, Bool_t, std::true_type)
577 {
578  return T::Class();
579 }
580 
581 template <typename T>
582 TClass *GetClassHelper(Bool_t load, Bool_t silent, std::false_type)
583 {
584  return TClass::GetClass(typeid(T), load, silent);
585 }
586 
587 } // namespace Internal
588 } // namespace ROOT
589 
590 template <typename T>
592 {
594  return ROOT::Internal::GetClassHelper<T>(load, silent, tag);
595 }
596 
597 namespace ROOT {
598 
599 template <typename T> TClass *GetClass(T * /* dummy */) { return TClass::GetClass<T>(); }
600 template <typename T> TClass *GetClass(const T * /* dummy */) { return TClass::GetClass<T>(); }
601 
602 #ifndef R__NO_CLASS_TEMPLATE_SPECIALIZATION
603  // This can only be used when the template overload resolution can distinguish between T* and T**
604  template <typename T> TClass* GetClass( T** /* dummy */) { return TClass::GetClass<T>(); }
605  template <typename T> TClass* GetClass(const T** /* dummy */) { return TClass::GetClass<T>(); }
606  template <typename T> TClass* GetClass( T* const* /* dummy */) { return TClass::GetClass<T>(); }
607  template <typename T> TClass* GetClass(const T* const* /* dummy */) { return TClass::GetClass<T>(); }
608 #endif
609 
610  extern TClass *CreateClass(const char *cname, Version_t id,
611  const char *dfil, const char *ifil,
612  Int_t dl, Int_t il);
613 }
614 
615 #endif // ROOT_TClass
TClass::GetStreamerInfo
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
Definition: TClass.cxx:4567
l
auto * l
Definition: textangle.C:4
TClass::fAllPubData
TViewPubDataMembers * fAllPubData
Definition: TClass.h:189
TClass::fClassVersion
Version_t fClassVersion
Definition: TClass.h:201
TClass::GetNewArray
ROOT::NewArrFunc_t GetNewArray() const
Return the wrapper around new ThisClass[].
Definition: TClass.cxx:7258
TClass::StreamerInstrumented
static void StreamerInstrumented(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of instrumented class with a library.
Definition: TClass.cxx:6662
TClass::fRefProxy
TVirtualRefProxy * fRefProxy
cached streamer info used in the last read.
Definition: TClass.h:251
MemberStreamerFunc_t
void(* MemberStreamerFunc_t)(TBuffer &, void *, Int_t)
Definition: Rtypes.h:74
TClass::GetMissingDictionariesForPairElements
void GetMissingDictionariesForPairElements(TCollection &result, TCollection &visited, bool recurse)
Definition: TClass.cxx:3936
ROOT::DesFunc_t
void(* DesFunc_t)(void *)
Definition: Rtypes.h:112
TMemberInspector
Abstract base class for accessing the data-members of a class.
Definition: TMemberInspector.h:31
TClass::Browse
virtual void Browse(TBrowser *b)
This method is called by a browser to get the class information.
Definition: TClass.cxx:1974
TClass::EStreamerType
EStreamerType
Definition: TClass.h:306
TClass::kClassSaved
@ kClassSaved
Definition: TClass.h:93
TListOfFunctions
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
Definition: TListOfFunctions.h:35
TClass::StreamerImpl_t
void(* StreamerImpl_t)(const TClass *pThis, void *obj, TBuffer &b, const TClass *onfile_class)
Schema evolution rules.
Definition: TClass.h:254
TClass::GetBaseDataMember
TClass * GetBaseDataMember(const char *datamember)
Return pointer to (base) class that contains datamember.
Definition: TClass.cxx:2791
TClass::kIsEmulation
@ kIsEmulation
Definition: TClass.h:100
ROOT::Detail::TCollectionProxyInfo
Definition: TCollectionProxyInfo.h:53
TClass::GetCollectionProxy
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
Definition: TClass.cxx:2861
TBrowser
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
TClass::kDefault
@ kDefault
Definition: TClass.h:306
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TClass::GetMethodAny
TMethod * GetMethodAny(const char *method)
Return pointer to method without looking at parameters.
Definition: TClass.cxx:4342
TObject::TestBit
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:172
TClass::GetHeapInstanceCount
UInt_t GetHeapInstanceCount() const
Definition: TClass.h:428
TClass::StreamerTObject
static void StreamerTObject(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects.
Definition: TClass.cxx:6626
TListOfFunctionTemplates
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
Definition: TListOfFunctionTemplates.h:35
TClass::GetListOfAllPublicMethods
const TList * GetListOfAllPublicMethods(Bool_t load=kTRUE)
Returns a list of all public methods of this class and its base classes.
Definition: TClass.cxx:3808
TClass::fConvStreamerFunc
ClassConvStreamerFunc_t fConvStreamerFunc
Definition: TClass.h:222
Version_t
short Version_t
Definition: RtypesCore.h:65
TClass::kLatestCheckSum
@ kLatestCheckSum
Definition: TClass.h:116
TClass::GetMethodAllAny
TMethod * GetMethodAllAny(const char *method)
Return pointer to method without looking at parameters.
Definition: TClass.cxx:4352
TClass::Streamer
void Streamer(void *obj, TBuffer &b, const TClass *onfile_class=0) const
Definition: TClass.h:559
TObjArray
An array of TObjects.
Definition: TObjArray.h:37
TClass::fOnHeap
UInt_t fOnHeap
Definition: TClass.h:198
TClass::kNoEnum
@ kNoEnum
Definition: TClass.h:109
TClass::kNamespaceForMeta
@ kNamespaceForMeta
Definition: TClass.h:130
kIsClass
@ kIsClass
Definition: TDictionary.h:65
ROOT::ResetAfterMergeFunc_t
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition: Rtypes.h:115
TClass::SetDirectoryAutoAdd
void SetDirectoryAutoAdd(ROOT::DirAutoAdd_t dirAutoAddFunc)
Install a new wrapper around the directory auto add function.
Definition: TClass.cxx:6854
Option_t
const char Option_t
Definition: RtypesCore.h:66
TClass::RemoveClass
static void RemoveClass(TClass *cl)
static: Remove a class from the list and map of classes
Definition: TClass.cxx:512
TClass::GetListOfAllPublicDataMembers
TList * GetListOfAllPublicDataMembers(Bool_t load=kTRUE)
Returns a list of all public data members of this class and its base classes.
Definition: TClass.cxx:3825
TClass::GetInstanceCount
UInt_t GetInstanceCount() const
Definition: TClass.h:427
IsAGlobalFunc_t
TClass *(* IsAGlobalFunc_t)(const TClass *, const void *obj)
Definition: Rtypes.h:96
ROOT::kConversionMatch
@ kConversionMatch
Definition: TDictionary.h:162
TClass::Size
Int_t Size() const
Return size of object of this class.
Definition: TClass.cxx:5581
TClass::StreamerTObjectEmulated
static void StreamerTObjectEmulated(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects when we do not have the library defining the class.
Definition: TClass.cxx:6649
TClass::GetRealData
TRealData * GetRealData(const char *name) const
Return pointer to TRealData element with name "name".
Definition: TClass.cxx:3414
TClass::MakeCustomMenuList
void MakeCustomMenuList()
Makes a customizable version of the popup menu list, i.e.
Definition: TClass.cxx:4251
TClass::GetActualClass
TClass * GetActualClass(const void *object) const
Return a pointer the the real class of the object.
Definition: TClass.cxx:2572
TClass::kReflex
@ kReflex
Definition: TClass.h:113
TClass::SetDestructor
void SetDestructor(ROOT::DesFunc_t destructorFunc)
Install a new wrapper around the destructor.
Definition: TClass.cxx:6843
TClass::FindStreamerInfoAbstractEmulated
TVirtualStreamerInfo * FindStreamerInfoAbstractEmulated(UInt_t checksum) const
For the case where the requestor class is emulated and this class is abstract, returns a pointer to t...
Definition: TClass.cxx:4733
ROOT::DelFunc_t
void(* DelFunc_t)(void *)
Definition: Rtypes.h:110
TClass::fCollectionProxy
TVirtualCollectionProxy * fCollectionProxy
Definition: TClass.h:200
TClass::StreamerDefault
static void StreamerDefault(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Default streaming in cases where either we have no way to know what to do or if Property() has not ye...
Definition: TClass.cxx:6699
TClass::Property
Long_t Property() const
Set TObject::fBits and fStreamerType to cache information about the class.
Definition: TClass.cxx:5915
TClass::kUnloading
@ kUnloading
Definition: TClass.h:304
TClass::ECheckSum
ECheckSum
Definition: TClass.h:107
TClass::kClassNew
@ kClassNew
Definition: TClass.h:106
TClass::GetMissingDictionaries
void GetMissingDictionaries(THashTable &result, bool recurse=false)
Get the classes that have a missing dictionary starting from this one.
Definition: TClass.cxx:4050
TClass::TDeclNameRegistry::fSpinLock
std::atomic_flag fSpinLock
Definition: TClass.h:150
TClass::kLoading
@ kLoading
Definition: TClass.h:304
TClass::~TClass
virtual ~TClass()
TClass dtor. Deletes all list that might have been created.
Definition: TClass.cxx:1624
TClass::SetStreamerImpl
void SetStreamerImpl()
Internal routine to set fStreamerImpl based on the value of fStreamerType.
Definition: TClass.cxx:6044
TClass::TDeclNameRegistry::fClassNamesSet
std::unordered_set< std::string > fClassNamesSet
Definition: TClass.h:149
r
ROOT::R::TRInterface & r
Definition: Object.C:4
TClass::GetMethodList
TListOfFunctions * GetMethodList()
Return (create an empty one if needed) the list of functions.
Definition: TClass.cxx:4323
TClass::CalculateStreamerOffset
void CalculateStreamerOffset() const
Calculate the offset between an object of this class to its base class TObject.
Definition: TClass.cxx:2147
TClass::TDeclNameRegistry::HasDeclName
Bool_t HasDeclName(const char *name) const
Definition: TClass.cxx:223
TClass::CanIgnoreTObjectStreamer
Bool_t CanIgnoreTObjectStreamer()
Definition: TClass.h:355
TClass::GetPersistentRef
TClass *const * GetPersistentRef() const
Definition: TClass.h:442
TClass::HasInterpreterInfoInMemory
Bool_t HasInterpreterInfoInMemory() const
Definition: TClass.h:370
TClass::IsClassStructOrUnion
bool IsClassStructOrUnion() const
Definition: TClass.h:316
TClass::Dump
void Dump() const
Dump contents of object on stdout.
Definition: TClass.h:360
TClass::GetResetAfterMerge
ROOT::ResetAfterMergeFunc_t GetResetAfterMerge() const
Return the wrapper around Merge.
Definition: TClass.cxx:7242
TClass::EState
EState
Definition: TClass.h:120
TClass::fNewArray
ROOT::NewArrFunc_t fNewArray
Definition: TClass.h:216
TClass::kExternal
@ kExternal
Definition: TClass.h:306
TClass::GetListOfFunctionTemplates
TList * GetListOfFunctionTemplates(Bool_t load=kTRUE)
Return TListOfFunctionTemplates for a class.
Definition: TClass.cxx:3761
TClass::GetReferenceProxy
TVirtualRefProxy * GetReferenceProxy() const
Definition: TClass.h:444
TClass::fDelete
ROOT::DelFunc_t fDelete
Definition: TClass.h:217
TClass::LoadClass
static TClass * LoadClass(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
Definition: TClass.cxx:5626
TClass::AddClass
static void AddClass(TClass *cl)
static: Add a class to the list and map of classes.
Definition: TClass.cxx:486
TClass::operator=
TClass & operator=(const TClass &)=delete
TClass::HasDefaultConstructor
Bool_t HasDefaultConstructor(Bool_t testio=kFALSE) const
Return true if we have access to a constructor usable for I/O.
Definition: TClass.cxx:7196
TClass::ClassProperty
Long_t ClassProperty() const
Return the C++ property of this class, eg.
Definition: TClass.cxx:2361
TClass::fClassProperty
Long_t fClassProperty
Property.
Definition: TClass.h:227
TBaseClass
Each class (see TClass) has a linked list of its base class(es).
Definition: TBaseClass.h:33
TClass::GetNdata
Int_t GetNdata()
Return the number of data members of this class Note that in case the list of data members is not yet...
Definition: TClass.cxx:4522
TClass::RegisterStreamerInfo
void RegisterStreamerInfo(TVirtualStreamerInfo *info)
Register the StreamerInfo in the given slot, change the State of the TClass as appropriate.
Definition: TClass.cxx:7103
TClass::fDeclFileLine
Short_t fDeclFileLine
Definition: TClass.h:195
TClass::IsLoaded
Bool_t IsLoaded() const
Return true if the shared library of this class is currently in the a process's memory.
Definition: TClass.cxx:5789
TClass::kCurrentCheckSum
@ kCurrentCheckSum
Definition: TClass.h:108
TClass::ResetClassInfo
void ResetClassInfo()
Make sure that the current ClassInfo is up to date.
Definition: TClass.cxx:4148
TClass::GetMissingDictionariesForBaseClasses
void GetMissingDictionariesForBaseClasses(TCollection &result, TCollection &visited, bool recurse)
Verify the base classes always.
Definition: TClass.cxx:3890
Int_t
int Int_t
Definition: RtypesCore.h:45
TDataMember
All ROOT classes may have RTTI (run time type identification) support added.
Definition: TDataMember.h:31
TClass::GetDataMemberOffset
Long_t GetDataMemberOffset(const char *membername) const
return offset for member name.
Definition: TClass.cxx:3388
TClass::ForceReload
void ForceReload(TClass *oldcl)
we found at least one equivalent.
Definition: TClass.cxx:1310
TClass::CanSplitBaseAllow
Bool_t CanSplitBaseAllow()
Pointer to the function implementing streaming for this class.
Definition: TClass.cxx:2211
TClass::GetClassVersion
Version_t GetClassVersion() const
Definition: TClass.h:381
ROOT::NewArrFunc_t
void *(* NewArrFunc_t)(Long_t size, void *arena)
Definition: Rtypes.h:109
TClass::FindConversionStreamerInfo
TVirtualStreamerInfo * FindConversionStreamerInfo(const char *onfile_classname, UInt_t checksum) const
Return a Conversion StreamerInfo from the class 'classname' for the layout represented by 'checksum' ...
Definition: TClass.cxx:7007
TClass::GetBaseClass
TClass * GetBaseClass(const char *classname)
Return pointer to the base class "classname".
Definition: TClass.cxx:2619
TClass::TDeclNameRegistry::~TDeclNameRegistry
~TDeclNameRegistry()
Definition: TClass.cxx:235
TClass::TDeclNameRegistry::fVerbLevel
Int_t fVerbLevel
Definition: TClass.h:148
TClass::WriteBuffer
Int_t WriteBuffer(TBuffer &b, void *pointer, const char *info="")
Function called by the Streamer functions to serialize object at p to buffer b.
Definition: TClass.cxx:6605
TClass::IsVersioned
Bool_t IsVersioned() const
Definition: TClass.h:480
TClass::GetDeclFileLine
Short_t GetDeclFileLine() const
Definition: TClass.h:390
TClass::ENewType
ENewType
Definition: TClass.h:106
ROOT::GetClass
TClass * GetClass(T *)
Definition: TClass.h:599
TClass::TDeclNameRegistry::TDeclNameRegistry
TDeclNameRegistry(Int_t verbLevel=0)
TDeclNameRegistry class constructor.
Definition: TClass.cxx:185
TClass::GetListOfEnums
TList * GetListOfEnums(Bool_t load=kTRUE)
Return a list containing the TEnums of a class.
Definition: TClass.cxx:3641
TBuffer
Buffer base class used for serializing objects.
Definition: TBuffer.h:43
TClass::SetClassVersion
void SetClassVersion(Version_t version)
Private function.
Definition: TClass.cxx:5552
TClass::fCurrentInfo
std::atomic< TVirtualStreamerInfo * > fCurrentInfo
Current 'state' of the class (Emulated,Interpreted,Loaded)
Definition: TClass.h:249
TClass::kHasNameMapNode
@ kHasNameMapNode
Definition: TClass.h:103
TClass::fDeclFileName
const char * fDeclFileName
Definition: TClass.h:193
TClass::fStreamer
TClassStreamer * fStreamer
Definition: TClass.h:206
TClass::fClassInfo
ClassInfo_t * fClassInfo
Definition: TClass.h:202
TClass::GetTypeInfo
const std::type_info * GetTypeInfo() const
Definition: TClass.h:457
TCling
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:102
TClass::GetFunctionTemplate
TFunctionTemplate * GetFunctionTemplate(const char *name)
Definition: TClass.cxx:3558
TString
Basic string class.
Definition: TString.h:136
TClass::LoadClassDefault
static TClass * LoadClassDefault(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
Definition: TClass.cxx:5648
ROOT::Internal::TCheckHashRecursiveRemoveConsistency
Definition: TCheckHashRecursiveRemoveConsistency.h:38
TClass::GetSchemaRules
const ROOT::Detail::TSchemaRuleSet * GetSchemaRules() const
Return the set of the schema rules if any.
Definition: TClass.cxx:1896
TClass::RemoveClassDeclId
static void RemoveClassDeclId(TDictionary::DeclId_t id)
Definition: TClass.cxx:528
TClass::fSharedLibs
TString fSharedLibs
Definition: TClass.h:207
TClass::SetMemberStreamer
void SetMemberStreamer(const char *name, MemberStreamerFunc_t strm)
Install a new member streamer (p will be copied).
Definition: TClass.cxx:6570
TClass::HasInterpreterInfo
Bool_t HasInterpreterInfo() const
Definition: TClass.h:371
TClass::AddImplFile
void AddImplFile(const char *filename, int line)
Definition: TClass.cxx:1916
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TClass::GetDeleteArray
ROOT::DelArrFunc_t GetDeleteArray() const
Return the wrapper around delete [] ThiObject.
Definition: TClass.cxx:7274
TClass::GetCheckSum
UInt_t GetCheckSum(ECheckSum code=kCurrentCheckSum) const
Call GetCheckSum with validity check.
Definition: TClass.cxx:6334
TClass::fCheckSum
std::atomic< UInt_t > fCheckSum
Definition: TClass.h:199
TClass::GetMenuItems
void GetMenuItems(TList *listitems)
Returns list of methods accessible by context menu.
Definition: TClass.cxx:3837
TClass::InsertTClassInRegistryRAII
Definition: TClass.h:153
TClass::Load
static TClass * Load(TBuffer &b)
Load class description from I/O buffer and return class object.
Definition: TClass.cxx:5592
TViewPubFunctions
View implementing the TList interface and giving access all the TFunction describing public methods i...
Definition: TViewPubFunctions.h:28
text
TText * text
Definition: entrylist_figure1.C:10
TClass::SetNew
void SetNew(ROOT::NewFunc_t newFunc)
Install a new wrapper around 'new'.
Definition: TClass.cxx:6811
b
#define b(i)
Definition: RSha256.hxx:100
TString.h
TClass::GetListOfMethods
TList * GetListOfMethods(Bool_t load=kTRUE)
Return list containing the TMethods of a class.
Definition: TClass.cxx:3775
TClass::ResetMenuList
void ResetMenuList()
Resets the menu list to it's standard value.
Definition: TClass.cxx:4211
TVirtualStreamerInfo
Abstract Interface class describing Streamer information for one class.
Definition: TVirtualStreamerInfo.h:37
TClass::SetGlobalIsA
void SetGlobalIsA(IsAGlobalFunc_t)
This function installs a global IsA function for this class.
Definition: TClass.cxx:6129
bool
TClass::SetMerge
void SetMerge(ROOT::MergeFunc_t mergeFunc)
Install a new wrapper around 'Merge'.
Definition: TClass.cxx:6795
TClass::SetCurrentStreamerInfo
void SetCurrentStreamerInfo(TVirtualStreamerInfo *info)
Set pointer to current TVirtualStreamerInfo.
Definition: TClass.cxx:5573
TClass::fCanLoadClassInfo
std::atomic< Bool_t > fCanLoadClassInfo
Whether info was loaded from a root pcm.
Definition: TClass.h:231
TClass::HasLocalHashMember
Bool_t HasLocalHashMember() const
Returns true if this class has an definition and/or overload of the member function Hash.
Definition: TClass.cxx:7224
TClass::GetDataMember
TDataMember * GetDataMember(const char *datamember) const
Return pointer to datamember object with name "datamember".
Definition: TClass.cxx:3350
ROOT::DirAutoAdd_t
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition: Rtypes.h:113
TClass::FindStreamerInfo
TVirtualStreamerInfo * FindStreamerInfo(TObjArray *arr, UInt_t checksum) const
Find the TVirtualStreamerInfo in the StreamerInfos corresponding to checksum.
Definition: TClass.cxx:6890
TClass::GetClassMethodWithPrototype
TMethod * GetClassMethodWithPrototype(const char *name, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
Definition: TClass.cxx:4495
TClass::Draw
void Draw(Option_t *option="")
Draw detailed class inheritance structure.
Definition: TClass.cxx:2451
TClass::AdoptMemberStreamer
void AdoptMemberStreamer(const char *name, TMemberStreamer *strm)
Adopt the TMemberStreamer pointer to by p and use it to Stream non basic member name.
Definition: TClass.cxx:6532
TClass::StreamerTObjectInitialized
static void StreamerTObjectInitialized(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects when fIsOffsetStreamerSet is known to have been set.
Definition: TClass.cxx:6640
ClassStreamerFunc_t
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition: Rtypes.h:72
TClass::fStreamerType
Int_t fStreamerType
saved info to call Streamer
Definition: TClass.h:247
TClass::kIgnoreTObjectStreamer
@ kIgnoreTObjectStreamer
Definition: TClass.h:95
TClass::ConvStreamerInstrumented
static void ConvStreamerInstrumented(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of instrumented class with a library.
Definition: TClass.cxx:6671
TClass::SetImplFileName
void SetImplFileName(const char *implFileName)
Definition: TClass.h:514
TClass::GetDelete
ROOT::DelFunc_t GetDelete() const
Return the wrapper around delete ThiObject.
Definition: TClass.cxx:7266
TClass::GetMissingDictionariesWithRecursionCheck
void GetMissingDictionariesWithRecursionCheck(TCollection &result, TCollection &visited, bool recurse)
From the second level of recursion onwards it is different state check.
Definition: TClass.cxx:3953
TClass::GetStreamerFunc
ClassStreamerFunc_t GetStreamerFunc() const
Get a wrapper/accessor function around this class custom streamer (member function).
Definition: TClass.cxx:2903
TClass::Store
void Store(TBuffer &b) const
Store class description on I/O buffer.
Definition: TClass.cxx:5737
TClass::fRuntimeProperties
std::atomic< UChar_t > fRuntimeProperties
Definition: TClass.h:244
TClass::kEmulated
@ kEmulated
Definition: TClass.h:124
TClass::kInterpreted
@ kInterpreted
Definition: TClass.h:125
TClass::HasNoInfoOrEmuOrFwdDeclaredDecl
static Bool_t HasNoInfoOrEmuOrFwdDeclaredDecl(const char *)
Definition: TClass.cxx:3309
TDictionary.h
TClass::kTObject
@ kTObject
Definition: TClass.h:306
DeclIdMap_t
ROOT::TMapDeclIdToTClass DeclIdMap_t
Definition: TClass.h:78
TClass::CopyCollectionProxy
void CopyCollectionProxy(const TVirtualCollectionProxy &)
Copy the argument.
Definition: TClass.cxx:2434
ROOT::ESTLType
ESTLType
Definition: ESTLType.h:28
TClass::GetImplFileLine
Short_t GetImplFileLine() const
Definition: TClass.h:418
TClass::fLastReadInfo
std::atomic< TVirtualStreamerInfo * > fLastReadInfo
cached current streamer info.
Definition: TClass.h:250
TClass::SetClassSize
void SetClassSize(Int_t sizof)
Definition: TClass.h:279
TClass::AutoBrowse
static Int_t AutoBrowse(TObject *obj, TBrowser *browser)
Browse external object inherited from TObject.
Definition: TClass.cxx:1930
TClass::GetContextMenuTitle
const char * GetContextMenuTitle() const
Definition: TClass.h:399
TClass::kInstrumented
@ kInstrumented
Definition: TClass.h:306
TClass::MatchLegacyCheckSum
Bool_t MatchLegacyCheckSum(UInt_t checksum) const
Return true if the checksum passed as argument is one of the checksum value produced by the older che...
Definition: TClass.cxx:6323
ROOT::Internal::GetClassHelper
TClass * GetClassHelper(Bool_t, Bool_t, std::true_type)
Definition: TClass.h:576
TProtoClass
Persistent version of a TClass.
Definition: TProtoClass.h:38
TClass::GetMethodWithPrototype
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
Definition: TClass.cxx:4424
TClass::DeleteArray
void DeleteArray(void *ary, Bool_t dtorOnly=kFALSE)
Explicitly call operator delete[] for an array.
Definition: TClass.cxx:5413
TClass::CreateListOfDataMembers
TList * CreateListOfDataMembers(std::atomic< TListOfDataMembers * > &data, TDictionary::EMemberSelection selection, bool load)
Create the list containing the TDataMembers (of actual data members or members pulled in through usin...
Definition: TClass.cxx:3696
TClass::SetCollectionProxy
void SetCollectionProxy(const ROOT::Detail::TCollectionProxyInfo &)
Create the collection proxy object (and the streamer object) from using the information in the TColle...
Definition: TClass.cxx:6073
TClass::HasConsistentHashMember
Bool_t HasConsistentHashMember()
Return 'true' if we can guarantee that if this class (or any class in this class inheritance hierarch...
Definition: TClass.h:462
ROOT::MergeFunc_t
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition: Rtypes.h:114
ROOT::DelArrFunc_t
void(* DelArrFunc_t)(void *)
Definition: Rtypes.h:111
TClass::kHasTClassInit
@ kHasTClassInit
Definition: TClass.h:126
TClass::ReplaceWith
void ReplaceWith(TClass *newcl) const
Definition: TClass.cxx:4105
TClass::AdoptSchemaRules
void AdoptSchemaRules(ROOT::Detail::TSchemaRuleSet *rules)
Adopt a new set of Data Model Evolution rules.
Definition: TClass.cxx:1884
TClass::EscapeChars
char * EscapeChars(const char *text) const
Introduce an escape character (@) in front of a special chars.
Definition: TClass.cxx:2533
TClass::StreamerStreamerInfo
static void StreamerStreamerInfo(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of where we should directly use the StreamerInfo.
Definition: TClass.cxx:6684
TClass::GetCollectionType
ROOT::ESTLType GetCollectionType() const
Return the 'type' of the STL the TClass is representing.
Definition: TClass.cxx:2850
TListOfDataMembers
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
Definition: TListOfDataMembers.h:33
TClass::SetResetAfterMerge
void SetResetAfterMerge(ROOT::ResetAfterMergeFunc_t resetFunc)
Install a new wrapper around 'ResetAfterMerge'.
Definition: TClass.cxx:6803
TClass::SetRuntimeProperties
void SetRuntimeProperties()
Internal routine to set calculate the class properties that can only be known at run-time,...
Definition: TClass.cxx:6023
TClass::InheritsFrom
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
Definition: TClass.cxx:4835
TClass::AdoptStreamer
void AdoptStreamer(TClassStreamer *strm)
Adopt a TClassStreamer object.
Definition: TClass.cxx:6720
TClass::ReadBuffer
Int_t ReadBuffer(TBuffer &b, void *pointer, Int_t version, UInt_t start, UInt_t count)
Function called by the Streamer functions to deserialize information from buffer b into object at p.
Definition: TClass.cxx:6584
TClass::InsertTClassInRegistryRAII::fNoInfoOrEmuOrFwdDeclNameRegistry
TDeclNameRegistry & fNoInfoOrEmuOrFwdDeclNameRegistry
Definition: TClass.h:157
TVirtualRefProxy
Definition: TVirtualRefProxy.h:81
TClass::InsertTClassInRegistryRAII::fName
const char * fName
Definition: TClass.h:156
TClass::ERuntimeProperties
ERuntimeProperties
Indicates whether GetClassVersion has been called.
Definition: TClass.h:235
TClass::fMerge
ROOT::MergeFunc_t fMerge
saved info to call a IsA member function
Definition: TClass.h:213
TClass::ResetCaches
void ResetCaches()
To clean out all caches.
Definition: TClass.cxx:4183
TClass::InsertTClassInRegistryRAII::fState
TClass::EState & fState
Definition: TClass.h:155
TClass::fStreamerInfo
TObjArray * fStreamerInfo
Definition: TClass.h:178
THashTable
THashTable implements a hash table to store TObject's.
Definition: THashTable.h:35
TClass::fPersistentRef
std::atomic< TClass ** > fPersistentRef
Definition: TClass.h:174
TClass::fOffsetStreamer
Long_t fOffsetStreamer
Properties that can only be evaluated at run-time.
Definition: TClass.h:246
TClass::fShowMembers
ShowMembersFunc_t fShowMembers
Definition: TClass.h:205
TClass::New
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
Definition: TClass.cxx:4939
TClass::IsForeign
Bool_t IsForeign() const
Return kTRUE is the class is Foreign (the class does not have a Streamer method).
Definition: TClass.cxx:5824
TClass::kForeign
@ kForeign
Definition: TClass.h:306
TClass::GetListOfBases
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
Definition: TClass.cxx:3587
TClass::GetNmethods
Int_t GetNmethods()
Return the number of methods of this class Note that in case the list of methods is not yet created,...
Definition: TClass.cxx:4541
TClass::GetListOfRealData
TList * GetListOfRealData() const
Definition: TClass.h:414
TDictionary::DeclId_t
const void * DeclId_t
Definition: TDictionary.h:223
TClass::fDeleteArray
ROOT::DelArrFunc_t fDeleteArray
Definition: TClass.h:218
TClass::TClass
TClass()
Definition: TClass.cxx:1045
TClass::GetConversionStreamerInfo
TVirtualStreamerInfo * GetConversionStreamerInfo(const char *onfile_classname, Int_t version) const
Return a Conversion StreamerInfo from the class 'classname' for version number 'version' to this clas...
Definition: TClass.cxx:6910
TClass::fUsingData
std::atomic< TListOfDataMembers * > fUsingData
Definition: TClass.h:183
TClass::kHasLocalHashMember
@ kHasLocalHashMember
Definition: TClass.h:94
TClass::GetMethod
TMethod * GetMethod(const char *method, const char *params, Bool_t objectIsConst=kFALSE)
Find the best method (if there is one) matching the parameters.
Definition: TClass.cxx:4379
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TClass::operator&
friend bool operator&(UChar_t l, ERuntimeProperties r)
Definition: TClass.h:241
TClass::FindClassOrBaseMethodWithId
TMethod * FindClassOrBaseMethodWithId(DeclId_t faddr)
Find a method with decl id in this class or its bases.
Definition: TClass.cxx:4408
TClass::GetConvStreamerFunc
ClassConvStreamerFunc_t GetConvStreamerFunc() const
Get a wrapper/accessor function around this class custom conversion streamer (member function).
Definition: TClass.cxx:2911
TMethod
Each ROOT class (see TClass) has a linked list of methods.
Definition: TMethod.h:38
Long_t
long Long_t
Definition: RtypesCore.h:54
TClass::fProperty
std::atomic< Long_t > fProperty
Indicates whether this class can be split or not.
Definition: TClass.h:226
TClass::fStreamerFunc
ClassStreamerFunc_t fStreamerFunc
Definition: TClass.h:221
TClass::fIsAMethod
std::atomic< TMethodCall * > fIsAMethod
Definition: TClass.h:211
TClass::RemoveStreamerInfo
void RemoveStreamerInfo(Int_t slot)
Remove and delete the StreamerInfo in the given slot.
Definition: TClass.cxx:7127
TClass::Clone
TObject * Clone(const char *newname="") const
Create a Clone of this TClass object using a different name but using the same 'dictionary'.
Definition: TClass.cxx:2371
TClass::GetDeclFileName
const char * GetDeclFileName() const
Return name of the file containing the declaration of this class.
Definition: TClass.cxx:3374
TClass::kIsTObject
@ kIsTObject
Definition: TClass.h:98
TClass::HasDataMemberInfo
Bool_t HasDataMemberInfo() const
Definition: TClass.h:368
TClass::fData
std::atomic< TListOfDataMembers * > fData
Definition: TClass.h:182
TClass::GetClassSize
Int_t GetClassSize() const
Definition: TClass.h:386
TClass::kWithTypeDef
@ kWithTypeDef
Definition: TClass.h:112
TClass::kNoRangeCheck
@ kNoRangeCheck
Definition: TClass.h:114
TClass::SetDelete
void SetDelete(ROOT::DelFunc_t deleteFunc)
Install a new wrapper around 'delete'.
Definition: TClass.cxx:6827
BIT
#define BIT(n)
Definition: Rtypes.h:85
TClass::GetStreamerInfos
const TObjArray * GetStreamerInfos() const
Definition: TClass.h:453
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TClass::fDirAutoAdd
ROOT::DirAutoAdd_t fDirAutoAdd
Definition: TClass.h:220
TClass::CanSplit
Bool_t CanSplit() const
Return true if the data member of this TClass can be saved separately.
Definition: TClass.cxx:2284
TClass::SetConvStreamerFunc
void SetConvStreamerFunc(ClassConvStreamerFunc_t strm)
Set a wrapper/accessor function around this class custom conversion streamer.
Definition: TClass.cxx:6771
TClass::DetermineCurrentStreamerInfo
TVirtualStreamerInfo * DetermineCurrentStreamerInfo()
Determine and set pointer to current TVirtualStreamerInfo.
Definition: TClass.cxx:5561
TClass::NewArray
void * NewArray(Long_t nElements, ENewType defConstructor=kClassNew) const
Return a pointer to a newly allocated array of objects of this class.
Definition: TClass.cxx:5121
TClass::GetClass
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Definition: TClass.cxx:2932
TClass::AdoptReferenceProxy
void AdoptReferenceProxy(TVirtualRefProxy *proxy)
Adopt the Reference proxy pointer to indicate that this class represents a reference.
Definition: TClass.cxx:6514
TClass::GetListOfUsingDataMembers
TList * GetListOfUsingDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of using declarations of a class.
Definition: TClass.cxx:3749
TClass::fIsA
TVirtualIsAProxy * fIsA
Definition: TClass.h:209
TClass::GetClassInfo
ClassInfo_t * GetClassInfo() const
Definition: TClass.h:394
TClass::GetMenuList
TList * GetMenuList() const
Return the list of menu items associated with the class.
Definition: TClass.cxx:4309
TClass::GetImplFileName
const char * GetImplFileName() const
Definition: TClass.h:417
ShowMembersFunc_t
void(* ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient)
Definition: Rtypes.h:94
Short_t
short Short_t
Definition: RtypesCore.h:39
TClass::InsertTClassInRegistryRAII::~InsertTClassInRegistryRAII
~InsertTClassInRegistryRAII()
Definition: TClass.cxx:254
TClass::GetListOfMethodOverloads
TCollection * GetListOfMethodOverloads(const char *name) const
Return the collection of functions named "name".
Definition: TClass.cxx:3790
TClass::PostLoadCheck
virtual void PostLoadCheck()
Do the initialization that can only be done after the CINT dictionary has been fully populated and ca...
Definition: TClass.cxx:5834
TClass::kHasCustomStreamerMember
@ kHasCustomStreamerMember
Definition: TClass.h:104
ROOT::CreateClass
TClass * CreateClass(const char *cname, Version_t id, const std::type_info &info, TVirtualIsAProxy *isa, const char *dfil, const char *ifil, Int_t dl, Int_t il)
Global function called by a class' static Dictionary() method (see the ClassDef macro).
Definition: TClass.cxx:5746
TClass::fFuncTemplate
TListOfFunctionTemplates * fFuncTemplate
Definition: TClass.h:186
line
TLine * line
Definition: entrylistblock_figure1.C:235
TClass::fContextMenuTitle
TString fContextMenuTitle
Definition: TClass.h:203
TClass::IsFolder
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Definition: TClass.h:476
TClass::fgClassCount
static std::atomic< Int_t > fgClassCount
Definition: TClass.h:298
TClass::BuildRealData
void BuildRealData(void *pointer=0, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
Definition: TClass.cxx:1995
TClass::fClassMenuList
TList * fClassMenuList
Definition: TClass.h:191
TClass::IsTObject
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
Definition: TClass.cxx:5815
void
typedef void((*Func_t)())
TClass::fSchemaRules
ROOT::Detail::TSchemaRuleSet * fSchemaRules
Pointer to reference proxy if this class represents a reference.
Definition: TClass.h:252
TClass::BuildEmulatedRealData
void BuildEmulatedRealData(const char *name, Long_t offset, TClass *cl)
Build the list of real data for an emulated class.
Definition: TClass.cxx:2076
TClass::GetDict
static DictFuncPtr_t GetDict(const char *cname)
Return a pointer to the dictionary loading function generated by rootcint.
Definition: TClass.cxx:3333
TDictionary
This class defines an abstract interface that must be implemented by all classes that contain diction...
Definition: TDictionary.h:167
unsigned int
TClass::fHasRootPcmInfo
std::atomic< Bool_t > fHasRootPcmInfo
C++ Property of the class (is abstract, has virtual table, etc.)
Definition: TClass.h:230
TClass::SetDeclFile
void SetDeclFile(const char *name, int line)
Definition: TClass.h:509
TClass::fConversionStreamerInfo
ConvSIMap_t fConversionStreamerInfo
Definition: TClass.h:179
TClass::ConvSIMap_t
std::atomic< std::map< std::string, TObjArray * > * > ConvSIMap_t
Persistent address of pointer to this TClass object and its successors.
Definition: TClass.h:176
TObject::Dump
virtual void Dump() const
Dump contents of object on stdout.
Definition: TObject.cxx:268
ROOT::EFunctionMatchMode
EFunctionMatchMode
Definition: TDictionary.h:160
TClass::TDeclNameRegistry::AddQualifiedName
void AddQualifiedName(const char *name)
Extract this part of the name.
Definition: TClass.cxx:196
TClass::fImplFileName
const char * fImplFileName
Definition: TClass.h:194
TClass::GetCurrentStreamerInfo
TVirtualStreamerInfo * GetCurrentStreamerInfo()
Definition: TClass.h:400
TClass::GetStreamer
TClassStreamer * GetStreamer() const
Return the Streamer Class allowing streaming (if any).
Definition: TClass.cxx:2878
TClass::kLoaded
@ kLoaded
Definition: TClass.h:129
TClass::GetLastReadInfo
TVirtualStreamerInfo * GetLastReadInfo() const
Definition: TClass.h:405
TClass::AddInstance
void AddInstance(Bool_t heap=kFALSE)
Definition: TClass.h:343
TClass::fEnums
std::atomic< TListOfEnums * > fEnums
Definition: TClass.h:185
TClass::kStartWithTObject
@ kStartWithTObject
Definition: TClass.h:101
TListOfEnums
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
Definition: TListOfEnums.h:33
TClass::fIsOffsetStreamerSet
std::atomic< Bool_t > fIsOffsetStreamerSet
Indicates whether the ClassInfo is supposed to be available.
Definition: TClass.h:232
TClass::fCanSplit
Int_t fCanSplit
Definition: TClass.h:225
TClass::SetContextMenuTitle
void SetContextMenuTitle(const char *title)
Change (i.e. set) the title of the TNamed.
Definition: TClass.cxx:6098
TClass::fAllPubMethod
TViewPubFunctions * fAllPubMethod
Definition: TClass.h:190
proto
const char * proto
Definition: civetweb.c:16604
TClass::GetMissingDictionariesForMembers
void GetMissingDictionariesForMembers(TCollection &result, TCollection &visited, bool recurse)
Verify the Data Members.
Definition: TClass.cxx:3907
TClass::fNew
ROOT::NewFunc_t fNew
Definition: TClass.h:215
kIsStruct
@ kIsStruct
Definition: TDictionary.h:66
TClass::IsStartingWithTObject
Bool_t IsStartingWithTObject() const
Returns true if this class inherits from TObject and if the start of the TObject parts is at the very...
Definition: TClass.cxx:5806
TClass::fgClassTypedefHash
static THashTable * fgClassTypedefHash
Definition: TClass.h:310
TClass::SetUnloaded
void SetUnloaded()
Call this method to indicate that the shared library containing this class's code has been removed (u...
Definition: TClass.cxx:6138
TClass::LoadClassInfo
void LoadClassInfo() const
Try to load the ClassInfo if available.
Definition: TClass.cxx:5701
TClass::ResetInstanceCount
void ResetInstanceCount()
Definition: TClass.h:501
TClass::DynamicCast
void * DynamicCast(const TClass *base, void *obj, Bool_t up=kTRUE)
Cast obj of this class type up to baseclass cl if up is true.
Definition: TClass.cxx:4876
TClass::SetLastReadInfo
void SetLastReadInfo(TVirtualStreamerInfo *info)
Definition: TClass.h:406
TClass::SetDeleteArray
void SetDeleteArray(ROOT::DelArrFunc_t deleteArrayFunc)
Install a new wrapper around 'delete []'.
Definition: TClass.cxx:6835
TClass::GetDirectoryAutoAdd
ROOT::DirAutoAdd_t GetDirectoryAutoAdd() const
Return the wrapper around the directory auto add function.
Definition: TClass.cxx:7290
TClass::ERuntimeProperties::kConsistentHash
@ kConsistentHash
TObjArray.h
TClass::GetListOfDataMembers
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
Definition: TClass.cxx:3733
TClass::GetNew
ROOT::NewFunc_t GetNew() const
Return the wrapper around new ThisClass().
Definition: TClass.cxx:7250
TRealData
The TRealData class manages the effective list of all data members for a given class.
Definition: TRealData.h:30
TClass
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
TClass::HasDictionarySelection
static Bool_t HasDictionarySelection(const char *clname)
Check whether a class has a dictionary or ROOT can load one.
Definition: TClass.cxx:3880
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
TClass::kForwardDeclared
@ kForwardDeclared
Definition: TClass.h:123
TClass::SetNewArray
void SetNewArray(ROOT::NewArrFunc_t newArrayFunc)
Install a new wrapper around 'new []'.
Definition: TClass.cxx:6819
TClass::Destructor
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
Definition: TClass.cxx:5296
TClass::IgnoreTObjectStreamer
void IgnoreTObjectStreamer(Bool_t ignore=kTRUE)
When the class kIgnoreTObjectStreamer bit is set, the automatically generated Streamer will not call ...
Definition: TClass.cxx:4802
TClass::GetIsAProxy
TVirtualIsAProxy * GetIsAProxy() const
Return the proxy implementing the IsA functionality.
Definition: TClass.cxx:2919
TViewPubDataMembers
View implementing the TList interface and giving access all the TDictionary describing public data me...
Definition: TViewPubDataMembers.h:28
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ROOT::TGenericClassInfo
Definition: TGenericClassInfo.h:40
TClass::kNoRange
@ kNoRange
Definition: TClass.h:111
TClass::ERuntimeProperties::kSet
@ kSet
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TDictionary::EMemberSelection
EMemberSelection
Kinds of members to include in lists.
Definition: TDictionary.h:215
TClass::GetBaseClassOffset
Int_t GetBaseClassOffset(const TClass *toBase, void *address=0, bool isDerivedObject=true)
Definition: TClass.cxx:2755
TClass::ERuntimeProperties::kNotInitialized
@ kNotInitialized
ClassConvStreamerFunc_t
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition: Rtypes.h:73
TClass::GetBaseClassOffsetRecurse
Int_t GetBaseClassOffsetRecurse(const TClass *toBase)
Return data member offset to the base class "cl".
Definition: TClass.cxx:2669
name
char name[80]
Definition: TGX11.cxx:110
TClass::InsertTClassInRegistryRAII::InsertTClassInRegistryRAII
InsertTClassInRegistryRAII(TClass::EState &state, const char *name, TDeclNameRegistry &emuRegistry)
Definition: TClass.cxx:248
TClass::LoadClassCustom
static TClass * LoadClassCustom(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
Definition: TClass.cxx:5678
ROOT::Math::Chebyshev::T
double T(double x)
Definition: ChebyshevPol.h:34
TClass::GetState
EState GetState() const
Definition: TClass.h:449
TClass::fSizeof
Int_t fSizeof
Definition: TClass.h:223
ROOT::NewFunc_t
void *(* NewFunc_t)(void *)
Definition: Rtypes.h:108
TClass::SetCanSplit
void SetCanSplit(Int_t splitmode)
Set the splitability of this class:
Definition: TClass.cxx:5535
TClass::GetIdMap
static IdMap_t * GetIdMap()
Definition: TClass.cxx:461
TClass::fMethod
std::atomic< TListOfFunctions * > fMethod
Definition: TClass.h:187
TClass::fInstanceCount
UInt_t fInstanceCount
Definition: TClass.h:197
ROOT::ResetClassVersion
void ResetClassVersion(TClass *, const char *, Short_t)
Global function to update the version number.
Definition: TClassTable.cxx:805
TClass::kNoInfo
@ kNoInfo
Definition: TClass.h:121
TClass::GetDeclIdMap
static DeclIdMap_t * GetDeclIdMap()
Definition: TClass.cxx:472
TClassStreamer
Definition: TClassStreamer.h:26
TClass::fImplFileLine
Short_t fImplFileLine
Definition: TClass.h:196
TClass::fResetAfterMerge
ROOT::ResetAfterMergeFunc_t fResetAfterMerge
Definition: TClass.h:214
TClass::IsCallingNew
static ENewType IsCallingNew()
Static method returning the defConstructor flag passed to TClass::New().
Definition: TClass.cxx:5779
TMethodCall
Method or function calling interface.
Definition: TMethodCall.h:37
TCollection
Collection abstract base class.
Definition: TCollection.h:63
TClass::GetMerge
ROOT::MergeFunc_t GetMerge() const
Return the wrapper around Merge.
Definition: TClass.cxx:7234
TClass::ReadRules
static Int_t ReadRules()
Read the class.rules files from the default location:.
Definition: TClass.cxx:1784
DictFuncPtr_t
TClass *(* DictFuncPtr_t)()
Definition: Rtypes.h:80
TClass::GetClassMethod
TMethod * GetClassMethod(Long_t faddr)
Look for a method in this class that has the interface function address faddr.
Definition: TClass.cxx:4451
TVirtualIsAProxy
Definition: TVirtualIsAProxy.h:27
TClass::fDestructor
ROOT::DesFunc_t fDestructor
Definition: TClass.h:219
TMemberStreamer
Definition: TMemberStreamer.h:26
kIsUnion
@ kIsUnion
Definition: TDictionary.h:67
TClass::Init
void Init(const char *name, Version_t cversion, const std::type_info *info, TVirtualIsAProxy *isa, const char *dfil, const char *ifil, Int_t dl, Int_t il, ClassInfo_t *classInfo, Bool_t silent)
Initialize a TClass object.
Definition: TClass.cxx:1335
TClass::kIsForeign
@ kIsForeign
Definition: TClass.h:99
type
int type
Definition: TGX11.cxx:121
TClass::Move
void Move(void *arenaFrom, void *arenaTo) const
Register the fact that an object was moved from the memory location 'arenaFrom' to the memory locatio...
Definition: TClass.cxx:4295
TClass::fRealData
TList * fRealData
Definition: TClass.h:180
TClass::GetStreamerInfoAbstractEmulated
TVirtualStreamerInfo * GetStreamerInfoAbstractEmulated(Int_t version=0) const
For the case where the requestor class is emulated and this class is abstract, returns a pointer to t...
Definition: TClass.cxx:4670
TClass::TClass
TClass(const TClass &tc)=delete
TClass::CallShowMembers
Bool_t CallShowMembers(const void *obj, TMemberInspector &insp, Bool_t isTransient=kFALSE) const
Call ShowMembers() on the obj of this class type, passing insp and parent.
Definition: TClass.cxx:2169
TClass::kWarned
@ kWarned
Definition: TClass.h:102
TClass::AddClassToDeclIdMap
static void AddClassToDeclIdMap(TDictionary::DeclId_t id, TClass *cl)
static: Add a TClass* to the map of classes.
Definition: TClass.cxx:503
TClass::GetDestructor
ROOT::DesFunc_t GetDestructor() const
Return the wrapper around the destructor.
Definition: TClass.cxx:7282
TClass::kEmulatedStreamer
@ kEmulatedStreamer
Definition: TClass.h:306
TClass::kReflexNoComment
@ kReflexNoComment
Definition: TClass.h:110
Class
void Class()
Definition: Class.C:29
TClass::InterpretedShowMembers
void InterpretedShowMembers(void *obj, TMemberInspector &insp, Bool_t isTransient)
Do a ShowMembers() traversal of all members and base classes' members using the reflection informatio...
Definition: TClass.cxx:2206
TClass::AddRule
static Bool_t AddRule(const char *rule)
Add a schema evolution customization rule.
Definition: TClass.cxx:1854
TClass::SetStreamerFunc
void SetStreamerFunc(ClassStreamerFunc_t strm)
Set a wrapper/accessor function around this class custom streamer.
Definition: TClass.cxx:6748
TClass::fVersionUsed
std::atomic< Bool_t > fVersionUsed
saved remember if fOffsetStreamer has been set.
Definition: TClass.h:233
TClass::fState
EState fState
cached of the streaming method to use
Definition: TClass.h:248
TClass::GetShowMembersWrapper
ShowMembersFunc_t GetShowMembersWrapper() const
Definition: TClass.h:448
TClass::kRealNew
@ kRealNew
Definition: TClass.h:106
TClass::fBase
std::atomic< TList * > fBase
Definition: TClass.h:181
TClass::SetStreamerInfo
TVirtualStreamerInfo * SetStreamerInfo(Int_t version, const char *info="")
Info is a string describing the names and types of attributes written by the class Streamer function.
Definition: TClass.cxx:6202
TClass::StreamerExternal
static void StreamerExternal(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
There is special streamer for the class.
Definition: TClass.cxx:6614
TClass::fGlobalIsA
IsAGlobalFunc_t fGlobalIsA
pointer to the class's IsA proxy.
Definition: TClass.h:210
TClass::fStreamerImpl
std::atomic< StreamerImpl_t > fStreamerImpl
Definition: TClass.h:258
ROOT
VSD Structures.
Definition: StringConv.hxx:21
TClass::fTypeInfo
const std::type_info * fTypeInfo
Definition: TClass.h:204
TClass::kReservedLoading
@ kReservedLoading
Definition: TClass.h:91
ROOT::Detail::TSchemaRuleSet
Definition: TSchemaRuleSet.h:25
TClass::kNoBaseCheckSum
@ kNoBaseCheckSum
Definition: TClass.h:115
TClass::kUnloaded
@ kUnloaded
Definition: TClass.h:96
TObject::EStatusBits
EStatusBits
Definition: TObject.h:57
TVirtualCollectionProxy
Definition: TVirtualCollectionProxy.h:38
TClass::fNoInfoOrEmuOrFwdDeclNameRegistry
static TDeclNameRegistry fNoInfoOrEmuOrFwdDeclNameRegistry
Definition: TClass.h:300
TList
A doubly linked list.
Definition: TList.h:44
TClass::ls
void ls(Option_t *opt="") const
The ls function lists the contents of a class on stdout.
Definition: TClass.cxx:4226
TClass::kDummyNew
@ kDummyNew
Definition: TClass.h:106
int
IdMap_t
ROOT::TMapTypeToTClass IdMap_t
Definition: TClass.h:77
TClass::GetSharedLibs
const char * GetSharedLibs()
Get the list of shared libraries containing the code for class cls.
Definition: TClass.cxx:3574
TFunctionTemplate
Dictionary for function template This class describes one single function template.
Definition: TFunctionTemplate.h:26
TClass::TDeclNameRegistry
Definition: TClass.h:138
TClass::HasDictionary
Bool_t HasDictionary() const
Check whether a class has a dictionary or not.
Definition: TClass.cxx:3869