string | CleanType(const char* typeDesc, int mode = 0, const char** tail = 0) |
char* | DemangleName(const char* mangled_name, int& errorCode) |
char* | DemangleTypeIdName(const type_info& ti, int& errorCode) |
TClassEdit::EComplexType | GetComplexType(const char*) |
string | GetLong64_Name(const char* original) |
string | GetLong64_Name(const string& original) |
void | GetNormalizedName(string& norm_name, string_view name) |
int | GetSplit(const char* type, vector<string>& output, int& nestedLoc, TClassEdit::EModType mode = TClassEdit::kNone) |
const char* | GetUnqualifiedName(const char* name) |
void | Init(TClassEdit::TInterpreterLookupHelper* helper) |
string | InsertStd(const char* tname) |
bool | IsDefAlloc(const char* alloc, const char* classname) |
bool | IsDefAlloc(const char* alloc, const char* keyclassname, const char* valueclassname) |
bool | IsDefComp(const char* comp, const char* classname) |
bool | IsDefHash(const char* hashname, const char* classname) |
bool | IsDefPred(const char* predname, const char* classname) |
bool | IsInterpreterDetail(const char* type) |
bool | IsStdClass(const char* type) |
bool | IsSTLBitset(const char* type) |
ROOT::ESTLType | IsSTLCont(string_view type) |
int | IsSTLCont(const char* type, int testAlloc) |
bool | IsVectorBool(const char* name) |
string | ResolveTypedef(const char* tname, bool resolveAll = false) |
string | ShortType(const char* typeDesc, int mode) |
int | STLArgs(int kind) |
ROOT::ESTLType | STLKind(string_view type) |
ROOT::ESTLType | UnderlyingIsSTLCont(string_view type) |
Converts STL container name to number. vector -> 1, etc.. If len is greater than 0, only look at that many characters in the string.
return whether or not 'allocname' is the STL default allocator for type 'classname'
return whether or not 'allocname' is the STL default allocator for a key of type 'keyclassname' and a value of type 'valueclassname'
return whether or not 'compare' is the STL default comparator for type 'classname'
return whether or not 'predname' is the STL default predicate for type 'classname'
return whether or not 'hashname' is the STL default hash for type 'classname'
Return the normalized name. See TMetaUtils::GetNormalizedName. Return the type name normalized for ROOT, keeping only the ROOT opaque typedef (Double32_t, etc.) and removing the STL collections default parameter if any. Compare to TMetaUtils::GetNormalizedName, this routines does not and can not add default template parameters.
Return the start of the unqualified name include in 'original'.
Stores in output (after emptying it) the splited type. Stores the location of the tail (nested names) in nestedLoc (0 indicates no tail). Return the number of elements stored. First in list is the template name or is empty "vector<list<int>,alloc>**" to "vector" "list<int>" "alloc" "**" or "TNamed*" to "" "TNamed" "*"
Cleanup type description, redundant blanks removed and redundant tail ignored return *tail = pointer to last used character if (mode==0) keep keywords if (mode==1) remove keywords outside the template params if (mode>=2) remove the keywords everywhere. if (tail!=0) cut before the trailing * The keywords currently are: "const" , "volatile" removed CleanType(" A<B, C< D, E> > *,F,G>") returns "A<B,C<D,E> >*"
Return the absolute type of typeDesc. E.g.: typeDesc = "class const volatile TNamed**", returns "TNamed**". if (mode&1) remove last "*"s returns "TNamed" if (mode&2) remove default allocators from STL containers if (mode&4) remove all allocators from STL containers if (mode&8) return inner class of stl container. list<innerClass> if (mode&16) return deapest class of stl container. vector<list<deapest>> if (mode&kDropAllDefault) remove default template arguments
Return true if the type is one the interpreter details which are only forward declared (ClassInfo_t etc..)
Return the type of STL collection, if any, that is the underlying type of the given type. Namely return the value of IsSTLCont after stripping pointer, reference and constness from the type. UnderlyingIsSTLCont("vector<int>*") == IsSTLCont("vector<int>") See TClassEdit::IsSTLCont type : type name: vector<list<classA,allocator>,allocator>* result: 0 : not stl container code of container 1=vector,2=list,3=deque,4=map 5=multimap,6=set,7=multiset
type : type name: vector<list<classA,allocator>,allocator> result: 0 : not stl container code of container 1=vector,2=list,3=deque,4=map 5=multimap,6=set,7=multiset
type : type name: vector<list<classA,allocator>,allocator> testAlloc: if true, we test allocator, if it is not default result is negative result: 0 : not stl container abs(result): code of container 1=vector,2=list,3=deque,4=map 5=multimap,6=set,7=multiset positive val: we have a vector or list with default allocator to any depth like vector<list<vector<int>>> negative val: STL container other than vector or list, or non default allocator For example: vector<deque<int>> has answer -1
Demangle in a portable way the type id name. IMPORTANT: The caller is responsible for freeing the returned const char*
Demangle in a portable way the name. IMPORTANT: The caller is responsible for freeing the returned const char*