Logo ROOT  
Reference Guide
Rtypes.h
Go to the documentation of this file.
1/* @(#)root/base:$Id$ */
2
3/*************************************************************************
4 * Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_Rtypes
12#define ROOT_Rtypes
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// Rtypes //
17// //
18// Basic types used by ROOT; ClassDef macros. //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22
23#include "RtypesCore.h"
24#include "DllImport.h"
25
26#include "snprintf.h" // part of stdio.h on systems that have it
27#include "strlcpy.h" // part of string.h on systems that have it
28
29#include <atomic>
30#include <stdio.h>
31#include <string.h>
32#include <typeinfo>
33#include <type_traits>
34
35#ifndef __CLING__
36// __attribute__ is not supported on Windows, but it is internally needed by Cling
37// for autoloading and Clad rely on __attribute__((annotate("D")))
38#if defined(R__WIN32)
39#define __attribute__(unused)
40#endif
41#endif
42
43//---- forward declared class types --------------------------------------------
44
45class TClass;
46class TBuffer;
47class TDirectory;
49class TObject;
50class TNamed;
51class TCollection;
52class TFileMergeInfo;
53class TString;
54
55//Moved from TSystem.
60 kItimerResolution = 10 // interval-timer resolution in ms
61};
62
63enum EColor { kWhite =0, kBlack =1, kGray=920,
64 kRed =632, kGreen =416, kBlue=600, kYellow=400, kMagenta=616, kCyan=432,
65 kOrange=800, kSpring=820, kTeal=840, kAzure =860, kViolet =880, kPink=900 };
66
67// There is several streamer concepts.
68class TClassStreamer; // Streamer functor for a class
69class TMemberStreamer; // Streamer functor for a data member
70typedef void (*ClassStreamerFunc_t)(TBuffer&, void*); // Streamer function for a class
71typedef void (*ClassConvStreamerFunc_t)(TBuffer&, void*, const TClass*); // Streamer function for a class with conversion.
72typedef void (*MemberStreamerFunc_t)(TBuffer&, void*, Int_t); // Streamer function for a data member
73
74// This class is used to implement proxy around collection classes.
76
77typedef void (*VoidFuncPtr_t)(); //pointer to void function
78typedef TClass* (*DictFuncPtr_t)(); //pointer to dictionary function
79// NOTE: the previous name must be changed.
80
81//--- bit manipulation ---------------------------------------------------------
82
83#define BIT(n) (1ULL << (n))
84#define SETBIT(n,i) ((n) |= BIT(i))
85#define CLRBIT(n,i) ((n) &= ~BIT(i))
86#define TESTBIT(n,i) ((Bool_t)(((n) & BIT(i)) != 0))
87
88
89
90//---- ClassDef macros ---------------------------------------------------------
91
92typedef void (*ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient);
94typedef TClass *(*IsAGlobalFunc_t)(const TClass*, const void *obj);
95
96// TBuffer.h declares and implements the following 2 operators
97template <class Tmpl> TBuffer &operator>>(TBuffer &buf, Tmpl *&obj);
98template <class Tmpl> TBuffer &operator<<(TBuffer &buf, const Tmpl *obj);
99
100// This might get used if we implement setting a class version.
101// template <class RootClass> Short_t GetClassVersion(RootClass *);
102
103namespace ROOT {
104
105 class TGenericClassInfo;
106 typedef void *(*NewFunc_t)(void *);
107 typedef void *(*NewArrFunc_t)(Long_t size, void *arena);
108 typedef void (*DelFunc_t)(void *);
109 typedef void (*DelArrFunc_t)(void *);
110 typedef void (*DesFunc_t)(void *);
111 typedef void (*DirAutoAdd_t)(void *, TDirectory *);
114
115 template <class RootClass> Short_t SetClassVersion(RootClass *);
116
117 extern TClass *CreateClass(const char *cname, Version_t id,
118 const std::type_info &info, TVirtualIsAProxy *isa,
119 const char *dfil, const char *ifil,
120 Int_t dl, Int_t il);
121 extern void AddClass(const char *cname, Version_t id, const std::type_info &info,
122 DictFuncPtr_t dict, Int_t pragmabits);
123 extern void RemoveClass(const char *cname);
124 extern void ResetClassVersion(TClass*, const char*, Short_t);
125 extern void AddClassAlternate(const char *normName, const char *alternate);
126
127 extern TNamed *RegisterClassTemplate(const char *name,
128 const char *file, Int_t line);
129
130 extern void Class_ShowMembers(TClass *cl, const void *obj, TMemberInspector&);
131
132#if 0
133 // This function is only implemented in the dictionary file.
134 // The parameter is 'only' for overloading resolution.
135 // Used to be a template <class T> TGenericClassInfo *GenerateInitInstance(const T*);
136 template <class T> TGenericClassInfo *GetClassInfo(const T* t) {
137 TGenericClassInfo *GenerateInitInstance(const T*);
138 return CreateInitInstance(t);
139 };
140#endif
141
142 namespace Internal {
144 // This class defines the interface for the class registration and
145 // the TClass creation. To modify the default behavior, one would
146 // inherit from this class and overload ROOT::DefineBehavior().
147 // See TQObject.h and table/inc/Ttypes.h for examples.
148 public:
149 virtual ~TInitBehavior() { }
150
151 virtual void Register(const char *cname, Version_t id,
152 const std::type_info &info,
153 DictFuncPtr_t dict, Int_t pragmabits) const = 0;
154 virtual void Unregister(const char *classname) const = 0;
155 virtual TClass *CreateClass(const char *cname, Version_t id,
156 const std::type_info &info, TVirtualIsAProxy *isa,
157 const char *dfil, const char *ifil,
158 Int_t dl, Int_t il) const = 0;
159 };
160
162 public:
163 virtual void Register(const char *cname, Version_t id,
164 const std::type_info &info,
165 DictFuncPtr_t dict, Int_t pragmabits) const {
166 ROOT::AddClass(cname, id, info, dict, pragmabits);
167 }
168
169 virtual void Unregister(const char *classname) const {
170 ROOT::RemoveClass(classname);
171 }
172
173 virtual TClass *CreateClass(const char *cname, Version_t id,
174 const std::type_info &info, TVirtualIsAProxy *isa,
175 const char *dfil, const char *ifil,
176 Int_t dl, Int_t il) const {
177 return ROOT::CreateClass(cname, id, info, isa, dfil, ifil, dl, il);
178 }
179 };
180
181 const TInitBehavior *DefineBehavior(void * /*parent_type*/,
182 void * /*actual_type*/);
183 } // namespace Internal
184
185} // namespace ROOT
186
187// The macros below use TGenericClassInfo and TInstrumentedIsAProxy, so let's
188// ensure they are included.
189#include "TGenericClassInfo.h"
190
191typedef std::atomic<TClass*> atomic_TClass_ptr;
192
193#include "TIsAProxy.h"
194
195namespace ROOT { namespace Internal {
196
198public:
199 // All implemented in TGenericClassInfo.cxx.
200 static void SetInstance(::ROOT::TGenericClassInfo& R__instance,
202 static void SetName(const std::string& name, std::string& nameMember);
203 static void SetfgIsA(atomic_TClass_ptr& isA, TClass*(*dictfun)());
204};
205
206template <typename T>
208 public TCDGIILIBase {
210 static ::ROOT::TGenericClassInfo *fgGenericInfo;
211 public:
212 static void *New(void *p) { return p ? new(p) T : new T; };
213 static void *NewArray(Long_t nElements, void *p) {
214 return p ? new(p) T[nElements] : new T[nElements]; }
215 static void Delete(void *p) { delete ((T*)p); }
216 static void DeleteArray(void *p) { delete[] ((T*)p); }
217 static void Destruct(void *p) { ((T*)p)->~T(); }
218 static ::ROOT::TGenericClassInfo *GenerateInitInstanceLocal() {
219 static ::TVirtualIsAProxy* isa_proxy = new ::TInstrumentedIsAProxy<T>(0);
220 static ::ROOT::TGenericClassInfo
221 R__instance(T::Class_Name(), T::Class_Version(),
222 T::DeclFileName(), T::DeclFileLine(),
223 typeid(T), ::ROOT::Internal::DefineBehavior((T*)0, (T*)0),
224 &T::Dictionary, isa_proxy, 0, sizeof(T) );
225 SetInstance(R__instance, &New, &NewArray, &Delete, &DeleteArray, &Destruct);
226 return &R__instance;
227 }
228 // We need a reference to the template instance static member in a concrete function in order
229 // to force its instantiation (even before the function is actually run)
230 // Since we do have a reference to Dictionary (in T::Dictionary), using fgGenericInfo
231 // here will insure that it is initialized at process start or library load time.
232 static TClass *Dictionary() { fgIsA = fgGenericInfo->GetClass(); return fgIsA; }
233 static TClass *Class() { SetfgIsA(fgIsA, &Dictionary); return fgIsA; }
234 static const char* Name() {
235 static std::string gName;
236 if (gName.empty())
238 return gName.c_str();
239 }
240 };
241
242 template<typename T>
244 template<typename T>
247 };
248
249 template <typename T>
252 };
253
254 template <typename T>
256
257 void DefaultStreamer(TBuffer &R__b, const TClass *cl, void *objpointer);
259 Bool_t HasConsistentHashMember(const char *clName);
260}} // namespace ROOT::Internal
261
262
263// Common part of ClassDef definition.
264// DeclFileLine() is not part of it since CINT uses that as trigger for
265// the class comment string.
266#define _ClassDefBase_(name, id, virtual_keyword, overrd) \
267private: \
268 static_assert(std::is_integral<decltype(id)>::value, "ClassDef(Inline) macro: the specified class version number is not an integer."); \
269 virtual_keyword Bool_t CheckTObjectHashConsistency() const overrd \
270 { \
271 static std::atomic<UChar_t> recurseBlocker(0); \
272 if (R__likely(recurseBlocker >= 2)) { \
273 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
274 } else if (recurseBlocker == 1) { \
275 return false; \
276 } else if (recurseBlocker++ == 0) { \
277 ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency = \
278 ::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) || \
279 ::ROOT::Internal::HasConsistentHashMember(*IsA()); \
280 ++recurseBlocker; \
281 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
282 } \
283 return false; /* unreacheable */ \
284 } \
285 \
286public: \
287 static Version_t Class_Version() { return id; } \
288 virtual_keyword TClass *IsA() const overrd { return name::Class(); } \
289 virtual_keyword void ShowMembers(TMemberInspector &insp) const overrd \
290 { \
291 ::ROOT::Class_ShowMembers(name::Class(), this, insp); \
292 } \
293 void StreamerNVirtual(TBuffer &ClassDef_StreamerNVirtual_b) { name::Streamer(ClassDef_StreamerNVirtual_b); } \
294 static const char *DeclFileName() { return __FILE__; }
295
296#define _ClassDefOutline_(name,id, virtual_keyword, overrd) \
297 _ClassDefBase_(name,id, virtual_keyword, overrd) \
298private: \
299 static atomic_TClass_ptr fgIsA; \
300public: \
301 static int ImplFileLine(); \
302 static const char *ImplFileName(); \
303 static const char *Class_Name(); \
304 static TClass *Dictionary(); \
305 static TClass *Class(); \
306 virtual_keyword void Streamer(TBuffer&) overrd;
307
308#define _ClassDefInline_(name, id, virtual_keyword, overrd) \
309 _ClassDefBase_(name, id, virtual_keyword, overrd) public : static int ImplFileLine() { return -1; } \
310 static const char *ImplFileName() { return 0; } \
311 static const char *Class_Name() \
312 { \
313 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Name(); \
314 } \
315 static TClass *Dictionary() \
316 { \
317 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Dictionary(); \
318 } \
319 static TClass *Class() { return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Class(); } \
320 virtual_keyword void Streamer(TBuffer &R__b) overrd { ::ROOT::Internal::DefaultStreamer(R__b, name::Class(), this); }
321
322#define ClassDef(name,id) \
323 _ClassDefOutline_(name,id,virtual,) \
324 static int DeclFileLine() { return __LINE__; }
325
326#define ClassDefOverride(name,id) \
327 _ClassDefOutline_(name,id,,override) \
328 static int DeclFileLine() { return __LINE__; }
329
330#define ClassDefNV(name,id) \
331 _ClassDefOutline_(name,id,,) \
332 static int DeclFileLine() { return __LINE__; }
333
334#define ClassDefInline(name,id) \
335 _ClassDefInline_(name,id,virtual,) \
336 static int DeclFileLine() { return __LINE__; }
337
338#define ClassDefInlineOverride(name,id) \
339 _ClassDefInline_(name,id,,override) \
340 static int DeclFileLine() { return __LINE__; }
341
342#define ClassDefInlineNV(name,id) \
343 _ClassDefInline_(name,id,,) \
344 static int DeclFileLine() { return __LINE__; }
345
346//#define _ClassDefInterp_(name,id) ClassDefInline(name,id)
347
348#define R__UseDummy(name) \
349 class _NAME2_(name,_c) { public: _NAME2_(name,_c)() { if (name) { } } }
350
351
352#define ClassImpUnique(name,key) \
353 namespace ROOT { \
354 TGenericClassInfo *GenerateInitInstance(const name*); \
355 namespace { \
356 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) __attribute__((unused)) = \
357 GenerateInitInstance((name*)0x0)->SetImplFile(__FILE__, __LINE__); \
358 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
359 } \
360 }
361#define ClassImp(name) ClassImpUnique(name,default)
362
363// Macro for Namespace
364
365#define NamespaceImpUnique(name,key) \
366 namespace name { \
367 namespace ROOTDict { \
368 ::ROOT::TGenericClassInfo *GenerateInitInstance(); \
369 namespace { \
370 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) = \
371 GenerateInitInstance()->SetImplFile(__FILE__, __LINE__); \
372 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
373 } \
374 } \
375 }
376#define NamespaceImp(name) NamespaceImpUnique(name,default)
377
378//---- ClassDefT macros for templates with one template argument ---------------
379// ClassDefT corresponds to ClassDef
380// ClassDefT2 goes in the same header as ClassDefT but must be
381// outside the class scope
382// ClassImpT corresponds to ClassImp
383
384
385// This ClassDefT is stricly redundant and is kept only for
386// backward compatibility.
387
388#define ClassDefT(name,id) \
389 _ClassDefOutline_(name,id,virtual,) \
390 static int DeclFileLine() { return __LINE__; }
391
392#define ClassDefTNV(name,id) \
393 _ClassDefOutline_(name,id,virtual,) \
394 static int DeclFileLine() { return __LINE__; }
395
396
397#define ClassDefT2(name,Tmpl)
398
399#define templateClassImpUnique(name, key) \
400 namespace ROOT { \
401 static TNamed * \
402 _R__UNIQUE_(_NAME2_(R__dummyholder, key)) = ::ROOT::RegisterClassTemplate(_QUOTE_(name), __FILE__, __LINE__); \
403 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyholder, key))); \
404 }
405#define templateClassImp(name) templateClassImpUnique(name,default)
406
407#define ClassImpT(name,Tmpl) templateClassImp(name)
408
409//---- ClassDefT macros for templates with two template arguments --------------
410// ClassDef2T2 goes in the same header as ClassDefT but must be
411// outside the class scope
412// ClassImp2T corresponds to ClassImpT
413
414#define ClassDef2T2(name,Tmpl1,Tmpl2)
415#define ClassImp2T(name,Tmpl1,Tmpl2) templateClassImp(name)
416
417
418//---- ClassDefT macros for templates with three template arguments ------------
419// ClassDef3T2 goes in the same header as ClassDefT but must be
420// outside the class scope
421// ClassImp3T corresponds to ClassImpT
422
423#define ClassDef3T2(name,Tmpl1,Tmpl2,Tmpl3)
424#define ClassImp3T(name,Tmpl1,Tmpl2,Tmpl3) templateClassImp(name)
425
426
427//---- Macro to set the class version of non instrumented classes --------------
428
429#define RootClassVersion(name,VersionNumber) \
430namespace ROOT { \
431 TGenericClassInfo *GenerateInitInstance(const name*); \
432 static Short_t _R__UNIQUE_(R__dummyVersionNumber) = \
433 GenerateInitInstance((name*)0x0)->SetVersion(VersionNumber); \
434 R__UseDummy(_R__UNIQUE_(R__dummyVersionNumber)); \
435}
436
437#define RootStreamer(name,STREAMER) \
438namespace ROOT { \
439 TGenericClassInfo *GenerateInitInstance(const name*); \
440 static Short_t _R__UNIQUE_(R__dummyStreamer) = \
441 GenerateInitInstance((name*)0x0)->SetStreamer(STREAMER); \
442 R__UseDummy(_R__UNIQUE_(R__dummyStreamer)); \
443}
444
445//---- Macro to load a library into the interpreter --------------
446// Call as R__LOAD_LIBRARY(libEvent)
447// This macro intentionally does not take string as argument, to
448// prevent compilation errors with complex diagnostics due to
449// TString BAD_DO_NOT_TRY = "lib";
450// R__LOAD_LIBRARY(BAD_DO_NOT_TRY + "BAD_DO_NOT_TRY.so") // ERROR!
451#ifdef __CLING__
452# define _R_PragmaStr(x) _Pragma(#x)
453# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(cling load ( #LIBRARY ))
454# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(cling add_include_path ( #PATH ))
455# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(cling add_library_path ( #PATH ))
456#elif defined(R__WIN32)
457# define _R_PragmaStr(x) __pragma(#x)
458# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(comment(lib, #LIBRARY))
459# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
460# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
461#else
462// No way to inform linker though preprocessor :-(
463// We could even inform the user:
464/*
465# define R__LOAD_LIBRARY(LIBRARY) \
466 _R_PragmaStr(message "Compiler cannot handle linking against " #LIBRARY \
467 ". Use -L and -l instead.")
468*/
469# define R__LOAD_LIBRARY(LIBRARY)
470# define R__ADD_INCLUDE_PATH(PATH)
471# define R__ADD_LIBRARY_PATH(PATH)
472#endif
473
474// Convenience macros to disable cling pointer check.
475#ifdef __CLING__
476# define R__CLING_PTRCHECK(ONOFF) __attribute__((annotate("__cling__ptrcheck(" #ONOFF ")")))
477#else
478# define R__CLING_PTRCHECK(ONOFF)
479#endif
480
481// On Windows strtok_r does not exist: the function is called strtok_s.
482inline char *R__STRTOK_R(char *str, const char *delim, char **saveptr)
483{
484#if defined(R__WIN32)
485 return strtok_s(str, delim, saveptr);
486#else
487 return strtok_r(str, delim, saveptr);
488#endif
489}
490
491#endif
int Int_t
Definition: RtypesCore.h:43
short Version_t
Definition: RtypesCore.h:63
long Long_t
Definition: RtypesCore.h:52
bool Bool_t
Definition: RtypesCore.h:61
short Short_t
Definition: RtypesCore.h:37
long long Long64_t
Definition: RtypesCore.h:71
TClass *(* DictFuncPtr_t)()
Definition: Rtypes.h:78
void(* VoidFuncPtr_t)()
Definition: Rtypes.h:77
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
Definition: TBuffer.h:398
char * R__STRTOK_R(char *str, const char *delim, char **saveptr)
Definition: Rtypes.h:482
void(* MemberStreamerFunc_t)(TBuffer &, void *, Int_t)
Definition: Rtypes.h:72
void(* ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient)
Definition: Rtypes.h:92
EColor
Definition: Rtypes.h:63
@ kTeal
Definition: Rtypes.h:65
@ kGray
Definition: Rtypes.h:63
@ kPink
Definition: Rtypes.h:65
@ kRed
Definition: Rtypes.h:64
@ kOrange
Definition: Rtypes.h:65
@ kBlack
Definition: Rtypes.h:63
@ kGreen
Definition: Rtypes.h:64
@ kMagenta
Definition: Rtypes.h:64
@ kWhite
Definition: Rtypes.h:63
@ kCyan
Definition: Rtypes.h:64
@ kBlue
Definition: Rtypes.h:64
@ kAzure
Definition: Rtypes.h:65
@ kYellow
Definition: Rtypes.h:64
@ kViolet
Definition: Rtypes.h:65
@ kSpring
Definition: Rtypes.h:65
TBuffer & operator>>(TBuffer &buf, Tmpl *&obj)
Definition: TBuffer.h:382
std::atomic< TClass * > atomic_TClass_ptr
Definition: Rtypes.h:191
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition: Rtypes.h:70
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition: Rtypes.h:71
ESysConstants
Definition: Rtypes.h:56
@ kItimerResolution
Definition: Rtypes.h:60
@ kMAXSIGNALS
Definition: Rtypes.h:57
@ kMAXPATHLEN
Definition: Rtypes.h:58
@ kBUFFERSIZE
Definition: Rtypes.h:59
char name[80]
Definition: TGX11.cxx:109
typedef void((*Func_t)())
static void * NewArray(Long_t nElements, void *p)
Definition: Rtypes.h:213
::ROOT::TGenericClassInfo * GenerateInitInstanceLocal()
Definition: Rtypes.h:218
static void SetInstance(::ROOT::TGenericClassInfo &R__instance, NewFunc_t, NewArrFunc_t, DelFunc_t, DelArrFunc_t, DesFunc_t)
static void SetName(const std::string &name, std::string &nameMember)
static void SetfgIsA(atomic_TClass_ptr &isA, TClass *(*dictfun)())
virtual 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) const
Definition: Rtypes.h:173
virtual void Register(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits) const
Definition: Rtypes.h:163
virtual void Unregister(const char *classname) const
Definition: Rtypes.h:169
virtual 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) const =0
virtual void Register(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits) const =0
virtual void Unregister(const char *classname) const =0
Buffer base class used for serializing objects.
Definition: TBuffer.h:42
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:80
Collection abstract base class.
Definition: TCollection.h:63
Describe directory structure in memory.
Definition: TDirectory.h:40
Abstract base class for accessing the data-members of a class.
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Mother of all ROOT objects.
Definition: TObject.h:37
Basic string class.
Definition: TString.h:131
TLine * line
PyObject * gName
Definition: PyStrings.cxx:26
void DefaultStreamer(TBuffer &R__b, const TClass *cl, void *objpointer)
Default streamer implementation used by ClassDefInline to avoid requirement to include TBuffer....
Definition: TBuffer.cxx:30
const TInitBehavior * DefineBehavior(void *, void *)
std::string GetDemangledTypeName(const std::type_info &)
Returns a string with the demangled and normalized name for the given type.
Bool_t HasConsistentHashMember(TClass &clRef)
Return true is the Hash/RecursiveRemove setup is consistent, i.e.
Definition: TClass.cxx:7288
double T(double x)
Definition: ChebyshevPol.h:34
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: StringConv.hxx:21
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition: Rtypes.h:111
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition: Rtypes.h:113
void(* DesFunc_t)(void *)
Definition: Rtypes.h:110
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:5832
void(* DelFunc_t)(void *)
Definition: Rtypes.h:108
void AddClassAlternate(const char *normName, const char *alternate)
Global function called by GenerateInitInstance.
void RemoveClass(const char *cname)
Global function called by the dtor of a class's init class (see the ClassImp macro).
void AddClass(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits)
Global function called by the ctor of a class's init class (see the ClassImp macro).
TNamed * RegisterClassTemplate(const char *name, const char *file, Int_t line)
Global function to register the implementation file and line of a class template (i....
void *(* NewArrFunc_t)(Long_t size, void *arena)
Definition: Rtypes.h:107
void Class_ShowMembers(TClass *cl, const void *obj, TMemberInspector &)
Indirect call to the implementation of ShowMember allowing [forward] declaration with out a full defi...
Definition: TClass.cxx:544
void ResetClassVersion(TClass *, const char *, Short_t)
Global function to update the version number.
Short_t SetClassVersion(RootClass *)
void(* DelArrFunc_t)(void *)
Definition: Rtypes.h:109
void *(* NewFunc_t)(void *)
Definition: Rtypes.h:106
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition: Rtypes.h:112
Definition: file.py:1