110#define RTLD_DEFAULT ((void *)::GetModuleHandle(NULL))
111#define dlsym(library, function_name) ::GetProcAddress((HMODULE)library, function_name)
129using std::multimap, std::make_pair, std::string;
140 class TMmallocDescTemp {
144 TMmallocDescTemp(
void *
value =
nullptr) :
165 TNameMapNode(
const char *
typedf,
const char *
orig) :
218 printf(
"TDeclNameRegistry::AddQualifiedName Adding key %s for class/namespace %s\n", s.c_str(),
name);
220 fClassNamesSet.insert(s);
230 found = fClassNamesSet.find(
name) != fClassNamesSet.end();
239 if (fVerbLevel > 1) {
240 printf(
"TDeclNameRegistry Destructor. List of %lu names:\n",
241 (
long unsigned int)fClassNamesSet.size());
242 for (
auto const & key: fClassNamesSet) {
243 printf(
" - %s\n", key.c_str());
281 fOldValue(fCurrentValue)
288 fCurrentValue = fOldValue;
314 Warning(
where,
"Failed to reregister an object of class '%s' version %d at address %p",
what->GetName(),
version, location);
327 RepoCont_t::iterator
tmp =
cur++;
328 if ((
tmp->first == location) && (
tmp->second ==
what->GetClassVersion())) {
349 RepoCont_t::iterator
tmp =
cur++;
366#define R__USE_STD_MAP
368#if defined R__USE_STD_MAP
372 typedef std::map<std::string,TClass*>
IdMap_t;
397 if (iter != fMap.end()) cl = iter->second;
409#ifdef R__COMPLETE_MEM_TERMINATION
418 void Add(
const char *key,
TClass *&obj) {
423 const TPair *
a = (
const TPair *)fMap.FindObject(key);
427 void Remove(
const char *key) {
452 std::pair<const key_type, mapped_type> pair = make_pair(key, obj);
457 return fMap.count(key);
462 return fMap.equal_range(key);
473#ifdef R__COMPLETE_MEM_TERMINATION
484#ifdef R__COMPLETE_MEM_TERMINATION
562 gROOT->GetListOfClasses()->Add(cl);
580 if (!cl || !
id)
return;
593 if (
oldcl->GetTypeInfo()) {
598 if (
oldcl->fClassInfo) {
667 if (
member->GetDataType()) {
686 if ( pos !=
kNPOS ) {
721 for (i = 0;i <
kline; i++)
line[i] =
' ';
727 char *pointer = (
char*)add;
728 char **
ppointer = (
char**)(pointer);
794 std::string *str = (std::string*)pointer;
831 fRealDataObject = obj;
861 if (cl != fRealDataClass) {
862 if (!fRealDataClass->InheritsFrom(cl)) {
868 if (!fRealDataClass->GetDataMember(
rname)) {
883 if (!fRealDataClass->GetBaseDataMember(
rname)) {
900 fRealDataClass->GetListOfRealData()->Add(
rd);
911 fRealDataClass->GetListOfRealData()->Add(
rd);
931 if (
dmclass->GetCollectionProxy()) {
947 && (!
valcl->IsLoaded()) ) {
958 if (GetObjectValidity() == kValidObjectGiven)
966 fRealDataClass->GetListOfRealData()->Add(
rd);
984 fBrowser =
b; fCount = 0;
999 if (fCount && !fBrowser)
return;
1019 mname.ReplaceAll(
"*",
"");
1032 if (
mname ==
"G__virtualinfo")
return;
1034 int size =
sizeof(
void*);
1054 for(
int i=0; i<
nmax; i++) {
1063 if (!fBrowser)
return;
1067 if (
clm->IsTObject()) {
1076 if (!
clm->IsTObject() ||
1089 if (
proxy==
nullptr) {
1106 char fmt[] = {
"#%09d"};
1107 fmt[3] =
'0'+(
int)log10(
double(
sz))+1;
1112 if (
proxy->HasPointers()) {
1163 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE)
1168 ::Fatal(
"TClass::TClass",
"ROOT system not initialized");
1178 ::Fatal(
"TClass::TClass",
"gInterpreter not initialized");
1182 ::Warning(
"TClass::TClass",
"no dictionary for class %s is available",
name);
1196 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE)
1209 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE),
1222 "A TClass entry cannot be initialized in a state different from kForwardDeclared or kEmulated.");
1241 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE)
1246 ::Fatal(
"TClass::TClass",
"ROOT system not initialized");
1252 ::Fatal(
"TClass::TClass",
"gInterpreter not initialized");
1277 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE)
1293 fIsSyntheticPair(
kFALSE), fHasCustomStreamerMember(
kFALSE),
1294 fState(kHasTClassInit)
1309 if (
oldcl->CanIgnoreTObjectStreamer()) {
1316 info->Clear(
"build");
1317 info->SetClass(
this);
1320 info->SetClassVersion(1);
1328 oldcl->fStreamerInfo->Clear();
1330 oldcl->ReplaceWith(
this);
1346 ::Fatal(
"TClass::TClass",
"ROOT system not initialized");
1348 ::Error(
"TClass::Init",
"The name parameter is invalid (null or empty)");
1399 if (
oldcl->CanIgnoreTObjectStreamer()) {
1407 info->Clear(
"build");
1408 info->SetClass(
this);
1411 oldcl->fStreamerInfo->Clear();
1416 oldcl->fSchemaRules =
nullptr;
1422 oldcl->fFuncTemplate =
nullptr;
1425 (*fMethod).fClass =
this;
1426 oldcl->fMethod =
nullptr;
1437 ::Fatal(
"TClass::Init",
"gInterpreter not initialized");
1484 proto->FillTClass(
this);
1510 ::Error(
"TClass::Init",
"no interpreter information for class %s is available even though it has a TClass "
1511 "initialization routine.",
1558 oldcl->ReplaceWith(
this);
1573 while ( TNameMapNode*
htmp =
static_cast<TNameMapNode*
> (next()) ) {
1613 Warning(
"Init",
"Collection proxy for %s was not properly initialized!",
GetName());
1634 "The rule for class: \"%s\": version, \"%s\" and data members: \"%s\" has been skipped because %s.",
1656 while ( TNameMapNode*
htmp =
static_cast<TNameMapNode*
> (next()) ) {
1683 (*fUsingData).Delete();
1728 std::map<std::string, TObjArray*>::iterator it;
1729 std::map<std::string, TObjArray*>::iterator end = (*fConversionStreamerInfo).end();
1730 for( it = (*fConversionStreamerInfo).begin(); it != end; ++it ) {
1758 if (
rule.Length() > 0) {
1810 static const char *
suffix =
"class.rules";
1821 ::Error(
"TClass::ReadRules()",
"Cannot find rules file %s",
sname.Data());
1835 ::Error(
"TClass::ReadRules",
"no file name specified");
1897 ::Warning(
"TClass::AddRule",
"The rule for class: \"%s\": version, \"%s\" and data members: \"%s\" has been skipped because it conflicts with one of the other rules (%s).",
1973 obj->ShowMembers(
insp);
1994 }
else if (
actual !=
this) {
1995 return actual->Browse(obj,
b);
2076 Error(
"BuildRealData",
"Inspection for %s not supported!",
GetName());
2096 Error(
"BuildRealData",
"Cannot find any ShowMembers function for %s!",
GetName());
2131 Error(
"BuildEmulatedRealData",
"Missing StreamerInfo for %s",
GetName());
2152 if (
gDebug > 0)
printf(
" Class: %s, adding TRealData=%s, offset=%ld\n",cl->
GetName(),
rd->GetName(),
rd->GetThisOffset());
2161 if (
gDebug > 0)
printf(
" Class: %s, adding TRealData=%s, offset=%ld\n",cl->
GetName(),
rd->GetName(),
rd->GetThisOffset());
2291 }
else if (!
clbase->CanSplitBaseAllow()) {
2314 }
else if (!
c->CanSplitBaseAllow()) {
2340 if (
fName ==
"TClonesArray") {
This->fCanSplit = 1;
return kTRUE; }
2364 This->fCanSplit = 1;
2373 This->fCanSplit = 0;
2380 This->fCanSplit = 0;
2386 This->fCanSplit = 0;
2391 if ( !
This->CanSplitBaseAllow() ) {
2395 This->fCanSplit = 1;
2416 Error(
"Clone",
"The name of the class must be changed when cloning a TClass object.");
2505 gROOT->ProcessLine(
"new TCanvas(\"R__class\",\"class\",20,20,1000,750);");
2553 if (
sizeof(
this) == 4)
2559 if (
sizeof(
this) == 4)
2567 Info(
"Dump",
"No ShowMembers function, dumping disabled");
2583 if (
text[i] ==
'\"' ||
text[i] ==
'[' ||
text[i] ==
'~' ||
2586 text[i] ==
'?' ||
text[i] ==
'>') {
2652 return sinfo->GetActualClass(
object);
2674 else return nullptr;
2684 if (cl ==
this)
return this;
2696 if (cl ==
c)
return c;
2697 c1 =
c->GetBaseClass(cl);
2715 if (cl ==
this)
return 0;
2717 if (!
fBase.load()) {
2724 if (!
sinfo)
return -1;
2739 auto align =
baseclass->GetClassAlignment();
2743 Error(
"GetBaseClassOffsetRecurse",
"Can not determine alignment for base class %s (got %zu)\n",
2754 auto align =
baseclass->GetClassAlignment();
2758 Error(
"GetBaseClassOffsetRecurse",
"Can not determine alignment for base class %s (got %zu)\n",
2765 Error(
"GetBaseClassOffsetRecurse",
"Unexpected element type for base class: %s\n",
element->IsA()->GetName());
2777 if (
fBase.load() ==
nullptr)
2794 return inh->GetDelta();
2796 off =
c->GetBaseClassOffsetRecurse(cl);
2797 if (off == -2)
return -2;
2799 return off +
inh->GetDelta();
2816 if (
this ==
toBase)
return 0;
2854 if (dm)
return this;
2874 struct TClassLocalStorage {
2875 TClassLocalStorage() : fCollectionProxy(nullptr), fStreamer(nullptr) {};
2880 static TClassLocalStorage *GetStorage(
const TClass *cl)
2896 return (TClassLocalStorage*)
local;
2924 TClassLocalStorage *
local = TClassLocalStorage::GetStorage(
this);
2927 return local->fCollectionProxy;
2938 TClassLocalStorage *
local = TClassLocalStorage::GetStorage(
this);
2940 if (
local->fStreamer==
nullptr) {
2942 const std::type_info &
orig = (
typeid(*fStreamer) );
2943 if (!
local->fStreamer) {
2944 Warning(
"GetStreamer",
"For %s, the TClassStreamer (%s) passed's call to Generate failed!",
GetName(),
orig.name());
2946 const std::type_info © = (
typeid(*
local->fStreamer) );
2948 Warning(
"GetStreamer",
"For %s, the TClassStreamer passed does not properly implement the Generate method (%s vs %s)\n",
GetName(),
orig.name(),copy.name());
2952 return local->fStreamer;
3001 if (!
name || !
name[0])
return nullptr;
3003 if (
strstr(
name,
"(anonymous)"))
return nullptr;
3004 if (
strstr(
name,
"(unnamed)"))
return nullptr;
3008 if (!
gROOT->GetListOfClasses())
return nullptr;
3081 !
gEnv->
GetValue(
"Root.TClass.GetClass.AutoParsing",
true) ||
3082 gSystem->
Getenv(
"ROOT_DISABLE_TCLASS_GET_CLASS_AUTOPARSING") !=
nullptr;
3099 if (
type->GetType() > 0)
3216 static constexpr size_t slen = std::char_traits<char>::length(
"pair");
3218 "unordered_multimap",
"set",
"unordered_set",
"multiset",
"unordered_multiset" };
3226 auto p =
collcl->GetCollectionProxy();
3228 cl =
p->GetValueClass();
3242 if (
posLess != std::string::npos) {
3249 printf(
"TClass::GetClass: Header Parsing - The representation of %s was not found in the type system. A lookup in the interpreter is about to be tried: this can cause parsing. This can be avoided selecting %s in the linkdef/selection file.\n",
normalizedName.c_str(),
normalizedName.c_str());
3269 funcPtr(
nullptr, 0,
nullptr, &res);
3304 if (!
ncl->IsZombie()) {
3318 if (!
gROOT->GetListOfClasses())
3326 if (cl && cl->
IsLoaded())
return cl;
3352 if (!load)
return nullptr;
3362 TIter next(
gROOT->GetListOfClassGenerators());
3416 if (!
gROOT->GetListOfClasses())
return nullptr;
3437 if (!load)
return nullptr;
3450 if (!
ncl->IsZombie()) {
3468 if (!
gROOT->GetListOfClasses())
return 0;
3473 if (iter.first == iter.second)
return false;
3474 std::vector<TClass*>::iterator
vectIt = classes.begin();
3542 if (
rd)
return rd->GetThisOffset();
3594 std::string::size_type pos =
objName.find_first_of(
"[");
3595 if (pos != std::string::npos) {
3614 if (
firstDot == std::string::npos) {
3644 if (
bracket != std::string::npos) {
3696 if (!
fBase.load()) {
3717 Fatal(
"GetListOfBases",
"gInterpreter not initialized");
3720 if (!
fBase.load()) {
3746 auto temp =
fEnums.load();
3818 if (!(*data).IsLoaded())
3821 }
else if (load) (*data).Load();
3835 }
else if (!load &&
fData)
3876 if (
gDebug>0)
Info(
"GetListOfMethods",
"Header Parsing - Asking for all the methods of class %s: this can involve parsing.",
GetName());
3909 if (
gDebug>0)
Info(
"GetListOfAllPublicMethods",
"Header Parsing - Asking for all the methods of class %s: this can involve parsing.",
GetName());
3953 if (
m &&
m->GetNargs() ==
method->GetNargs())
3978 return cl->IsLoaded();
4037 for (
int i = 0; i < 2; i++) {
4050 if (
result.FindObject(
this) ||
visited.FindObject(
this))
return;
4072 if (cl && !cl->HasDictionary()) {
4077 const auto &elements =
splitType.fElements;
4149 if (
result.FindObject(
this))
return;
4232 Warning(
"ResetClassInfo(Long_t tagnum)",
"Call to deprecated interface (does nothing)");
4281 (*fUsingData).Unload();
4285 (*fMethod).Unload();
4319 if (options==
nullptr || options[0]==0)
return;
4321 if (
strstr(options,
"streamerinfo")!=
nullptr) {
4325 std::map<std::string, TObjArray*>::iterator it;
4326 std::map<std::string, TObjArray*>::iterator end = (*fConversionStreamerInfo).
end();
4327 for( it = (*fConversionStreamerInfo).begin(); it != end; ++it ) {
4328 it->second->ls(options);
4369 sig = sig+
","+
methodArg->GetFullTypeName();
4418 if(
fMethod.compare_exchange_strong(expected, temp.get()) ) {
4476 Fatal(
"GetMethod",
"gInterpreter not initialized");
4482 if (!
decl)
return nullptr;
4489 "\nDid not find matching TMethod <%s> with \"%s\" %sfor %s",
4522 Fatal(
"GetMethodWithPrototype",
"gInterpreter not initialized");
4528 if (!
decl)
return nullptr;
4531 Error(
"GetMethodWithPrototype",
4532 "\nDid not find matching TMethod <%s> with \"%s\" %sfor %s",
4567 Fatal(
"GetClassMethod",
"gInterpreter not initialized");
4573 if (!
decl)
return nullptr;
4593 Fatal(
"GetClassMethodWithPrototype",
"gInterpreter not initialized");
4600 if (!
decl)
return nullptr;
4618 return lm->GetSize();
4637 return lm->GetSize();
4699 Error(
"GetStreamerInfo",
"class: %s, attempting to access a wrong version: %d",
GetName(),
version);
4730 if (!
sinfo->IsCompiled()) {
4743 if (
sinfo->IsCompiled())
4804 sinfo->SetClass(
nullptr);
4806 sinfo->BuildCheck();
4810 Error(
"GetStreamerInfoAbstractEmulated",
"could not create TVirtualStreamerInfo");
4867 sinfo->SetClass(
nullptr);
4869 sinfo->BuildCheck();
4873 Error(
"GetStreamerInfoAbstractEmulated",
"could not create TVirtualStreamerInfo");
4910 if (
sinfo->IsCompiled()) {
4920 Error(
"IgnoreTObjectStreamer",
"Must be called before the creation of StreamerInfo");
4946 if (cl ==
this)
return kTRUE;
4975 if (cl ==
this)
return obj;
5051 if (obj.GetPtr() && obj.GetAllocator()) {
5055 return obj.GetPtr();
5077 Error(
"New",
"cannot create object of class %s",
GetName());
5094 Error(
"New",
"cannot create object of class %s",
GetName());
5106 Error(
"New",
"cannot create object of class %s",
GetName());
5145 Error(
"New",
"Failed to construct class '%s' using streamer info",
GetName());
5150 Fatal(
"New",
"This cannot happen!");
5164 if (obj.GetPtr() && obj.GetAllocator()) {
5168 return obj.GetPtr();
5235 Error(
"New with placement",
"Cannot construct class '%s' version %d at address %p, no streamer info available!",
GetName(),
fClassVersion,
arena);
5251 Error(
"New with placement",
"This cannot happen!");
5266 if (obj.GetPtr() && obj.GetAllocator()) {
5270 return obj.GetPtr();
5354 Error(
"NewArray",
"This cannot happen!");
5368 if (obj.GetPtr() && obj.GetAllocator()) {
5372 return obj.GetPtr();
5439 Error(
"NewArray with placement",
"Cannot construct class '%s' version %d at address %p, no streamer info available!",
GetName(),
fClassVersion,
arena);
5461 Error(
"NewArray with placement",
"This cannot happen!");
5473 if (obj ==
nullptr)
return;
5539 Error(
"Destructor",
"No streamer info available for class '%s' version %d at address %p, cannot destruct emulated object!",
GetName(),
fClassVersion,
p);
5545 Error(
"Destructor",
"Doing Dump() ...");
5558 Error(
"Destructor",
"No streamer info available for class '%s' version %d, cannot destruct object at addr: %p",
GetName(),
objVer,
p);
5565 Error(
"Destructor2",
"Doing Dump() ...");
5576 Error(
"Destructor",
"This cannot happen! (class %s)",
GetName());
5586 if (obj.
GetPtr() ==
nullptr)
5602 if (
ary ==
nullptr)
return;
5609 Error(
"DeleteArray",
"Destructor only is not supported!");
5664 Error(
"DeleteArray",
"No streamer info available for class '%s' version %d at address %p, cannot destruct object!",
GetName(),
fClassVersion,
ary);
5670 Error(
"DeleteArray",
"Doing Dump() ...");
5683 Error(
"DeleteArray",
"No streamer info available for class '%s' version %d at address %p, cannot destruct object!",
GetName(),
objVer,
ary);
5690 Error(
"DeleteArray",
"Doing Dump() ...");
5702 Error(
"DeleteArray",
"This cannot happen! (class '%s')",
GetName());
5712 if (obj.
GetPtr() ==
nullptr)
return;
5800 Fatal(
"TClass::GetClassAlignment",
"Cannot determine alignment for collection proxy of class %s.",
GetName());
5803 return alignof(std::vector<char>);
5814 auto size =
fSizeof.load(std::memory_order_relaxed);
5839 b.SetBufferOffset(pos);
5848 ::Error(
"TClass::Load",
"dictionary of class %s not found", s);
5900 if (
ncl)
ncl->PostLoadCheck();
5920 TIter next(
gROOT->GetListOfClassGenerators());
5961 ::Error(
"TClass::LoadClassInfo",
"no interpreter information for class %s is available"
5962 " even though it has a TClass initialization routine.",
5988 const char *
dfil,
const char *
ifil,
6002 const char *
dfil,
const char *
ifil,
6031 return fState == kHasTClassInit;
6048 if (fProperty==(-1)) Property();
6049 return TestBit(kStartWithTObject);
6057 if (fProperty==(-1)) Property();
6058 return TestBit(kIsTObject);
6066 if (fProperty==(-1)) Property();
6069 return TestBit(kIsForeign);
6082 if (IsLoaded() && HasInterpreterInfo() && fClassVersion==1
6085 SetClassVersion(-1);
6089 else if (IsLoaded() && HasDataMemberInfo() && fStreamerInfo && ((fClassVersion > 1) || !IsForeign()))
6098 if (
info && GetListOfDataMembers() && !GetCollectionProxy()
6099 && (
info->GetCheckSum()!=GetCheckSum() && !
info->CompareContent(
this,
nullptr,
kFALSE,
kFALSE,
nullptr) && !(MatchLegacyCheckSum(
info->GetCheckSum()))))
6101 Bool_t warn = ! TestBit(kWarned);
6102 if (warn &&
info->GetOldVersion()<=2) {
6112 if (
info->GetOnFileClassVersion()==1 && fClassVersion>1) {
6114 The class %s transitioned from not having a specified class version\n\
6115 to having a specified class version (the current class version is %d).\n\
6116 However too many different non-versioned layouts of the class have\n\
6117 already been loaded so far. To work around this problem you can\n\
6118 load fewer 'old' file in the same ROOT session or load the C++ library\n\
6119 describing the class %s before opening the files or increase the version\n\
6120 number of the class for example ClassDef(%s,%d).\n\
6121 Do not try to write objects with the current class definition,\n\
6122 the files might not be readable.\n",
6123 GetName(), fClassVersion, GetName(), GetName(), fStreamerInfo->GetLast()+1);
6126 The StreamerInfo version %d for the class %s which was read\n\
6127 from a file previously opened has the same version as the active class\n\
6128 but a different checksum. You should update the version to ClassDef(%s,%d).\n\
6129 Do not try to write objects with the current class definition,\n\
6130 the files will not be readable.\n"
6131 , fClassVersion, GetName(), GetName(), fStreamerInfo->GetLast()+1);
6138 if (fCollectionProxy) {
6141 if (
strncmp(GetName(),
"map<", 4) == 0)
6143 else if (
strncmp(GetName(),
"multimap<", 9) == 0)
6145 else if (
strncmp(GetName(),
"unordered_map<", 14) == 0)
6147 else if (
strncmp(GetName(),
"unordered_multimap<", 19) == 0)
6153 if (
pcl && !
pcl->IsLoaded() && !
pcl->IsSyntheticPair() )
6157 fCollectionProxy->
Reset();
6160 if (
acl ==
this)
continue;
6161 if (
acl->fCollectionProxy &&
acl->fCollectionProxy->GetValueClass() ==
pcl) {
6162 acl->fCollectionProxy->Reset();
6166 TIter next(
pcl->GetStreamerInfos());
6168 if (
info->IsBuilt()) {
6169 info->Clear(
"build");
6208 if (fProperty!=(-1))
return fProperty;
6214 if (fProperty!=(-1))
return fProperty;
6217 if (TestBit(kLoading))
return fProperty;
6219 if (fStreamerType !=
kDefault && !HasInterpreterInfo()) {
6236 kl->SetBit(kIsTObject);
6240 if (delta==0)
kl->SetBit(kStartWithTObject);
6245 if (HasInterpreterInfo()) {
6253 kl->SetBit(kIsForeign);
6257 if (
kl->fConvStreamerFunc) {
6259 }
else if (
kl->fStreamerFunc) {
6273 kl->SetBit(kHasLocalHashMember);
6278 if (GetClassInfo()) {
6339 switch (fStreamerType) {
6343 case kInstrumented: {
6350 case kEmulatedStreamer:
6351 case kForeign|kEmulatedStreamer:
6357 Error(
"SetStreamerImpl",
"Unexpected value of fStreamerType: %d",fStreamerType);
6370 delete fCollectionProxy;
6377 fCollectionProxy =
p;
6381 if (fCollectionProxy && !fSchemaRules) {
6383 GetSchemaRules(
kTRUE);
6393 fContextMenuTitle = title;
6434 if (TestBit(kUnloaded) && !TestBit(kUnloading)) {
6441 if (fState != kLoaded) {
6442 Fatal(
"SetUnloaded",
"The TClass for %s is being unloaded when in state %d\n",
6443 GetName(),(
int)fState);
6449 fState = kForwardDeclared;
6451 delete fIsA; fIsA =
nullptr;
6459 fDeclFileName =
nullptr;
6461 fImplFileName =
nullptr;
6463 fTypeInfo =
nullptr;
6465 if (fMethod.load()) {
6466 (*fMethod).Unload();
6471 if (fUsingData.load()) {
6472 (*fUsingData).Unload();
6474 if (fEnums.load()) {
6482 ResetBit(kUnloading);
6571 //info is empty. Let's build the default Streamer descriptor
6573 char *temp = new char[10000];
6577 //add list of base classes
6578 TIter nextb(GetListOfBases());
6580 while ((base = (TBaseClass*) nextb())) {
6581 snprintf(local,100,"%s;",base->GetName());
6582 strlcat(temp,local,10000);
6585 //add list of data members and types
6586 TIter nextd(GetListOfDataMembers());
6587 while ((dm = (TDataMember *) nextd())) {
6588 if (dm->IsEnum()) continue;
6589 if (!dm->IsPersistent()) continue;
6590 Long_t property = dm->Property();
6591 if (property & kIsStatic) continue;
6592 TClass *acl = TClass::GetClass(dm->GetTypeName(),update);
6595 if (acl->GetClassVersion() == 0) continue;
6598 // dm->GetArrayIndex() returns an empty string if it does not
6600 const char * index = dm->GetArrayIndex();
6601 if (strlen(index)==0)
6602 snprintf(local,100,"%s %s;",dm->GetFullTypeName(),dm->GetName());
6604 snprintf(local,100,"%s %s[%s];",dm->GetFullTypeName(),dm->GetName(),index);
6605 strlcat(temp,local,10000);
6607 //fStreamerInfo = temp;
6619 for(
UInt_t i = 1; i < kLatestCheckSum; ++i) {
6631 return GetCheckSum(code,
isvalid);
6639 return GetCheckSum(kCurrentCheckSum,
isvalid);
6688 if (code == kCurrentCheckSum) code = kLatestCheckSum;
6696 for (
int i=0; i<
il; i++)
id =
id*3+
name[i];
6714 for (
int i=0; i<
il; i++)
id =
id*3+
name[i];
6715 if (code > kNoBaseCheckSum && !
isSTL) {
6716 if (
tbc->GetClassPointer() ==
nullptr) {
6717 Error(
"GetCheckSum",
"Calculating the checksum for (%s) requires the base class (%s) meta information to be available!",
6718 GetName(),
tbc->GetName());
6722 id =
id*3 +
tbc->GetClassPointer()->GetCheckSum();
6732 if (!
tdm->IsPersistent())
continue;
6740 if ( (code > kNoEnum) && code != kReflex && code != kReflexNoComment &&
prop&
kIsEnum)
6744 for (i=0; i<
il; i++)
id =
id*3+
name[i];
6746 if (code > kWithTypeDef || code == kReflexNoComment) {
6747 type =
tdm->GetTrueTypeName();
6752 if (code == kReflex || code == kReflexNoComment) {
6756 type.ReplaceAll(
"ULong64_t",
"unsigned long long");
6757 type.ReplaceAll(
"Long64_t",
"long long");
6758 type.ReplaceAll(
"<signed char",
"<char");
6759 type.ReplaceAll(
",signed char",
",char");
6760 if (
type==
"signed char")
type =
"char";
6764 type =
tdm->GetFullTypeName();
6772 for (i=0; i<
il; i++)
id =
id*3+
type[i];
6774 int dim =
tdm->GetArrayDim();
6776 for (
int ii=0;
ii<dim;
ii++)
id =
id*3+
tdm->GetMaxIndex(
ii);
6778 if (code > kNoRange) {
6785 const char *right =
strstr(left,
"]");
6788 while (left != right) {
6799 if (code==kLatestCheckSum) fCheckSum =
id;
6813 fRefProxy->Release();
6817 fRefProxy->SetClass(
this);
6832 if (fLastReadInfo && (*fLastReadInfo).IsCompiled()) {
6833 Error(
"AdoptMemberStreamer",
6834 "Cannot adopt member streamer for %s::%s: StreamerInfo for the class is already compiled.", GetName(),
6844 TIter next(fRealData);
6850 rd->AdoptStreamer(
p);
6856 Error(
"AdoptMemberStreamer",
"Cannot adopt member streamer for %s::%s", GetName(),
name);
6880 return b.ReadClassBuffer(
this,pointer,
version,start,count);
6889 return b.ReadClassBuffer(
this,pointer);
6901 b.WriteClassBuffer(
this,pointer);
6924 if (!
pThis->fIsOffsetStreamerSet) {
6925 pThis->CalculateStreamerOffset();
6953 if (
b.IsReading()) {
6956 b.WriteClassBuffer(
pThis,
object);
6966 pThis->fStreamerFunc(
b,
object);
6987 if (
b.IsReading()) {
6992 b.WriteClassBuffer(
pThis,
object);
7002 if (
pThis->fProperty==(-1)) {
7011 pThis->Fatal(
"StreamerDefault",
"fStreamerImpl not properly initialized (%d)",
pThis->fStreamerType);
7029 if (fStreamer)
delete fStreamer;
7031 fStreamerType = kExternal | ( fStreamerType&kEmulatedStreamer );
7034 }
else if (fStreamer) {
7039 if (fProperty != -1) {
7052 if (fProperty != -1 && !fConvStreamerFunc &&
7053 ( (fStreamerFunc ==
nullptr &&
strm !=
nullptr) || (fStreamerFunc !=
nullptr &&
strm ==
nullptr) ) )
7055 fStreamerFunc =
strm;
7059 if (HasInterpreterInfo() && fStreamerType != kTObject && !fStreamer) {
7060 fStreamerType = kInstrumented;
7064 fStreamerFunc =
strm;
7075 if (fProperty != -1 &&
7076 ( (fConvStreamerFunc ==
nullptr &&
strm !=
nullptr) || (fConvStreamerFunc !=
nullptr &&
strm ==
nullptr) ) )
7078 fConvStreamerFunc =
strm;
7082 if (HasInterpreterInfo() && fStreamerType != kTObject && !fStreamer) {
7083 fStreamerType = kInstrumented;
7087 fConvStreamerFunc =
strm;
7190 if (
info->IsCompiled()) fLastReadInfo =
info;
7209 if (!
info)
continue;
7226 return GetConversionStreamerInfo( cl,
version );
7242 return GetStreamerInfo(
version );
7249 if (fConversionStreamerInfo.load()) {
7250 std::map<std::string, TObjArray*>::iterator it;
7253 it = (*fConversionStreamerInfo).find( cl->
GetName() );
7255 if( it != (*fConversionStreamerInfo).end() ) {
7291 info->SetClassVersion(-1);
7293 if( !
info->BuildFor(
this ) ) {
7298 if (!
info->IsCompiled()) {
7311 if (!fConversionStreamerInfo.load()) {
7312 fConversionStreamerInfo =
new std::map<std::string, TObjArray*>();
7314 (*fConversionStreamerInfo)[cl->
GetName()] =
arr;
7316 if (
arr->At(
info->GetClassVersion())) {
7317 Error(
"GetConversionStreamerInfo",
"Conversion StreamerInfo from %s to %s version %d has already been created",
7318 this->GetName(),
info->GetName(),
info->GetClassVersion());
7319 delete arr->At(
info->GetClassVersion());
7321 arr->AddAtAndExpand(
info,
info->GetClassVersion() );
7333 return FindConversionStreamerInfo( cl,
checksum );
7349 return FindStreamerInfo(
checksum );
7357 if (fConversionStreamerInfo.load()) {
7358 std::map<std::string, TObjArray*>::iterator it;
7362 it = (*fConversionStreamerInfo).find( cl->
GetName() );
7364 if( it != (*fConversionStreamerInfo).end() ) {
7397 info->SetClassVersion(-1);
7399 if( !
info->BuildFor(
this ) ) {
7404 if (!
info->IsCompiled()) {
7417 if (!fConversionStreamerInfo.load()) {
7418 fConversionStreamerInfo =
new std::map<std::string, TObjArray*>();
7420 (*fConversionStreamerInfo)[cl->
GetName()] =
arr;
7422 arr->AddAtAndExpand(
info,
info->GetClassVersion() );
7434 std::vector<::ROOT::Internal::TSchemaHelper> &&
rules)
7441 for (
const auto &it :
rules) {
7446 "TGenericClassInfo",
7447 "The rule for class: \"%s\": version, \"%s\" and data members: \"%s\" has been skipped because %s.",
7448 cl->GetName(), it.fVersion.c_str(), it.fTarget.c_str(),
errmsg.Data());
7470 if (fStreamerInfo->GetSize() > (
slot-fStreamerInfo->LowerBound())
7471 && fStreamerInfo->At(
slot) !=
nullptr
7472 && fStreamerInfo->At(
slot) !=
info) {
7473 Error(
"RegisterStreamerInfo",
7474 "Register StreamerInfo for %s on non-empty slot (%d).",
7477 fStreamerInfo->AddAtAndExpand(
info,
slot);
7478 if (fState <= kForwardDeclared) {
7480 if (fCheckSum==0 &&
slot==fClassVersion) fCheckSum =
info->GetCheckSum();
7491 if (fStreamerInfo->GetSize() >=
slot) {
7494 fStreamerInfo->RemoveAt(
slot);
7495 if (fLastReadInfo.load() ==
info)
7496 fLastReadInfo =
nullptr;
7497 if (fCurrentInfo.load() ==
info)
7498 fCurrentInfo =
nullptr;
7500 if (fState == kEmulated && fStreamerInfo->GetEntries() == 0) {
7501 fState = kForwardDeclared;
7519 "TEnvRec",
"TDataType",
"TObjArray",
"TList",
"THashList",
7520 "TClass",
"TCling",
"TInterpreter",
"TMethod",
"ROOT::Internal::TCheckHashRecursiveRemoveConsistency",
7521 "TCheckHashRecursiveRemoveConsistency",
"TGWindow",
7522 "TDirectory",
"TDirectoryFile",
"TObject",
"TH1",
7523 "TQClass",
"TGlobal" };
7542 return clRef.HasConsistentHashMember();
7565 if (fNew)
return kTRUE;
7567 if (HasInterpreterInfo()) {
7571 if (fCollectionProxy) {
7574 if (fCurrentInfo.load()) {
7592 if (fProperty == (-1))
7594 return TestBit(kHasLocalHashMember);
7618 return fResetAfterMerge;
7650 return fDeleteArray;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Boolean (0=false, 1=true) (bool)
int Int_t
Signed integer 4 bytes (int)
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
short Version_t
Class version identifier (short)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent)
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
const char Option_t
Option string (const char)
TClass *(* DictFuncPtr_t)()
void(* MemberStreamerFunc_t)(TBuffer &, void *, Int_t)
TClass *(* IsAGlobalFunc_t)(const TClass *, const void *obj)
void(* ClassStreamerFunc_t)(TBuffer &, void *)
void(* ClassConvStreamerFunc_t)(TBuffer &, void *, const TClass *)
R__EXTERN TClassTable * gClassTable
TVirtualMutex * gInterpreterMutex
TClass::ENewType & TClass__GetCallingNew()
static bool IsFromRootCling()
ROOT::TMapDeclIdToTClass DeclIdMap_t
ROOT::TMapTypeToTClass IdMap_t
void(* tcling_callfunc_Wrapper_t)(void *, int, void **, void *)
const Bool_t kIterBackward
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t cursor
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 ColorStruct_t color const char filename
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 ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
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 ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h prop
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 result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
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 ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char mode
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 ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
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 ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t property
Option_t Option_t TPoint TPoint const char text
R__EXTERN TVirtualMutex * gInterpreterMutex
R__EXTERN TInterpreter * gCling
Int_t gDebug
Global variable setting the debug level. Set to 0 to disable, increase it in steps of 1 to increase t...
R__EXTERN TVirtualMutex * gROOTMutex
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
R__EXTERN TSystem * gSystem
R__EXTERN void **(* gThreadTsd)(void *, Int_t)
#define R__LOCKGUARD2(mutex)
#define R__LOCKGUARD(mutex)
#define R__WRITE_LOCKGUARD(mutex)
#define R__READ_LOCKGUARD(mutex)
void SetClass(TClass *cls)
Set the TClass associated with this rule set.
static bool Check(TClass &classRef)
A spin mutex-as-code-guard class.
const_iterator begin() const
const_iterator end() const
DeclIdMap_t::key_type key_type
DeclIdMap_t::size_type size_type
multimap< TDictionary::DeclId_t, TClass * > DeclIdMap_t
size_type CountElementsWithKey(const key_type &key)
std::pair< const_iterator, const_iterator > equal_range
equal_range Find(const key_type &key) const
void Remove(const key_type &key)
DeclIdMap_t::const_iterator const_iterator
DeclIdMap_t::mapped_type mapped_type
void Add(const key_type &key, mapped_type obj)
mapped_type Find(const key_type &key) const
IdMap_t::size_type size_type
IdMap_t::mapped_type mapped_type
IdMap_t::const_iterator const_iterator
std::map< std::string, TClass * > IdMap_t
IdMap_t::key_type key_type
void Remove(const key_type &key)
void Add(const key_type &key, mapped_type &obj)
~TAutoInspector() override
Bool_t IsTreatingNonAccessibleTypes() override
TAutoInspector(TBrowser *b)
void Inspect(TClass *cl, const char *parent, const char *name, const void *addr, Bool_t isTransient) override
This method is called from ShowMembers() via AutoBrowse().
Each class (see TClass) has a linked list of its base class(es).
ROOT::ESTLType IsSTLContainer()
Return which type (if any) of STL container the data member is.
TClass * GetClassPointer(Bool_t load=kTRUE)
Get pointer to the base class TClass.
Using a TBrowser one can browse all ROOT objects.
Buffer base class used for serializing objects.
void Inspect(TClass *cl, const char *parent, const char *name, const void *addr, Bool_t isTransient) override
This method is called from ShowMembers() via BuildRealdata().
TBuildRealData(void *obj, TClass *cl)
Objects following this interface can be passed onto the TROOT object to implement a user customized w...
TClassRef is used to implement a permanent reference to a TClass object.
virtual TClassStreamer * Generate() const
static DictFuncPtr_t GetDict(const char *cname)
Given the class name returns the Dictionary() function of a class (uses hash of name).
static TProtoClass * GetProtoNorm(const char *cname)
Given the class normalized name returns the TClassProto object for the class.
static DictFuncPtr_t GetDictNorm(const char *cname)
Given the normalized class name returns the Dictionary() function of a class (uses hash of name).
~InsertTClassInRegistryRAII()
InsertTClassInRegistryRAII(TClass::EState &state, const char *name, TDeclNameRegistry &emuRegistry)
Bool_t HasDeclName(const char *name) const
void AddQualifiedName(const char *name)
Extract this part of the name.
TDeclNameRegistry(Int_t verbLevel=0)
TDeclNameRegistry class constructor.
std::atomic_flag fSpinLock
TClass instances represent classes, structs and namespaces in the ROOT type system.
UInt_t GetCheckSum(ECheckSum code=kCurrentCheckSum) const
Call GetCheckSum with validity check.
Bool_t IsSyntheticPair() const
RepoCont_t fObjectVersionRepository
ShowMembersFunc_t fShowMembers
TDataMember * GetDataMember(const char *datamember) const
Return pointer to datamember object with name "datamember".
TVirtualIsAProxy * fIsA
!pointer to the class's IsA proxy.
TList * GetListOfUsingDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of using declarations of a class.
void ForceReload(TClass *oldcl)
we found at least one equivalent.
ROOT::DelArrFunc_t fDeleteArray
Bool_t CanSplit() const
Return true if the data member of this TClass can be saved separately.
TClassStreamer * fStreamer
void SetDirectoryAutoAdd(ROOT::DirAutoAdd_t dirAutoAddFunc)
Install a new wrapper around the directory auto add function.
void * NewArray(Long_t nElements, ENewType defConstructor=kClassNew) const
Return a pointer to a newly allocated array of objects of this class.
static TDeclNameRegistry fNoInfoOrEmuOrFwdDeclNameRegistry
TListOfFunctionTemplates * fFuncTemplate
ClassStreamerFunc_t fStreamerFunc
void AdoptReferenceProxy(TVirtualRefProxy *proxy)
Adopt the Reference proxy pointer to indicate that this class represents a reference.
TMethod * GetClassMethod(Longptr_t faddr)
Look for a method in this class that has the interface function address faddr.
TVirtualStreamerInfo * DetermineCurrentStreamerInfo()
Determine and set pointer to current TVirtualStreamerInfo.
void Browse(TBrowser *b) override
This method is called by a browser to get the class information.
ROOT::ESTLType GetCollectionType() const
Return the 'type' of the STL the TClass is representing.
void Draw(Option_t *option="") override
Draw detailed class inheritance structure.
void ResetInstanceCount()
ClassStreamerFunc_t GetStreamerFunc() const
Get a wrapper/accessor function around this class custom streamer (member function).
void RemoveStreamerInfo(Int_t slot)
Remove and delete the StreamerInfo in the given slot.
void SetCanSplit(Int_t splitmode)
Set the splitability of this class:
bool AdoptMemberStreamer(const char *name, TMemberStreamer *strm)
Adopt the TMemberStreamer pointer to by p and use it to Stream non basic member name.
TList * CreateListOfDataMembers(std::atomic< TListOfDataMembers * > &data, TDictionary::EMemberSelection selection, bool load)
Create the list containing the TDataMembers (of actual data members or members pulled in through usin...
TVirtualStreamerInfo * GetStreamerInfoAbstractEmulated(Int_t version=0) const
For the case where the requestor class is emulated and this class is abstract, returns a pointer to t...
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
void SetMerge(ROOT::MergeFunc_t mergeFunc)
Install a new wrapper around 'Merge'.
void SetBrowse(ROOT::BrowseFunc_t browseFunc)
Install a new wrapper around 'Browse'.
ConvSIMap_t fConversionStreamerInfo
ROOT::DirAutoAdd_t fDirAutoAdd
Bool_t HasDataMemberInfo() const
std::atomic< std::size_t > fAlignment
TVirtualRefProxy * fRefProxy
!Pointer to reference proxy if this class represents a reference
TList * GetMenuList() const
Return the list of menu items associated with the class.
TMethod * GetMethod(const char *method, const char *params, Bool_t objectIsConst=kFALSE)
Find the best method (if there is one) matching the parameters.
static TClass * Load(TBuffer &b)
Load class description from I/O buffer and return class object.
EState fState
!Current 'state' of the class (Emulated,Interpreted,Loaded)
ROOT::DesFunc_t GetDestructor() const
Return the wrapper around the destructor.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
void CopyCollectionProxy(const TVirtualCollectionProxy &)
Replaces the collection proxy for this class.
Int_t fStreamerType
!cached of the streaming method to use
static void RegisterReadRules(ROOT::TSchemaRule::RuleType_t, const char *classname, std::vector<::ROOT::Internal::TSchemaHelper > &&rules)
Register a set of read rules for a target class.
void ls(Option_t *opt="") const override
The ls function lists the contents of a class on stdout.
std::atomic< TList * > fBase
std::atomic< Char_t > fCanSplit
!Indicates whether this class can be split or not. Values are -1, 0, 1, 2
Bool_t HasDictionary() const
Check whether a class has a dictionary or not.
const TList * GetListOfAllPublicMethods(Bool_t load=kTRUE)
Returns a list of all public methods of this class and its base classes.
TList * GetListOfAllPublicDataMembers(Bool_t load=kTRUE)
Returns a list of all public data members of this class and its base classes.
static void AddClassToDeclIdMap(TDictionary::DeclId_t id, TClass *cl)
static: Add a TClass* to the map of classes.
virtual ~TClass()
TClass dtor. Deletes all list that might have been created.
Bool_t fIsSyntheticPair
Indicates whether this class represents a pair and was not created from a dictionary nor interpreter ...
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
std::atomic< TVirtualStreamerInfo * > fCurrentInfo
!cached current streamer info.
TList * GetListOfFunctionTemplates(Bool_t load=kTRUE)
Return TListOfFunctionTemplates for a class.
void * DynamicCast(const TClass *base, void *obj, Bool_t up=kTRUE)
Cast obj of this class type up to baseclass cl if up is true.
const char * fImplFileName
void RegisterStreamerInfo(TVirtualStreamerInfo *info)
Register the StreamerInfo in the given slot, change the State of the TClass as appropriate.
std::atomic< UInt_t > fCheckSum
void UnregisterAddressInRepository(const char *where, void *location, const TClass *what) const
std::atomic< TListOfFunctions * > fMethod
static void RemoveClassDeclId(TDictionary::DeclId_t id)
void SetNewArray(ROOT::NewArrFunc_t newArrayFunc)
Install a new wrapper around 'new []'.
Bool_t CallShowMembers(const void *obj, TMemberInspector &insp, Bool_t isTransient=kFALSE) const
Call ShowMembers() on the obj of this class type, passing insp and parent.
const char * fDeclFileName
void SetCollectionProxy(const ROOT::Detail::TCollectionProxyInfo &)
Create the collection proxy object (and the streamer object) from using the information in the TColle...
static Bool_t HasDictionarySelection(const char *clname)
Check whether a class has a dictionary or ROOT can load one.
void AdoptSchemaRules(ROOT::Detail::TSchemaRuleSet *rules)
Adopt a new set of Data Model Evolution rules.
static void StreamerInstrumented(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of instrumented class with a library.
TVirtualStreamerInfo * SetStreamerInfo(Int_t version, const char *info="")
Info is a string describing the names and types of attributes written by the class Streamer function.
static std::atomic< Int_t > fgClassCount
TVirtualStreamerInfo * GetCurrentStreamerInfo()
ROOT::DirAutoAdd_t GetDirectoryAutoAdd() const
Return the wrapper around the directory auto add function.
void AddImplFile(const char *filename, int line)
TCollection * GetListOfMethodOverloads(const char *name) const
Return the collection of functions named "name".
std::atomic< TListOfEnums * > fEnums
static Bool_t HasNoInfoOrEmuOrFwdDeclaredDecl(const char *)
TVirtualMutex * fOVRMutex
TList * GetListOfEnums(Bool_t load=kTRUE)
Return a list containing the TEnums of a class.
Bool_t IsStartingWithTObject() const
Returns true if this class inherits from TObject and if the start of the TObject parts is at the very...
TList * GetListOfMethods(Bool_t load=kTRUE)
Return list containing the TMethods of a class.
size_t GetClassAlignment() const
Return the alignment requirement (in bytes) for objects of this class.
TClass()
Internal, default constructor.
Int_t GetNmethods()
Return the number of methods of this class Note that in case the list of methods is not yet created,...
std::atomic< Bool_t > fIsOffsetStreamerSet
!saved remember if fOffsetStreamer has been set.
void IgnoreTObjectStreamer(Bool_t ignore=kTRUE)
When the class kIgnoreTObjectStreamer bit is set, the automatically generated Streamer will not call ...
TClassStreamer * GetStreamer() const
Return the Streamer Class allowing streaming (if any).
static IdMap_t * GetIdMap()
void SetDelete(ROOT::DelFunc_t deleteFunc)
Install a new wrapper around 'delete'.
static Int_t AutoBrowse(TObject *obj, TBrowser *browser)
Browse external object inherited from TObject.
ROOT::NewFunc_t GetNew() const
Return the wrapper around new ThisClass().
TClass * GetBaseClass(const char *classname)
Return pointer to the base class "classname".
Longptr_t GetDataMemberOffset(const char *membername) const
return offset for member name.
Int_t GetNdata()
Return the number of data members of this class Note that in case the list of data members is not yet...
void SetDestructor(ROOT::DesFunc_t destructorFunc)
Install a new wrapper around the destructor.
virtual void PostLoadCheck()
Do the initialization that can only be done after the CINT dictionary has been fully populated and ca...
void LoadClassInfo() const
Try to load the ClassInfo if available.
void SetResetAfterMerge(ROOT::ResetAfterMergeFunc_t resetFunc)
Install a new wrapper around 'ResetAfterMerge'.
TVirtualStreamerInfo * GetStreamerInfoImpl(Int_t version, Bool_t silent) const
Bool_t MatchLegacyCheckSum(UInt_t checksum) const
Return true if the checksum passed as argument is one of the checksum value produced by the older che...
TViewPubFunctions * fAllPubMethod
Bool_t HasInterpreterInfo() const
static void AddClass(TClass *cl)
static: Add a class to the list and map of classes.
void GetMissingDictionariesForBaseClasses(TCollection &result, TCollection &visited, bool recurse)
Verify the base classes always.
ROOT::Detail::TSchemaRuleSet * fSchemaRules
! Schema evolution rules
std::atomic< Long_t > fProperty
!Property See TClass::Property() for details
static void StreamerDefault(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Default streaming in cases where either we have no way to know what to do or if Property() has not ye...
void SetUnloaded()
Call this method to indicate that the shared library containing this class's code has been removed (u...
ROOT::DelArrFunc_t GetDeleteArray() const
Return the wrapper around delete [] ThisObject.
Bool_t HasInterpreterInfoInMemory() const
ClassConvStreamerFunc_t fConvStreamerFunc
void BuildRealData(void *pointer=nullptr, Bool_t isTransient=kFALSE)
Build a full list of persistent data members.
void SetRuntimeProperties()
Internal routine to set calculate the class properties that can only be known at run-time,...
void BuildEmulatedRealData(const char *name, Longptr_t offset, TClass *cl, Bool_t isTransient=kFALSE)
Build the list of real data for an emulated class.
std::unordered_map< std::string, std::vector< ROOT::Internal::TSchemaHelper > > SchemaHelperMap_t
static TClass * LoadClass(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
const std::type_info * GetTypeInfo() const
void SetStreamerImpl(Int_t streamerType)
Internal routine to set fStreamerImpl based on the value of fStreamerType.
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
void Move(void *arenaFrom, void *arenaTo) const
Register the fact that an object was moved from the memory location 'arenaFrom' to the memory locatio...
static DeclIdMap_t * GetDeclIdMap()
Short_t GetDeclFileLine() const
void SetStreamerFunc(ClassStreamerFunc_t strm)
Set a wrapper/accessor function around this class custom streamer.
const char * GetImplFileName() const
TList * GetListOfRealData() const
Int_t Size() const
Return size of object of this class.
void SetCurrentStreamerInfo(TVirtualStreamerInfo *info)
Set pointer to current TVirtualStreamerInfo.
static DictFuncPtr_t GetDict(const char *cname)
Return a pointer to the dictionary loading function generated by rootcint.
Longptr_t fOffsetStreamer
!saved info to call Streamer
ROOT::NewArrFunc_t GetNewArray() const
Return the wrapper around new ThisClass[].
static void StreamerTObjectEmulated(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects when we do not have the library defining the class.
std::atomic< Int_t > fSizeof
ROOT::ResetAfterMergeFunc_t GetResetAfterMerge() const
Return the wrapper around Merge.
TMethod * GetClassMethodWithPrototype(const char *name, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
void SetGlobalIsA(IsAGlobalFunc_t)
This function installs a global IsA function for this class.
void GetMissingDictionariesForMembers(TCollection &result, TCollection &visited, bool recurse)
Verify the Data Members.
TObjArray * fStreamerInfo
const ROOT::Detail::TSchemaRuleSet * GetSchemaRules() const
Return the set of the schema rules if any.
TObject * Clone(const char *newname="") const override
Create a Clone of this TClass object using a different name but using the same 'dictionary'.
TVirtualCollectionProxy * fCollectionProxy
static ENewType IsCallingNew()
Static method returning the defConstructor flag passed to TClass::New().
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
void Store(TBuffer &b) const
Store class description on I/O buffer.
void InterpretedShowMembers(void *obj, TMemberInspector &insp, Bool_t isTransient)
Do a ShowMembers() traversal of all members and base classes' members using the reflection informatio...
static THashTable * fgClassTypedefHash
void Init(const char *name, Version_t cversion, const std::type_info *info, TVirtualIsAProxy *isa, const char *dfil, const char *ifil, Int_t dl, Int_t il, ClassInfo_t *classInfo, Bool_t silent)
Initialize a TClass object.
std::atomic< TListOfDataMembers * > fData
static void StreamerStreamerInfo(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of where we should directly use the StreamerInfo.
const TObjArray * GetStreamerInfos() const
void SetClassVersion(Version_t version)
Private function.
char * EscapeChars(const char *text) const
Introduce an escape character (@) in front of a special chars.
const std::type_info * fTypeInfo
std::atomic< TVirtualStreamerInfo * > fLastReadInfo
!cached streamer info used in the last read.
static void StreamerTObject(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects.
Bool_t IsLoaded() const
Return true if the shared library of this class is currently in the a process's memory.
static Bool_t AddRule(const char *rule)
Add a schema evolution customization rule.
Bool_t IsTObject() const
Return kTRUE is the class inherits from TObject.
static void RemoveClass(TClass *cl)
static: Remove a class from the list and map of classes
Bool_t HasLocalHashMember() const
Returns true if this class has an definition and/or overload of the member function Hash.
void DeleteArray(void *ary, Bool_t dtorOnly=kFALSE)
Explicitly call operator delete[] for an array.
ClassConvStreamerFunc_t GetConvStreamerFunc() const
Get a wrapper/accessor function around this class custom conversion streamer (member function).
Bool_t IsForeign() const
Return kTRUE is the class is Foreign (the class does not have a Streamer method).
ClassInfo_t * GetClassInfo() const
TViewPubDataMembers * fAllPubData
TVirtualStreamerInfo * GetStreamerInfo(Int_t version=0, Bool_t isTransient=kFALSE) const
returns a pointer to the TVirtualStreamerInfo object for version If the object does not exist,...
void AdoptStreamer(TClassStreamer *strm)
Adopt a TClassStreamer object.
TClass * GetBaseDataMember(const char *datamember)
Return pointer to (base) class that contains datamember.
void Dump() const override
Dump contents of object on stdout.
Bool_t InheritsFrom(const char *cl) const override
Return kTRUE if this class inherits from a class with name "classname".
Int_t GetBaseClassOffset(const TClass *toBase, void *address=nullptr, bool isDerivedObject=true)
ObjectPtr NewObjectArray(Long_t nElements, ENewType defConstructor=kClassNew) const
Return a pointer to a newly allocated array of objects of this class.
TVirtualCollectionProxy * GetCollectionProxy() const
Return the proxy describing the collection (if any).
void ResetCaches()
To clean out all caches.
Long_t ClassProperty() const
Return the C++ property of this class, eg.
const char * GetSharedLibs()
Get the list of shared libraries containing the code for class cls.
void CalculateStreamerOffset() const
Calculate the offset between an object of this class to its base class TObject.
void GetMissingDictionariesForPairElements(TCollection &result, TCollection &visited, bool recurse)
void ReplaceWith(TClass *newcl) const
void RegisterAddressInRepository(const char *where, void *location, const TClass *what) const
Long_t Property() const override
Returns the properties of the TClass as a bit field stored as a Long_t value.
Bool_t HasDefaultConstructor(Bool_t testio=kFALSE) const
Return true if we have access to a constructor usable for I/O.
void GetMenuItems(TList *listitems)
Returns list of methods accessible by context menu.
void SetNew(ROOT::NewFunc_t newFunc)
Install a new wrapper around 'new'.
std::atomic< TMethodCall * > fIsAMethod
!saved info to call a IsA member function
static Int_t ReadRules()
Read the class.rules files from the default location:.
Bool_t CanSplitBaseAllow()
void MoveAddressInRepository(const char *where, void *oldadd, void *newadd, const TClass *what) const
std::atomic< StreamerImpl_t > fStreamerImpl
! Pointer to the function implementing streaming for this class
void SetContextMenuTitle(const char *title)
Change (i.e. set) the title of the TNamed.
void SetMemberStreamer(const char *name, MemberStreamerFunc_t strm)
Install a new member streamer (p will be copied).
std::atomic< TClass ** > fPersistentRef
!Persistent address of pointer to this TClass object and its successors.
IsAGlobalFunc_t fGlobalIsA
TVirtualStreamerInfo * GetConversionStreamerInfo(const char *onfile_classname, Int_t version) const
Return a Conversion StreamerInfo from the class 'classname' for version number 'version' to this clas...
Short_t GetImplFileLine() const
TMethod * GetMethodAllAny(const char *method)
Return pointer to method without looking at parameters.
TVirtualStreamerInfo * FindConversionStreamerInfo(const char *onfile_classname, UInt_t checksum) const
Return a Conversion StreamerInfo from the class 'classname' for the layout represented by 'checksum' ...
Int_t GetBaseClassOffsetRecurse(const TClass *toBase)
Return data member offset to the base class "cl".
ROOT::DelFunc_t GetDelete() const
Return the wrapper around delete ThisObject.
static TClass * LoadClassDefault(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
void SetClassSize(Int_t sizof)
TMethod * FindClassOrBaseMethodWithId(DeclId_t faddr)
Find a method with decl id in this class or its bases.
static void StreamerExternal(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
There is special streamer for the class.
Long_t fClassProperty
!C++ Property of the class (is abstract, has virtual table, etc.)
static void StreamerTObjectInitialized(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of TObjects when fIsOffsetStreamerSet is known to have been set.
static void ConvStreamerInstrumented(const TClass *pThis, void *object, TBuffer &b, const TClass *onfile_class)
Case of instrumented class with a library.
std::atomic< Bool_t > fCanLoadClassInfo
!Indicates whether the ClassInfo is supposed to be available.
void SetConvStreamerFunc(ClassConvStreamerFunc_t strm)
Set a wrapper/accessor function around this class custom conversion streamer.
ROOT::BrowseFunc_t GetBrowse() const
Return the wrapper around Browse.
TVirtualStreamerInfo * FindStreamerInfo(TObjArray *arr, UInt_t checksum) const
Find the TVirtualStreamerInfo in the StreamerInfos corresponding to checksum.
void GetMissingDictionaries(THashTable &result, bool recurse=false)
Get the classes that have a missing dictionary starting from this one.
void MakeCustomMenuList()
Makes a customizable version of the popup menu list, i.e.
TVirtualStreamerInfo * FindStreamerInfoAbstractEmulated(UInt_t checksum) const
For the case where the requestor class is emulated and this class is abstract, returns a pointer to t...
static SchemaHelperMap_t & GetReadRulesRegistry(ROOT::TSchemaRule::RuleType_t type)
Return the registry for the unassigned read rules.
TMethod * GetMethodAny(const char *method)
Return pointer to method without looking at parameters.
TVirtualIsAProxy * GetIsAProxy() const
Return the proxy implementing the IsA functionality.
ROOT::MergeFunc_t GetMerge() const
Return the wrapper around Merge.
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
std::atomic< Bool_t > fHasRootPcmInfo
!Whether info was loaded from a root pcm.
TClass * GetActualClass(const void *object) const
Return a pointer to the real class of the object.
ROOT::DesFunc_t fDestructor
const char * GetDeclFileName() const
Return name of the file containing the declaration of this class.
ObjectPtr NewObject(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
TRealData * GetRealData(const char *name) const
Return pointer to TRealData element with name "name".
void SetDeleteArray(ROOT::DelArrFunc_t deleteArrayFunc)
Install a new wrapper around 'delete []'.
Bool_t fHasCustomStreamerMember
The class has a Streamer method and it is implemented by the user or an older (not StreamerInfo based...
TFunctionTemplate * GetFunctionTemplate(const char *name)
void ResetClassInfo()
Make sure that the current ClassInfo is up to date.
ROOT::NewArrFunc_t fNewArray
Int_t ReadBuffer(TBuffer &b, void *pointer, Int_t version, UInt_t start, UInt_t count)
Function called by the Streamer functions to deserialize information from buffer b into object at p.
void GetMissingDictionariesWithRecursionCheck(TCollection &result, TCollection &visited, bool recurse)
From the second level of recursion onwards it is different state check.
ROOT::BrowseFunc_t fBrowse
bool IsClassStructOrUnion() const
std::atomic< TListOfDataMembers * > fUsingData
TListOfFunctions * GetMethodList()
Return (create an empty one if needed) the list of functions.
void ResetMenuList()
Resets the menu list to it's standard value.
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.
Int_t WriteBuffer(TBuffer &b, void *pointer, const char *info="")
Function called by the Streamer functions to serialize object at p to buffer b.
static TClass * LoadClassCustom(const char *requestedname, Bool_t silent)
Helper function used by TClass::GetClass().
Collection abstract base class.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
All ROOT classes may have RTTI (run time type identification) support added.
const char * GetTrueTypeName() const
Get the desugared type name of this data member, including const and volatile qualifiers.
Bool_t IsPersistent() const
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
Bool_t IsBasic() const
Return true if data member is a basic type, e.g. char, int, long...
Bool_t IsaPointer() const
Return true if data member is a pointer.
TDataType * GetDataType() const
const char * GetTypeName() const
Get the decayed type name of this data member, removing const and volatile qualifiers,...
Basic data type descriptor (datatype information is obtained from CINT).
static void GetDateTime(UInt_t datetime, Int_t &date, Int_t &time)
Static function that returns the date and time.
This class defines an abstract interface that must be implemented by all classes that contain diction...
EMemberSelection
Kinds of members to include in lists.
void Inspect(TClass *cl, const char *parent, const char *name, const void *addr, Bool_t isTransient) override
Print value of member mname.
TDumpMembers(bool noAddr)
static TEnum * GetEnum(const std::type_info &ti, ESearchAction sa=kALoadAndInterpLookup)
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
This class stores a (key,value) pair using an external hash.
Dictionary for function template This class describes one single function template.
Global functions class (global functions are obtained from CINT).
THashTable implements a hash table to store TObject's.
virtual Bool_t ClassInfo_HasMethod(ClassInfo_t *, const char *) const
virtual const char * DataMemberInfo_Name(DataMemberInfo_t *) const
virtual const char * DataMemberInfo_TypeName(DataMemberInfo_t *) const
virtual int DataMemberInfo_TypeSize(DataMemberInfo_t *) const
virtual void * ClassInfo_New(ClassInfo_t *) const
virtual Bool_t ClassInfo_IsValid(ClassInfo_t *) const
virtual Int_t AutoParse(const char *cls)=0
virtual void ClassInfo_Delete(ClassInfo_t *) const
virtual void ClassInfo_DeleteArray(ClassInfo_t *, void *, bool) const
virtual Long_t ClassInfo_Property(ClassInfo_t *) const
virtual int ClassInfo_Size(ClassInfo_t *) const
virtual const char * ClassInfo_FullName(ClassInfo_t *) const
virtual int SetClassAutoLoading(int) const
virtual const char * ClassInfo_Title(ClassInfo_t *) const
virtual Long_t DataMemberInfo_TypeProperty(DataMemberInfo_t *) const
virtual int DataMemberInfo_Next(DataMemberInfo_t *) const
virtual size_t ClassInfo_AlignOf(ClassInfo_t *) const
virtual DataMemberInfo_t * DataMemberInfo_Factory(ClassInfo_t *, TDictionary::EMemberSelection) const
virtual Long_t DataMemberInfo_Property(DataMemberInfo_t *) const
virtual int DataMemberInfo_ArrayDim(DataMemberInfo_t *) const
virtual void DataMemberInfo_Delete(DataMemberInfo_t *) const
virtual int DataMemberInfo_MaxIndex(DataMemberInfo_t *, Int_t) const
TDictionary::DeclId_t DeclId_t
virtual Bool_t ClassInfo_HasDefaultConstructor(ClassInfo_t *, Bool_t=kFALSE) const
virtual Long_t ClassInfo_ClassProperty(ClassInfo_t *) const
virtual Longptr_t ClassInfo_GetBaseOffset(ClassInfo_t *, ClassInfo_t *, void *=nullptr, bool=true) const
virtual void ClassInfo_Destruct(ClassInfo_t *, void *) const
TIsAProxy implementation class.
A collection of TDataMember objects designed for fast access given a DeclId_t and for keep track of T...
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TObject * FindObject(const char *name) const override
Specialize FindObject to do search for the a function just by name or create it if its not already in...
void Load()
Load all the functions known to the interpreter for the scope 'fClass' into this collection.
void Delete(Option_t *option="") override
Delete all TFunction object files.
A collection of TFunction objects designed for fast access given a DeclId_t and for keep track of TFu...
TFunction * Get(DeclId_t id)
Return (after creating it if necessary) the TMethod or TFunction describing the function correspondin...
virtual TList * GetListForObject(const char *name) const
Return the set of overloads for this name, collecting all available ones.
TObject * FindObject(const TObject *obj) const override
Find object using its hash value (returned by its Hash() member).
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
void AddLast(TObject *obj) override
Add object at the end of the list.
virtual TObjLink * FirstLink() const
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Abstract base class for accessing the data-members of a class.
virtual void Inspect(TClass *cl, const char *parent, const char *name, const void *addr)
Each ROOT method (see TMethod) has a linked list of its arguments.
Each ROOT class (see TClass) has a linked list of methods.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
void ls(Option_t *option="") const override
List TNamed name and title.
Int_t GetEntriesFast() const
virtual void AddAtAndExpand(TObject *obj, Int_t idx)
Add object at position idx.
Int_t GetEntries() const override
Return the number of objects in array (i.e.
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
TObject * At(Int_t idx) const override
TObject * UncheckedAt(Int_t i) const
Int_t GetLast() const override
Return index of last object in array.
void Add(TObject *obj) override
Wrapper around a TObject so it can be stored in a TList.
Collectable string class.
Mother of all ROOT objects.
static void SetObjectStat(Bool_t stat)
Turn on/off tracking of objects in the TObjectTable.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
R__ALWAYS_INLINE Bool_t IsZombie() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static Bool_t GetObjectStat()
Get status of object stat flag.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Class used by TMap to store (key,value) pairs.
Persistent version of a TClass.
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
The TRealData class manages the effective list of all data members for a given class.
const char * GetName() const override
Returns name of object.
TClass * GetClassPointer() const override
Returns a pointer to the TClass of this element.
Describe one element (data member) to be Streamed.
TClass * GetClassPointer() const override
Returns a pointer to the TClass of this element.
static constexpr Ssiz_t kNPOS
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual const char * Getenv(const char *env)
Get environment variable.
virtual const char * PrependPathName(const char *dir, TString &name)
Concatenate a directory and a file name.
View implementing the TList interface and giving access all the TDictionary describing public data me...
void Load()
Load all the DataMembers known to the interpreter for the scope 'fClass' and all its bases classes.
void Delete(Option_t *option="") override
Delete is not allowed in this class.
View implementing the TList interface and giving access all the TFunction describing public methods i...
void Load()
Load all the functions known to the interpreter for the scope 'fClass' and all its bases classes.
RAII helper class that ensures that PushProxy() / PopProxy() are called when entering / leaving a C++...
Defines a common interface to inspect/change the contents of an object that represents a collection.
virtual Int_t GetProperties() const
Return miscallenous properties of the proxy (see TVirtualCollectionProxy::EProperty)
virtual UInt_t Sizeof() const =0
Return the sizeof() of the collection object.
virtual TClass::ObjectPtr NewObjectArray(Int_t nElements) const
Construct an array of nElements container objects and return the base address of the array.
virtual void Destructor(void *p, Bool_t dtorOnly=kFALSE) const
Execute the container destructor.
virtual void DeleteArray(void *p, Bool_t dtorOnly=kFALSE) const
Execute the container array destructor.
virtual TClass * GetValueClass() const =0
If the value type is a user-defined class, return a pointer to the TClass representing the value type...
virtual TClass::ObjectPtr NewObject() const
Construct a new container object and return its address.
virtual TVirtualCollectionProxy * Generate() const =0
Returns a clean object of the actual class that derives from TVirtualCollectionProxy.
virtual Bool_t Reset()
Reset the information gathered from StreamerInfos and value's TClass.
virtual Bool_t HasPointers() const =0
Return true if the content is of type 'pointer to'.
virtual void SetClass(TClass *cl)=0
This class implements a mutex interface.
small helper class to store/restore gPad context in TPad methods
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TVirtualRefProxy * Clone() const =0
Abstract Interface class describing Streamer information for one class.
virtual void DeleteArray(void *p, Bool_t dtorOnly=kFALSE)=0
static const char * GetElementCounterStart(const char *dmTitle)
Given a comment/title declaring an array counter, for example:
virtual Int_t GetSize() const =0
static TVirtualStreamerInfo * Factory()
Static function returning a pointer to a new TVirtualStreamerInfo object.
virtual size_t GetClassAlignment() const =0
virtual void Destructor(void *p, Bool_t dtorOnly=kFALSE)=0
constexpr T AlignUp(T value, T align) noexcept
Round value up to the next multiple of align.
R__EXTERN void * gMmallocDesc
constexpr bool IsValidAlignment(std::size_t align) noexcept
Return true if align is a valid C++ alignment value: strictly positive and a power of two.
Bool_t HasConsistentHashMember(TClass &clRef)
Return true is the Hash/RecursiveRemove setup is consistent, i.e.
void(* DirAutoAdd_t)(void *, TDirectory *)
R__EXTERN TVirtualRWMutex * gCoreMutex
void(* ResetAfterMergeFunc_t)(void *, TFileMergeInfo *)
void(* DesFunc_t)(void *)
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).
void(* DelFunc_t)(void *)
void(* BrowseFunc_t)(const void *, TBrowser *)
void *(* NewArrFunc_t)(Long_t size, void *arena)
void Class_ShowMembers(TClass *cl, const void *obj, TMemberInspector &)
Indirect call to the implementation of ShowMember allowing [forward] declaration with out a full defi...
void(* DelArrFunc_t)(void *)
void *(* NewFunc_t)(void *)
Long64_t(* MergeFunc_t)(void *, TCollection *, TFileMergeInfo *)
bool IsStdPairBase(std::string_view name)
std::string ResolveTypedef(const char *tname, bool resolveAll=false)
bool IsStdArray(std::string_view name)
bool IsStdClass(const char *type)
return true if the class belongs to the std namespace
bool IsStdPair(std::string_view name)
bool IsInterpreterDetail(const char *type)
Return true if the type is one the interpreter details which are only forward declared (ClassInfo_t e...
char * DemangleTypeIdName(const std::type_info &ti, int &errorCode)
Demangle in a portable way the type id name.
ROOT::ESTLType IsSTLCont(std::string_view type)
type : type name: vector<list<classA,allocator>,allocator> result: 0 : not stl container code of cont...
std::string ShortType(const char *typeDesc, int mode)
Return the absolute type of typeDesc.
bool IsArtificial(std::string_view name)
void GetNormalizedName(std::string &norm_name, std::string_view name)
Return the normalized name.
bool IsSTLBitset(const char *type)
Return true is the name is std::bitset<number> or bitset<number>
UInt_t Find(std::list< std::pair< const Node< T > *, Float_t > > &nlist, const Node< T > *node, const T &event, UInt_t nfind)
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.
TVirtualStreamerInfo * GetAllocator() const
TClass::ENewType & fCurrentValue
TClass__GetCallingNewRAII(TClass::ENewType newvalue)
TClass::ENewType fOldValue
~TClass__GetCallingNewRAII()