55 if (
gROOT->GetListOfClasses()->FindObject(
name) ||
61 const auto lastPos = strrchr(
name,
':');
62 if (lastPos !=
nullptr) {
64 const auto enName = lastPos + 1;
65 const size_t scopeNameSize = (lastPos -
name) /
sizeof(
decltype(*lastPos)) - 1;
66 std::string scopeName{
name, scopeNameSize};
69 if (
auto scope =
dynamic_cast<TClass *
>(
gROOT->GetListOfClasses()->FindObject(scopeName.c_str()))) {
75 if (
auto listOfEnums = (
TListOfEnums*)scope->GetListOfEnums())
76 theEnum = listOfEnums->THashList::FindObject(enName);
83 return nullptr != theEnum;
#define R__COLLECTION_READ_GUARD()
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
R__EXTERN TVirtualMutex * gInterpreterMutex
static bool NameExistsElsewhere(const char *name)
#define R__LOCKGUARD(mutex)
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).
TClass instances represent classes, structs and namespaces in the ROOT type system.
Basic data type descriptor (datatype information is obtained from CINT).
static void AddBuiltins(TCollection *types)
Create the TDataType objects for builtins.
TObject * FindObject(const char *name) const override
Find object using its name.
THashTable implements a hash table to store TObject's.
void Add(TObject *obj) override
Add object to the hash table.
TObject * FindObject(const char *name) const override
Find object using its name.
A collection of TEnum objects designed for fast access given a DeclId_t and for keep track of TEnum t...
A collection of TDataType designed to hold the typedef information and numerical type information.
TObject * FindObject(const char *name) const override
Find object using its name.
TDataType * FindType(const char *name) const
Mother of all ROOT objects.