Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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" // included via RtypesCore.h, not used here
25
26#ifndef R__LESS_INCLUDES
27#include <cstdio>
28#include "strtok.h" // provides R__STRTOK_R with <cstring> include
29#include "strlcpy.h" // part of string.h on systems that have it
30#include "snprintf.h" // part of stdio.h on systems that have it
31#include <type_traits>
32#endif
33
34#include <typeinfo>
35#include <atomic>
36
37#ifndef __CLING__
38// __attribute__ is not supported on Windows, but it is internally needed by Cling
39// for autoloading and Clad rely on __attribute__((annotate("D")))
40#if defined(R__WIN32)
41#define __attribute__(unused)
42#endif
43#endif
44
45//---- forward declared class types --------------------------------------------
46
47class TClass;
48class TBuffer;
49class TDirectory;
51class TObject;
52class TNamed;
53class TCollection;
54class TFileMergeInfo;
55class TString;
56
57//Moved from TSystem.
62 kItimerResolution = 10 // interval-timer resolution in ms
63};
64
65enum EColor { kWhite =0, kBlack =1, kGray =920,
66 kRed =632, kGreen =416, kBlue =600, kYellow =400, kMagenta =616, kCyan =432,
67 kOrange =800, kSpring =820, kTeal =840, kAzure =860, kViolet =880, kPink =900,
68 kGrape =100, kBrown =101, kAsh =102,
69 kP6Blue =103, kP6Yellow =104, kP6Red =105, kP6Grape=106, kP6Gray =107, kP6Violet=108,
70 kP8Blue =109, kP8Orange =110, kP8Red =111, kP8Pink =112, kP8Green =113, kP8Cyan =114, kP8Azure =115, kP8Gray =116,
71 kP10Blue =117, kP10Yellow=118, kP10Red =119, kP10Gray=120, kP10Violet=121, kP10Brown=122, kP10Orange=123, kP10Green=124, kP10Ash=125, kP10Cyan=126
72 };
73
74// There is several streamer concepts.
75class TClassStreamer; // Streamer functor for a class
76class TMemberStreamer; // Streamer functor for a data member
77typedef void (*ClassStreamerFunc_t)(TBuffer&, void*); // Streamer function for a class
78typedef void (*ClassConvStreamerFunc_t)(TBuffer&, void*, const TClass*); // Streamer function for a class with conversion.
79typedef void (*MemberStreamerFunc_t)(TBuffer&, void*, Int_t); // Streamer function for a data member
80
81// This class is used to implement proxy around collection classes.
83
84typedef void (*VoidFuncPtr_t)(); //pointer to void function
85typedef TClass* (*DictFuncPtr_t)(); //pointer to dictionary function
86// NOTE: the previous name must be changed.
87
88//--- bit manipulation ---------------------------------------------------------
89
90#define BIT(n) (1ULL << (n))
91#define SETBIT(n,i) ((n) |= BIT(i))
92#define CLRBIT(n,i) ((n) &= ~BIT(i))
93#define TESTBIT(n,i) ((Bool_t)(((n) & BIT(i)) != 0))
94
95
96
97//---- ClassDef macros ---------------------------------------------------------
98
99typedef void (*ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient);
100class TVirtualIsAProxy;
101typedef TClass *(*IsAGlobalFunc_t)(const TClass*, const void *obj);
102
103// TBuffer.h declares and implements the following 2 operators
104template <class Tmpl> TBuffer &operator>>(TBuffer &buf, Tmpl *&obj);
105template <class Tmpl> TBuffer &operator<<(TBuffer &buf, const Tmpl *obj);
106
107// This might get used if we implement setting a class version.
108// template <class RootClass> Short_t GetClassVersion(RootClass *);
109
110namespace ROOT {
111
112 class TGenericClassInfo;
113 class TClassAlt;
114 typedef void *(*NewFunc_t)(void *);
115 typedef void *(*NewArrFunc_t)(Long_t size, void *arena);
116 typedef void (*DelFunc_t)(void *);
117 typedef void (*DelArrFunc_t)(void *);
118 typedef void (*DesFunc_t)(void *);
119 typedef void (*DirAutoAdd_t)(void *, TDirectory *);
121 typedef void (*ResetAfterMergeFunc_t)(void *, TFileMergeInfo *);
122
123 template <class RootClass> Short_t SetClassVersion(RootClass *);
124
125 extern TClass *CreateClass(const char *cname, Version_t id,
126 const std::type_info &info, TVirtualIsAProxy *isa,
127 const char *dfil, const char *ifil,
128 Int_t dl, Int_t il);
129 extern void AddClass(const char *cname, Version_t id, const std::type_info &info,
130 DictFuncPtr_t dict, Int_t pragmabits);
131 extern void RemoveClass(const char *cname, TClass *cl);
132 extern void ResetClassVersion(TClass*, const char*, Short_t);
133 extern ROOT::TClassAlt* AddClassAlternate(const char *normName, const char *alternate);
135
136 extern TNamed *RegisterClassTemplate(const char *name,
137 const char *file, Int_t line);
138
139 extern void Class_ShowMembers(TClass *cl, const void *obj, TMemberInspector&);
140
141#if 0
142 // This function is only implemented in the dictionary file.
143 // The parameter is 'only' for overloading resolution.
144 // Used to be a template <class T> TGenericClassInfo *GenerateInitInstance(const T*);
145 template <class T> TGenericClassInfo *GetClassInfo(const T* t) {
146 TGenericClassInfo *GenerateInitInstance(const T*);
147 return CreateInitInstance(t);
148 };
149#endif
150
151 namespace Internal {
153 // This class defines the interface for the class registration and
154 // the TClass creation. To modify the default behavior, one would
155 // inherit from this class and overload ROOT::DefineBehavior().
156 // See TQObject.h and table/inc/Ttypes.h for examples.
157 public:
158 virtual ~TInitBehavior() { }
159
160 virtual void Register(const char *cname, Version_t id,
161 const std::type_info &info,
162 DictFuncPtr_t dict, Int_t pragmabits) const = 0;
163 virtual void Unregister(const char *classname, TClass *cl) const = 0;
164 virtual TClass *CreateClass(const char *cname, Version_t id,
165 const std::type_info &info, TVirtualIsAProxy *isa,
166 const char *dfil, const char *ifil,
167 Int_t dl, Int_t il) const = 0;
168 };
169
171 public:
172 void Register(const char *cname, Version_t id,
173 const std::type_info &info,
174 DictFuncPtr_t dict, Int_t pragmabits) const override {
175 ROOT::AddClass(cname, id, info, dict, pragmabits);
176 }
177
178 void Unregister(const char *classname, TClass *cl) const override {
179 ROOT::RemoveClass(classname, cl);
180 }
181
183 const std::type_info &info, TVirtualIsAProxy *isa,
184 const char *dfil, const char *ifil,
185 Int_t dl, Int_t il) const override {
186 return ROOT::CreateClass(cname, id, info, isa, dfil, ifil, dl, il);
187 }
188 };
189
190 const TInitBehavior *DefineBehavior(void * /*parent_type*/,
191 void * /*actual_type*/);
192 } // namespace Internal
193
194} // namespace ROOT
195
196// The macros below use TGenericClassInfo and TInstrumentedIsAProxy, so let's
197// ensure they are included.
198#include "TGenericClassInfo.h"
199
200typedef std::atomic<TClass*> atomic_TClass_ptr;
201
202#include "TIsAProxy.h"
203#include <string>
204
205namespace ROOT { namespace Internal {
206
208public:
209 // All implemented in TGenericClassInfo.cxx.
210 static void SetInstance(::ROOT::TGenericClassInfo& R__instance,
212 static void SetName(const std::string& name, std::string& nameMember);
213 static void SetfgIsA(atomic_TClass_ptr& isA, TClass*(*dictfun)());
214};
215
216template <typename T>
218 public TCDGIILIBase {
220 static ::ROOT::TGenericClassInfo *fgGenericInfo;
221 public:
222 static void *New(void *p) { return p ? new(p) T : new T; };
223 static void *NewArray(Long_t nElements, void *p) {
224 return p ? new(p) T[nElements] : new T[nElements]; }
225 static void Delete(void *p) { delete ((T*)p); }
226 static void DeleteArray(void *p) { delete[] ((T*)p); }
227 static void Destruct(void *p) { ((T*)p)->~T(); }
228 static ::ROOT::TGenericClassInfo *GenerateInitInstanceLocal() {
229 static ::TVirtualIsAProxy* isa_proxy = new ::TInstrumentedIsAProxy<T>(nullptr);
230 static ::ROOT::TGenericClassInfo
231 R__instance(T::Class_Name(), T::Class_Version(),
232 T::DeclFileName(), T::DeclFileLine(),
233 typeid(T), ::ROOT::Internal::DefineBehavior((T*)nullptr, (T*)nullptr),
234 &T::Dictionary, isa_proxy, 0, sizeof(T) );
235 SetInstance(R__instance, &New, &NewArray, &Delete, &DeleteArray, &Destruct);
236 return &R__instance;
237 }
238 // We need a reference to the template instance static member in a concrete function in order
239 // to force its instantiation (even before the function is actually run)
240 // Since we do have a reference to Dictionary (in T::Dictionary), using fgGenericInfo
241 // here will insure that it is initialized at process start or library load time.
242 static TClass *Dictionary() { fgIsA = fgGenericInfo->GetClass(); return fgIsA; }
243 static TClass *Class() { SetfgIsA(fgIsA, &Dictionary); return fgIsA; }
244 static const char* Name() {
245 static std::string gName;
246 if (gName.empty())
247 SetName(GetDemangledTypeName(typeid(T)), gName);
248 return gName.c_str();
249 }
250 };
251
252 template<typename T>
254 template<typename T>
257 };
258
259 template <typename T>
262 };
263
264 template <typename T>
266
267 void DefaultStreamer(TBuffer &R__b, const TClass *cl, void *objpointer);
269 Bool_t HasConsistentHashMember(const char *clName);
270}} // namespace ROOT::Internal
271
272
273/// Common part being called both by \_ClassDefOutline\_ and \_ClassDefInline\_.
274/// \note DeclFileLine() is not part of it, since Cling uses that as trigger for
275/// associating as class title the comment string found right after the macro.
276#define _ClassDefBase_(name, id, virtual_keyword, overrd) \
277private: \
278 static_assert(std::is_integral<decltype(id)>::value, \
279 "ClassDef(Inline) macro: the specified class version number is not an integer."); \
280 /** \cond HIDDEN_SYMBOLS */ virtual_keyword Bool_t CheckTObjectHashConsistency() const overrd \
281 { \
282 static std::atomic<UChar_t> recurseBlocker(0); \
283 if (R__likely(recurseBlocker >= 2)) { \
284 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
285 } else if (recurseBlocker == 1) { \
286 return false; \
287 } else if (recurseBlocker++ == 0) { \
288 ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency = \
289 ::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) || \
290 ::ROOT::Internal::HasConsistentHashMember(*IsA()); \
291 ++recurseBlocker; \
292 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
293 } \
294 return false; /* unreachable */ \
295 } /** \endcond */ \
296 \
297public: \
298 /** \return Version of this class */ static constexpr Version_t Class_Version() { return id; } \
299 /** \return TClass describing current object */ virtual_keyword TClass *IsA() const overrd \
300 { return name::Class(); } \
301 /** \cond HIDDEN_SYMBOLS */ virtual_keyword void ShowMembers(TMemberInspector &insp) const overrd \
302 { \
303 ::ROOT::Class_ShowMembers(name::Class(), this, insp); \
304 } /** \endcond */ \
305 void StreamerNVirtual(TBuffer &ClassDef_StreamerNVirtual_b) { name::Streamer(ClassDef_StreamerNVirtual_b); } \
306 /** \return Name of the file containing the class declaration */ static const char *DeclFileName() { return __FILE__; }
307
308#define _ClassDefOutline_(name,id, virtual_keyword, overrd) \
309 _ClassDefBase_(name,id, virtual_keyword, overrd) \
310private: \
311 /** \cond HIDDEN_SYMBOLS \brief Pointer holding the address of the TClass describing this class */ \
312 static atomic_TClass_ptr fgIsA; /** \endcond */ \
313public: \
314 /** \cond HIDDEN_SYMBOLS \deprecated */ static int ImplFileLine(); /** \endcond */ \
315 /** \cond HIDDEN_SYMBOLS \deprecated */ static const char *ImplFileName(); /** \endcond */ \
316 /** \return Name of this class */ static const char *Class_Name(); \
317 /** \cond HIDDEN_SYMBOLS */ static TClass *Dictionary(); /** \endcond */ \
318 /** \return TClass describing this class */ static TClass *Class(); \
319 virtual_keyword void Streamer(TBuffer&) overrd;
320
321#define _ClassDefInline_(name, id, virtual_keyword, overrd) \
322 _ClassDefBase_(name, id, virtual_keyword, overrd) public : \
323 /** \cond HIDDEN_SYMBOLS \deprecated */ static int ImplFileLine() { return -1; } /** \endcond */ \
324 /** \cond HIDDEN_SYMBOLS \deprecated */ static const char *ImplFileName() { return nullptr; } /** \endcond */\
325 /** \return Name of this class */ static const char *Class_Name() \
326 { \
327 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Name(); \
328 } \
329 /** \cond HIDDEN_SYMBOLS */ static TClass *Dictionary() \
330 { \
331 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Dictionary(); \
332 } /** \endcond */ \
333 /** \return TClass describing this class */ static TClass *Class() \
334 { \
335 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Class(); \
336 } \
337 virtual_keyword void Streamer(TBuffer &R__b) overrd \
338 { \
339 ::ROOT::Internal::DefaultStreamer(R__b, name::Class(), this); \
340 }
341
342#define ClassDef(name,id) \
343 _ClassDefOutline_(name,id,virtual,) \
344 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
345
346#define ClassDefOverride(name,id) \
347 _ClassDefOutline_(name,id,,override) \
348 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
349
350#define ClassDefNV(name,id) \
351 _ClassDefOutline_(name,id,,) \
352 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
353
354#define ClassDefInline(name,id) \
355 _ClassDefInline_(name,id,virtual,) \
356 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
357
358#define ClassDefInlineOverride(name,id) \
359 _ClassDefInline_(name,id,,override) \
360 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
361
362#define ClassDefInlineNV(name,id) \
363 _ClassDefInline_(name,id,,) \
364 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
365
366//#define _ClassDefInterp_(name,id) ClassDefInline(name,id)
367
368#define R__UseDummy(name) \
369 class _NAME2_(name,_c) { public: _NAME2_(name,_c)() { if (name) { } } }
370
371#define ClassImpUnique(name,key) \
372 namespace ROOT { \
373 /** \cond HIDDEN_SYMBOLS */ TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
374 namespace { \
375 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) __attribute__((unused)) = \
376 GenerateInitInstance((name*)0x0)->SetImplFile(__FILE__, __LINE__); \
377 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
378 } \
379 }
380
381/// \deprecated
382#define ClassImp(name) ClassImpUnique(name,default)
383
384/// Macro for Namespace
385#define NamespaceImpUnique(name,key) \
386 namespace name { \
387 namespace ROOTDict { \
388 /** \cond HIDDEN_SYMBOLS */ \
389 ::ROOT::TGenericClassInfo *GenerateInitInstance(); /** \endcond */ \
390 namespace { \
391 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) = \
392 GenerateInitInstance()->SetImplFile(__FILE__, __LINE__); \
393 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
394 } \
395 } \
396 }
397
398#define NamespaceImp(name) NamespaceImpUnique(name,default)
399
400//---- ClassDefT macros for templates with one template argument ---------------
401// ClassDefT corresponds to ClassDef
402// ClassDefT2 goes in the same header as ClassDefT but must be
403// outside the class scope
404// ClassImpT corresponds to ClassImp
405
406
407/// This ClassDefT is strictly redundant and is kept only for
408/// backward compatibility. \deprecated
409#define ClassDefT(name,id) \
410 _ClassDefOutline_(name,id,virtual,) \
411 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
412
413#define ClassDefTNV(name,id) \
414 _ClassDefOutline_(name,id,virtual,) \
415 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
416
417
418#define ClassDefT2(name,Tmpl)
419
420#define templateClassImpUnique(name, key) \
421 namespace ROOT { \
422 /** \cond HIDDEN_SYMBOLS */ static TNamed * \
423 _R__UNIQUE_(_NAME2_(R__dummyholder, key)) = ::ROOT::RegisterClassTemplate(_QUOTE_(name), __FILE__, __LINE__); \
424 /** \endcond */ \
425 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyholder, key))); \
426 }
427#define templateClassImp(name) templateClassImpUnique(name,default)
428
429#define ClassImpT(name,Tmpl) templateClassImp(name)
430
431//---- ClassDefT macros for templates with two template arguments --------------
432// ClassDef2T2 goes in the same header as ClassDefT but must be
433// outside the class scope
434// ClassImp2T corresponds to ClassImpT
435
436#define ClassDef2T2(name,Tmpl1,Tmpl2)
437#define ClassImp2T(name,Tmpl1,Tmpl2) templateClassImp(name)
438
439
440//---- ClassDefT macros for templates with three template arguments ------------
441// ClassDef3T2 goes in the same header as ClassDefT but must be
442// outside the class scope
443// ClassImp3T corresponds to ClassImpT
444
445#define ClassDef3T2(name,Tmpl1,Tmpl2,Tmpl3)
446#define ClassImp3T(name,Tmpl1,Tmpl2,Tmpl3) templateClassImp(name)
447
448
449//---- Macro to set the class version of non instrumented classes --------------
450
451#define RootClassVersion(name,VersionNumber) \
452namespace ROOT { /** \cond HIDDEN_SYMBOLS */ \
453 TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
454 /** \cond HIDDEN_SYMBOLS */ \
455 static Short_t _R__UNIQUE_(R__dummyVersionNumber) = \
456 GenerateInitInstance((name*)0x0)->SetVersion(VersionNumber); \
457 /** \endcond */ \
458 R__UseDummy(_R__UNIQUE_(R__dummyVersionNumber)); \
459}
460
461#define RootStreamer(name,STREAMER) \
462namespace ROOT { \
463 /** \cond HIDDEN_SYMBOLS */ \
464 TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
465 /** \cond HIDDEN_SYMBOLS */ \
466 static Short_t _R__UNIQUE_(R__dummyStreamer) = \
467 GenerateInitInstance((name*)0x0)->SetStreamer(STREAMER); \
468 /** \endcond */ \
469 R__UseDummy(_R__UNIQUE_(R__dummyStreamer)); \
470}
471
472//---- Macro to load a library into the interpreter --------------
473// Call as R__LOAD_LIBRARY(libEvent)
474// This macro intentionally does not take string as argument, to
475// prevent compilation errors with complex diagnostics due to
476// TString BAD_DO_NOT_TRY = "lib";
477// R__LOAD_LIBRARY(BAD_DO_NOT_TRY + "BAD_DO_NOT_TRY.so") // ERROR!
478#ifdef __CLING__
479# define _R_PragmaStr(x) _Pragma(#x)
480# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(cling load ( #LIBRARY ))
481# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(cling add_include_path ( #PATH ))
482# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(cling add_library_path ( #PATH ))
483#elif defined(R__WIN32)
484# define _R_PragmaStr(x) __pragma(#x)
485# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(comment(lib, #LIBRARY))
486# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
487# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
488#else
489// No way to inform linker though preprocessor :-(
490// We could even inform the user:
491/*
492# define R__LOAD_LIBRARY(LIBRARY) \
493 _R_PragmaStr(message "Compiler cannot handle linking against " #LIBRARY \
494 ". Use -L and -l instead.")
495*/
496# define R__LOAD_LIBRARY(LIBRARY)
497# define R__ADD_INCLUDE_PATH(PATH)
498# define R__ADD_LIBRARY_PATH(PATH)
499#endif
500
501// Convenience macros to disable cling pointer check.
502#ifdef __CLING__
503# define R__CLING_PTRCHECK(ONOFF) __attribute__((annotate("__cling__ptrcheck(" #ONOFF ")")))
504#else
505# define R__CLING_PTRCHECK(ONOFF)
506#endif
507
508#endif
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
short Version_t
Definition RtypesCore.h:65
long Long_t
Definition RtypesCore.h:54
short Short_t
Definition RtypesCore.h:39
long long Long64_t
Definition RtypesCore.h:69
TClass *(* DictFuncPtr_t)()
Definition Rtypes.h:85
void(* VoidFuncPtr_t)()
Definition Rtypes.h:84
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
Definition TBuffer.h:397
void(* MemberStreamerFunc_t)(TBuffer &, void *, Int_t)
Definition Rtypes.h:79
void(* ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient)
Definition Rtypes.h:99
EColor
Definition Rtypes.h:65
@ kP8Cyan
Definition Rtypes.h:70
@ kTeal
Definition Rtypes.h:67
@ kP8Red
Definition Rtypes.h:70
@ kGray
Definition Rtypes.h:65
@ kAsh
Definition Rtypes.h:68
@ kP6Red
Definition Rtypes.h:69
@ kP8Pink
Definition Rtypes.h:70
@ kP10Violet
Definition Rtypes.h:71
@ kP10Orange
Definition Rtypes.h:71
@ kBrown
Definition Rtypes.h:68
@ kP6Grape
Definition Rtypes.h:69
@ kPink
Definition Rtypes.h:67
@ kP8Azure
Definition Rtypes.h:70
@ kRed
Definition Rtypes.h:66
@ kGrape
Definition Rtypes.h:68
@ kP6Gray
Definition Rtypes.h:69
@ kOrange
Definition Rtypes.h:67
@ kP8Gray
Definition Rtypes.h:70
@ kP10Red
Definition Rtypes.h:71
@ kBlack
Definition Rtypes.h:65
@ kP10Brown
Definition Rtypes.h:71
@ kP10Cyan
Definition Rtypes.h:71
@ kGreen
Definition Rtypes.h:66
@ kMagenta
Definition Rtypes.h:66
@ kP10Ash
Definition Rtypes.h:71
@ kWhite
Definition Rtypes.h:65
@ kP10Green
Definition Rtypes.h:71
@ kP6Yellow
Definition Rtypes.h:69
@ kCyan
Definition Rtypes.h:66
@ kBlue
Definition Rtypes.h:66
@ kP10Gray
Definition Rtypes.h:71
@ kAzure
Definition Rtypes.h:67
@ kYellow
Definition Rtypes.h:66
@ kP8Orange
Definition Rtypes.h:70
@ kP8Green
Definition Rtypes.h:70
@ kP8Blue
Definition Rtypes.h:70
@ kViolet
Definition Rtypes.h:67
@ kP6Violet
Definition Rtypes.h:69
@ kP10Yellow
Definition Rtypes.h:71
@ kSpring
Definition Rtypes.h:67
@ kP10Blue
Definition Rtypes.h:71
@ kP6Blue
Definition Rtypes.h:69
TBuffer & operator>>(TBuffer &buf, Tmpl *&obj)
Definition TBuffer.h:381
std::atomic< TClass * > atomic_TClass_ptr
Definition Rtypes.h:200
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition Rtypes.h:77
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition Rtypes.h:78
ESysConstants
Definition Rtypes.h:58
@ kItimerResolution
Definition Rtypes.h:62
@ kMAXSIGNALS
Definition Rtypes.h:59
@ kMAXPATHLEN
Definition Rtypes.h:60
@ kBUFFERSIZE
Definition Rtypes.h:61
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char cname
char name[80]
Definition TGX11.cxx:110
static void * NewArray(Long_t nElements, void *p)
Definition Rtypes.h:223
::ROOT::TGenericClassInfo * GenerateInitInstanceLocal()
Definition Rtypes.h:228
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)())
void Unregister(const char *classname, TClass *cl) const override
Definition Rtypes.h:178
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 override
Definition Rtypes.h:182
void Register(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits) const override
Definition Rtypes.h:172
virtual void Unregister(const char *classname, TClass *cl) const =0
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
Buffer base class used for serializing objects.
Definition TBuffer.h:43
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:81
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:3035
Collection abstract base class.
Definition TCollection.h:65
Describe directory structure in memory.
Definition TDirectory.h:45
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:41
Basic string class.
Definition TString.h:139
Defines a common interface to inspect/change the contents of an object that represents a collection.
TLine * line
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 *)
Bool_t HasConsistentHashMember(TClass &clRef)
Return true is the Hash/RecursiveRemove setup is consistent, i.e.
Definition TClass.cxx:7438
std::string GetDemangledTypeName(const std::type_info &t)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition Rtypes.h:119
ROOT::TClassAlt * AddClassAlternate(const char *normName, const char *alternate)
Global function called by GenerateInitInstance.
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition Rtypes.h:121
void(* DesFunc_t)(void *)
Definition Rtypes.h:118
void RemoveClass(const char *cname, TClass *cl)
Global function called by the dtor of a class's init class (see the ClassImp macro).
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:5936
void(* DelFunc_t)(void *)
Definition Rtypes.h:116
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:115
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:613
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:117
void *(* NewFunc_t)(void *)
Definition Rtypes.h:114
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
Definition Rtypes.h:120
void RemoveClassAlternate(ROOT::TClassAlt *)