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
69// There is several streamer concepts.
70class TClassStreamer; // Streamer functor for a class
71class TMemberStreamer; // Streamer functor for a data member
72typedef void (*ClassStreamerFunc_t)(TBuffer&, void*); // Streamer function for a class
73typedef void (*ClassConvStreamerFunc_t)(TBuffer&, void*, const TClass*); // Streamer function for a class with conversion.
74typedef void (*MemberStreamerFunc_t)(TBuffer&, void*, Int_t); // Streamer function for a data member
75
76// This class is used to implement proxy around collection classes.
78
79typedef void (*VoidFuncPtr_t)(); //pointer to void function
80typedef TClass* (*DictFuncPtr_t)(); //pointer to dictionary function
81// NOTE: the previous name must be changed.
82
83//--- bit manipulation ---------------------------------------------------------
84
85#define BIT(n) (1ULL << (n))
86#define SETBIT(n,i) ((n) |= BIT(i))
87#define CLRBIT(n,i) ((n) &= ~BIT(i))
88#define TESTBIT(n,i) ((Bool_t)(((n) & BIT(i)) != 0))
89
90
91
92//---- ClassDef macros ---------------------------------------------------------
93
94typedef void (*ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient);
96typedef TClass *(*IsAGlobalFunc_t)(const TClass*, const void *obj);
97
98// TBuffer.h declares and implements the following 2 operators
99template <class Tmpl> TBuffer &operator>>(TBuffer &buf, Tmpl *&obj);
100template <class Tmpl> TBuffer &operator<<(TBuffer &buf, const Tmpl *obj);
101
102// This might get used if we implement setting a class version.
103// template <class RootClass> Short_t GetClassVersion(RootClass *);
104
105namespace ROOT {
106
107 class TGenericClassInfo;
108 class TClassAlt;
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 *);
116 typedef void (*ResetAfterMergeFunc_t)(void *, TFileMergeInfo *);
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, TClass *cl);
127 extern void ResetClassVersion(TClass*, const char*, Short_t);
128 extern ROOT::TClassAlt* AddClassAlternate(const char *normName, const char *alternate);
130
131 extern TNamed *RegisterClassTemplate(const char *name,
132 const char *file, Int_t line);
133
134 extern void Class_ShowMembers(TClass *cl, const void *obj, TMemberInspector&);
135
136#if 0
137 // This function is only implemented in the dictionary file.
138 // The parameter is 'only' for overloading resolution.
139 // Used to be a template <class T> TGenericClassInfo *GenerateInitInstance(const T*);
140 template <class T> TGenericClassInfo *GetClassInfo(const T* t) {
141 TGenericClassInfo *GenerateInitInstance(const T*);
142 return CreateInitInstance(t);
143 };
144#endif
145
146 namespace Internal {
148 // This class defines the interface for the class registration and
149 // the TClass creation. To modify the default behavior, one would
150 // inherit from this class and overload ROOT::DefineBehavior().
151 // See TQObject.h and table/inc/Ttypes.h for examples.
152 public:
153 virtual ~TInitBehavior() { }
154
155 virtual void Register(const char *cname, Version_t id,
156 const std::type_info &info,
157 DictFuncPtr_t dict, Int_t pragmabits) const = 0;
158 virtual void Unregister(const char *classname, TClass *cl) const = 0;
159 virtual TClass *CreateClass(const char *cname, Version_t id,
160 const std::type_info &info, TVirtualIsAProxy *isa,
161 const char *dfil, const char *ifil,
162 Int_t dl, Int_t il) const = 0;
163 };
164
166 public:
167 void Register(const char *cname, Version_t id,
168 const std::type_info &info,
169 DictFuncPtr_t dict, Int_t pragmabits) const override {
170 ROOT::AddClass(cname, id, info, dict, pragmabits);
171 }
172
173 void Unregister(const char *classname, TClass *cl) const override {
174 ROOT::RemoveClass(classname, cl);
175 }
176
178 const std::type_info &info, TVirtualIsAProxy *isa,
179 const char *dfil, const char *ifil,
180 Int_t dl, Int_t il) const override {
181 return ROOT::CreateClass(cname, id, info, isa, dfil, ifil, dl, il);
182 }
183 };
184
185 const TInitBehavior *DefineBehavior(void * /*parent_type*/,
186 void * /*actual_type*/);
187 } // namespace Internal
188
189} // namespace ROOT
190
191// The macros below use TGenericClassInfo and TInstrumentedIsAProxy, so let's
192// ensure they are included.
193#include "TGenericClassInfo.h"
194
195typedef std::atomic<TClass*> atomic_TClass_ptr;
196
197#include "TIsAProxy.h"
198#include <string>
199
200namespace ROOT { namespace Internal {
201
203public:
204 // All implemented in TGenericClassInfo.cxx.
205 static void SetInstance(::ROOT::TGenericClassInfo& R__instance,
207 static void SetName(const std::string& name, std::string& nameMember);
208 static void SetfgIsA(atomic_TClass_ptr& isA, TClass*(*dictfun)());
209};
210
211template <typename T>
213 public TCDGIILIBase {
215 static ::ROOT::TGenericClassInfo *fgGenericInfo;
216 public:
217 static void *New(void *p) { return p ? new(p) T : new T; };
218 static void *NewArray(Long_t nElements, void *p) {
219 return p ? new(p) T[nElements] : new T[nElements]; }
220 static void Delete(void *p) { delete ((T*)p); }
221 static void DeleteArray(void *p) { delete[] ((T*)p); }
222 static void Destruct(void *p) { ((T*)p)->~T(); }
223 static ::ROOT::TGenericClassInfo *GenerateInitInstanceLocal() {
224 static ::TVirtualIsAProxy* isa_proxy = new ::TInstrumentedIsAProxy<T>(nullptr);
225 static ::ROOT::TGenericClassInfo
226 R__instance(T::Class_Name(), T::Class_Version(),
227 T::DeclFileName(), T::DeclFileLine(),
228 typeid(T), ::ROOT::Internal::DefineBehavior((T*)nullptr, (T*)nullptr),
229 &T::Dictionary, isa_proxy, 0, sizeof(T) );
230 SetInstance(R__instance, &New, &NewArray, &Delete, &DeleteArray, &Destruct);
231 return &R__instance;
232 }
233 // We need a reference to the template instance static member in a concrete function in order
234 // to force its instantiation (even before the function is actually run)
235 // Since we do have a reference to Dictionary (in T::Dictionary), using fgGenericInfo
236 // here will insure that it is initialized at process start or library load time.
237 static TClass *Dictionary() { fgIsA = fgGenericInfo->GetClass(); return fgIsA; }
238 static TClass *Class() { SetfgIsA(fgIsA, &Dictionary); return fgIsA; }
239 static const char* Name() {
240 static std::string gName;
241 if (gName.empty())
242 SetName(GetDemangledTypeName(typeid(T)), gName);
243 return gName.c_str();
244 }
245 };
246
247 template<typename T>
249 template<typename T>
252 };
253
254 template <typename T>
257 };
258
259 template <typename T>
261
262 void DefaultStreamer(TBuffer &R__b, const TClass *cl, void *objpointer);
264 Bool_t HasConsistentHashMember(const char *clName);
265}} // namespace ROOT::Internal
266
267
268/// Common part being called both by \_ClassDefOutline\_ and \_ClassDefInline\_.
269/// \note DeclFileLine() is not part of it, since Cling uses that as trigger for
270/// associating as class title the comment string found right after the macro.
271#define _ClassDefBase_(name, id, virtual_keyword, overrd) \
272private: \
273 static_assert(std::is_integral<decltype(id)>::value, \
274 "ClassDef(Inline) macro: the specified class version number is not an integer."); \
275 /** \cond HIDDEN_SYMBOLS */ virtual_keyword Bool_t CheckTObjectHashConsistency() const overrd \
276 { \
277 static std::atomic<UChar_t> recurseBlocker(0); \
278 if (R__likely(recurseBlocker >= 2)) { \
279 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
280 } else if (recurseBlocker == 1) { \
281 return false; \
282 } else if (recurseBlocker++ == 0) { \
283 ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency = \
284 ::ROOT::Internal::HasConsistentHashMember(_QUOTE_(name)) || \
285 ::ROOT::Internal::HasConsistentHashMember(*IsA()); \
286 ++recurseBlocker; \
287 return ::ROOT::Internal::THashConsistencyHolder<decltype(*this)>::fgHashConsistency; \
288 } \
289 return false; /* unreachable */ \
290 } /** \endcond */ \
291 \
292public: \
293 /** \return Version of this class */ static constexpr Version_t Class_Version() { return id; } \
294 /** \return TClass describing current object */ virtual_keyword TClass *IsA() const overrd \
295 { return name::Class(); } \
296 /** \cond HIDDEN_SYMBOLS */ virtual_keyword void ShowMembers(TMemberInspector &insp) const overrd \
297 { \
298 ::ROOT::Class_ShowMembers(name::Class(), this, insp); \
299 } /** \endcond */ \
300 void StreamerNVirtual(TBuffer &ClassDef_StreamerNVirtual_b) { name::Streamer(ClassDef_StreamerNVirtual_b); } \
301 /** \return Name of the file containing the class declaration */ static const char *DeclFileName() { return __FILE__; }
302
303#define _ClassDefOutline_(name,id, virtual_keyword, overrd) \
304 _ClassDefBase_(name,id, virtual_keyword, overrd) \
305private: \
306 /** \cond HIDDEN_SYMBOLS \brief Pointer holding the address of the TClass describing this class */ \
307 static atomic_TClass_ptr fgIsA; /** \endcond */ \
308public: \
309 /** \cond HIDDEN_SYMBOLS \deprecated */ static int ImplFileLine(); /** \endcond */ \
310 /** \cond HIDDEN_SYMBOLS \deprecated */ static const char *ImplFileName(); /** \endcond */ \
311 /** \return Name of this class */ static const char *Class_Name(); \
312 /** \cond HIDDEN_SYMBOLS */ static TClass *Dictionary(); /** \endcond */ \
313 /** \return TClass describing this class */ static TClass *Class(); \
314 virtual_keyword void Streamer(TBuffer&) overrd;
315
316#define _ClassDefInline_(name, id, virtual_keyword, overrd) \
317 _ClassDefBase_(name, id, virtual_keyword, overrd) public : \
318 /** \cond HIDDEN_SYMBOLS \deprecated */ static int ImplFileLine() { return -1; } /** \endcond */ \
319 /** \cond HIDDEN_SYMBOLS \deprecated */ static const char *ImplFileName() { return nullptr; } /** \endcond */\
320 /** \return Name of this class */ static const char *Class_Name() \
321 { \
322 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Name(); \
323 } \
324 /** \cond HIDDEN_SYMBOLS */ static TClass *Dictionary() \
325 { \
326 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Dictionary(); \
327 } /** \endcond */ \
328 /** \return TClass describing this class */ static TClass *Class() \
329 { \
330 return ::ROOT::Internal::ClassDefGenerateInitInstanceLocalInjector<name>::Class(); \
331 } \
332 virtual_keyword void Streamer(TBuffer &R__b) overrd \
333 { \
334 ::ROOT::Internal::DefaultStreamer(R__b, name::Class(), this); \
335 }
336
337#define ClassDef(name,id) \
338 _ClassDefOutline_(name,id,virtual,) \
339 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
340
341#define ClassDefOverride(name,id) \
342 _ClassDefOutline_(name,id,,override) \
343 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
344
345#define ClassDefNV(name,id) \
346 _ClassDefOutline_(name,id,,) \
347 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
348
349#define ClassDefInline(name,id) \
350 _ClassDefInline_(name,id,virtual,) \
351 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
352
353#define ClassDefInlineOverride(name,id) \
354 _ClassDefInline_(name,id,,override) \
355 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
356
357#define ClassDefInlineNV(name,id) \
358 _ClassDefInline_(name,id,,) \
359 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
360
361//#define _ClassDefInterp_(name,id) ClassDefInline(name,id)
362
363#define R__UseDummy(name) \
364 class _NAME2_(name,_c) { public: _NAME2_(name,_c)() { if (name) { } } }
365
366#define ClassImpUnique(name,key) \
367 namespace ROOT { \
368 /** \cond HIDDEN_SYMBOLS */ TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
369 namespace { \
370 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) __attribute__((unused)) = \
371 GenerateInitInstance((name*)0x0)->SetImplFile(__FILE__, __LINE__); \
372 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
373 } \
374 }
375
376/// \deprecated
377#define ClassImp(name) ClassImpUnique(name,default)
378
379/// Macro for Namespace
380#define NamespaceImpUnique(name,key) \
381 namespace name { \
382 namespace ROOTDict { \
383 /** \cond HIDDEN_SYMBOLS */ \
384 ::ROOT::TGenericClassInfo *GenerateInitInstance(); /** \endcond */ \
385 namespace { \
386 static int _R__UNIQUE_(_NAME2_(R__dummyint,key)) = \
387 GenerateInitInstance()->SetImplFile(__FILE__, __LINE__); \
388 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyint,key))); \
389 } \
390 } \
391 }
392
393#define NamespaceImp(name) NamespaceImpUnique(name,default)
394
395//---- ClassDefT macros for templates with one template argument ---------------
396// ClassDefT corresponds to ClassDef
397// ClassDefT2 goes in the same header as ClassDefT but must be
398// outside the class scope
399// ClassImpT corresponds to ClassImp
400
401
402/// This ClassDefT is strictly redundant and is kept only for
403/// backward compatibility. \deprecated
404#define ClassDefT(name,id) \
405 _ClassDefOutline_(name,id,virtual,) \
406 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
407
408#define ClassDefTNV(name,id) \
409 _ClassDefOutline_(name,id,virtual,) \
410 /** \cond HIDDEN_SYMBOLS */ static int DeclFileLine() { return __LINE__; } /** \endcond */
411
412
413#define ClassDefT2(name,Tmpl)
414
415#define templateClassImpUnique(name, key) \
416 namespace ROOT { \
417 /** \cond HIDDEN_SYMBOLS */ static TNamed * \
418 _R__UNIQUE_(_NAME2_(R__dummyholder, key)) = ::ROOT::RegisterClassTemplate(_QUOTE_(name), __FILE__, __LINE__); \
419 /** \endcond */ \
420 R__UseDummy(_R__UNIQUE_(_NAME2_(R__dummyholder, key))); \
421 }
422#define templateClassImp(name) templateClassImpUnique(name,default)
423
424#define ClassImpT(name,Tmpl) templateClassImp(name)
425
426//---- ClassDefT macros for templates with two template arguments --------------
427// ClassDef2T2 goes in the same header as ClassDefT but must be
428// outside the class scope
429// ClassImp2T corresponds to ClassImpT
430
431#define ClassDef2T2(name,Tmpl1,Tmpl2)
432#define ClassImp2T(name,Tmpl1,Tmpl2) templateClassImp(name)
433
434
435//---- ClassDefT macros for templates with three template arguments ------------
436// ClassDef3T2 goes in the same header as ClassDefT but must be
437// outside the class scope
438// ClassImp3T corresponds to ClassImpT
439
440#define ClassDef3T2(name,Tmpl1,Tmpl2,Tmpl3)
441#define ClassImp3T(name,Tmpl1,Tmpl2,Tmpl3) templateClassImp(name)
442
443
444//---- Macro to set the class version of non instrumented classes --------------
445
446#define RootClassVersion(name,VersionNumber) \
447namespace ROOT { /** \cond HIDDEN_SYMBOLS */ \
448 TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
449 /** \cond HIDDEN_SYMBOLS */ \
450 static Short_t _R__UNIQUE_(R__dummyVersionNumber) = \
451 GenerateInitInstance((name*)0x0)->SetVersion(VersionNumber); \
452 /** \endcond */ \
453 R__UseDummy(_R__UNIQUE_(R__dummyVersionNumber)); \
454}
455
456#define RootStreamer(name,STREAMER) \
457namespace ROOT { \
458 /** \cond HIDDEN_SYMBOLS */ \
459 TGenericClassInfo *GenerateInitInstance(const name*); /** \endcond */ \
460 /** \cond HIDDEN_SYMBOLS */ \
461 static Short_t _R__UNIQUE_(R__dummyStreamer) = \
462 GenerateInitInstance((name*)0x0)->SetStreamer(STREAMER); \
463 /** \endcond */ \
464 R__UseDummy(_R__UNIQUE_(R__dummyStreamer)); \
465}
466
467//---- Macro to load a library into the interpreter --------------
468// Call as R__LOAD_LIBRARY(libEvent)
469// This macro intentionally does not take string as argument, to
470// prevent compilation errors with complex diagnostics due to
471// TString BAD_DO_NOT_TRY = "lib";
472// R__LOAD_LIBRARY(BAD_DO_NOT_TRY + "BAD_DO_NOT_TRY.so") // ERROR!
473#ifdef __CLING__
474# define _R_PragmaStr(x) _Pragma(#x)
475# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(cling load ( #LIBRARY ))
476# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(cling add_include_path ( #PATH ))
477# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(cling add_library_path ( #PATH ))
478#elif defined(R__WIN32)
479# define _R_PragmaStr(x) __pragma(#x)
480# define R__LOAD_LIBRARY(LIBRARY) _R_PragmaStr(comment(lib, #LIBRARY))
481# define R__ADD_INCLUDE_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
482# define R__ADD_LIBRARY_PATH(PATH) _R_PragmaStr(comment(path, #PATH))
483#else
484// No way to inform linker though preprocessor :-(
485// We could even inform the user:
486/*
487# define R__LOAD_LIBRARY(LIBRARY) \
488 _R_PragmaStr(message "Compiler cannot handle linking against " #LIBRARY \
489 ". Use -L and -l instead.")
490*/
491# define R__LOAD_LIBRARY(LIBRARY)
492# define R__ADD_INCLUDE_PATH(PATH)
493# define R__ADD_LIBRARY_PATH(PATH)
494#endif
495
496// Convenience macros to disable cling pointer check.
497#ifdef __CLING__
498# define R__CLING_PTRCHECK(ONOFF) __attribute__((annotate("__cling__ptrcheck(" #ONOFF ")")))
499#else
500# define R__CLING_PTRCHECK(ONOFF)
501#endif
502
503#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:80
TClass *(* DictFuncPtr_t)()
Definition Rtypes.h:80
void(* VoidFuncPtr_t)()
Definition Rtypes.h:79
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
Definition TBuffer.h:399
void(* MemberStreamerFunc_t)(TBuffer &, void *, Int_t)
Definition Rtypes.h:74
void(* ShowMembersFunc_t)(const void *obj, TMemberInspector &R__insp, Bool_t isTransient)
Definition Rtypes.h:94
EColor
Definition Rtypes.h:65
@ kTeal
Definition Rtypes.h:67
@ kGray
Definition Rtypes.h:65
@ kPink
Definition Rtypes.h:67
@ kRed
Definition Rtypes.h:66
@ kOrange
Definition Rtypes.h:67
@ kBlack
Definition Rtypes.h:65
@ kGreen
Definition Rtypes.h:66
@ kMagenta
Definition Rtypes.h:66
@ kWhite
Definition Rtypes.h:65
@ kCyan
Definition Rtypes.h:66
@ kBlue
Definition Rtypes.h:66
@ kAzure
Definition Rtypes.h:67
@ kYellow
Definition Rtypes.h:66
@ kViolet
Definition Rtypes.h:67
@ kSpring
Definition Rtypes.h:67
TBuffer & operator>>(TBuffer &buf, Tmpl *&obj)
Definition TBuffer.h:383
std::atomic< TClass * > atomic_TClass_ptr
Definition Rtypes.h:195
void(* ClassStreamerFunc_t)(TBuffer &, void *)
Definition Rtypes.h:72
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
Definition Rtypes.h:73
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:218
::ROOT::TGenericClassInfo * GenerateInitInstanceLocal()
Definition Rtypes.h:223
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:173
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:177
void Register(const char *cname, Version_t id, const std::type_info &info, DictFuncPtr_t dict, Int_t pragmabits) const override
Definition Rtypes.h:167
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:2968
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:7371
std::string GetDemangledTypeName(const std::type_info &t)
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
void(* DirAutoAdd_t)(void *, TDirectory *)
Definition Rtypes.h:114
ROOT::TClassAlt * AddClassAlternate(const char *normName, const char *alternate)
Global function called by GenerateInitInstance.
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
Definition Rtypes.h:116
void(* DesFunc_t)(void *)
Definition Rtypes.h:113
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:5869
void(* DelFunc_t)(void *)
Definition Rtypes.h:111
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:546
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
void RemoveClassAlternate(ROOT::TClassAlt *)