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