2#ifndef _CRT_SECURE_NO_WARNINGS
4#define _CRT_SECURE_NO_WARNINGS
58#define CLING_CATCH_UNCAUGHT_ \
59ARMUncaughtException guard; \
60if (setjmp(gExcJumBuf) == 0) {
61#define _CLING_CATCH_UNCAUGHT \
63 if (!std::getenv("CPPYY_UNCAUGHT_QUIET")) \
64 std::cerr << "Warning: uncaught exception in JIT is rethrown; resources may leak" \
65 << " (suppress with \"CPPYY_UNCAUGHT_QUIET=1\")" << std::endl;\
66 std::rethrow_exception(std::current_exception()); \
69#define CLING_CATCH_UNCAUGHT_
70#define _CLING_CATCH_UNCAUGHT
78#if defined(__GLIBCXX__) && __GLIBCXX__ >= 20220506
79template class std::allocator<char>;
80template class std::basic_string<char>;
81template class std::basic_string<wchar_t>;
99void arm_uncaught_exception() {
100 longjmp(gExcJumBuf, 1);
103class ARMUncaughtException {
104 std::terminate_handler m_Handler;
106 ARMUncaughtException() { m_Handler = std::set_terminate(arm_uncaught_exception); }
107 ~ARMUncaughtException() { std::set_terminate(m_Handler); }
118#define DIRECT_CALL ((size_t)1 << (8 * sizeof(size_t) - 1))
120 return nargs & ~DIRECT_CALL;
146std::string find_memoized_resolved_name(
const std::string&
name)
163 typedef const void* DeclId_t;
167 CallWrapper(DeclId_t fid,
const std::string&
n) : fDecl(fid), fName(
n), fTF(
nullptr) {}
186 CallWrapper* wrap =
new CallWrapper(
f);
194 CallWrapper* wrap =
new CallWrapper(fid,
n);
214 {
"bool",
"char",
"signed char",
"unsigned char",
"wchar_t",
"short",
"unsigned short",
215 "int",
"unsigned int",
"long",
"unsigned long",
"long long",
"unsigned long long",
216 "float",
"double",
"long double",
"void",
217 "allocator",
"array",
"basic_string",
"complex",
"initializer_list",
"less",
"list",
218 "map",
"pair",
"set",
"vector"};
222 {
"auto_ptr",
"std::auto_ptr",
"shared_ptr",
"std::shared_ptr",
223 "unique_ptr",
"std::unique_ptr",
"weak_ptr",
"std::weak_ptr"};
240const int SIGPIPE = 0;
241const int SIGQUIT = 0;
242const int SIGWINCH = 0;
243const int SIGALRM = 0;
244const int SIGCHLD = 0;
246const int SIGUSR1 = 0;
247const int SIGUSR2 = 0;
252 const char *fSigName;
254 { SIGBUS,
"bus error" },
255 { SIGSEGV,
"segmentation violation" },
256 { SIGSYS,
"bad argument to system call" },
257 { SIGPIPE,
"write on a pipe with no one to read it" },
258 { SIGILL,
"illegal instruction" },
259 { SIGABRT,
"abort" },
261 { SIGINT,
"interrupt" },
262 { SIGWINCH,
"window size change" },
263 { SIGALRM,
"alarm clock" },
264 { SIGCHLD,
"death of a child" },
265 { SIGURG,
"urgent data arrived on an I/O channel" },
266 { SIGFPE,
"floating point exception" },
267 { SIGTERM,
"termination signal" },
268 { SIGUSR1,
"user-defined signal 1" },
269 { SIGUSR2,
"user-defined signal 2" }
272static void inline do_trace(
int sig) {
279 void HandleException(
Int_t sig)
override {
286 if (!std::getenv(
"CPPYY_CRASH_QUIET"))
298class ApplicationStarter {
300 ApplicationStarter() {
321 for (
const auto&
name : bi) {
322 for (
const char*
a : {
"*",
"&",
"*&",
"[]",
"*[]"})
330 const char* stl_names[] = {
"allocator",
"auto_ptr",
"bad_alloc",
"bad_cast",
331 "bad_exception",
"bad_typeid",
"basic_filebuf",
"basic_fstream",
"basic_ifstream",
332 "basic_ios",
"basic_iostream",
"basic_istream",
"basic_istringstream",
333 "basic_ofstream",
"basic_ostream",
"basic_ostringstream",
"basic_streambuf",
334 "basic_string",
"basic_stringbuf",
"basic_stringstream",
"binary_function",
335 "binary_negate",
"bitset",
"byte",
"char_traits",
"codecvt_byname",
"codecvt",
"collate",
336 "collate_byname",
"compare",
"complex",
"ctype_byname",
"ctype",
"default_delete",
337 "deque",
"divides",
"domain_error",
"equal_to",
"exception",
"forward_list",
"fpos",
338 "function",
"greater_equal",
"greater",
"gslice_array",
"gslice",
"hash",
"indirect_array",
339 "integer_sequence",
"invalid_argument",
"ios_base",
"istream_iterator",
"istreambuf_iterator",
340 "istrstream",
"iterator_traits",
"iterator",
"length_error",
"less_equal",
"less",
341 "list",
"locale",
"localedef utility",
"locale utility",
"logic_error",
"logical_and",
342 "logical_not",
"logical_or",
"map",
"mask_array",
"mem_fun",
"mem_fun_ref",
"messages",
343 "messages_byname",
"minus",
"modulus",
"money_get",
"money_put",
"moneypunct",
344 "moneypunct_byname",
"multimap",
"multiplies",
"multiset",
"negate",
"not_equal_to",
345 "num_get",
"num_put",
"numeric_limits",
"numpunct",
"numpunct_byname",
346 "ostream_iterator",
"ostreambuf_iterator",
"ostrstream",
"out_of_range",
347 "overflow_error",
"pair",
"plus",
"pointer_to_binary_function",
348 "pointer_to_unary_function",
"priority_queue",
"queue",
"range_error",
349 "raw_storage_iterator",
"reverse_iterator",
"runtime_error",
"set",
"shared_ptr",
350 "slice_array",
"slice",
"stack",
"string",
"strstream",
"strstreambuf",
351 "time_get_byname",
"time_get",
"time_put_byname",
"time_put",
"unary_function",
352 "unary_negate",
"unique_ptr",
"underflow_error",
"unordered_map",
"unordered_multimap",
353 "unordered_multiset",
"unordered_set",
"valarray",
"vector",
"weak_ptr",
"wstring",
354 "__hash_not_enabled"};
355 for (
auto&
name : stl_names)
360 if (std::getenv(
"CPPYY_OPT_LEVEL")) optLevel = atoi(std::getenv(
"CPPYY_OPT_LEVEL"));
362 std::ostringstream s;
363 s <<
"#pragma cling optimize " << optLevel;
369 "#include <iostream>\n"
370 "#include <string>\n"
371 "#include <DllImport.h>\n"
372 "#include <vector>\n"
373 "#include <utility>";
378 "namespace __cppyy_internal { template<class C1, class C2>"
379 " bool is_equal(const C1& c1, const C2& c2) { return (bool)(c1 == c2); } }");
381 "namespace __cppyy_internal { template<class C1, class C2>"
382 " bool is_not_equal(const C1& c1, const C2& c2) { return (bool)(c1 != c2); } }");
385 gInterpreter->Declare(
"namespace __cppyy_internal { struct Sep; }");
388 gROOT->GetListOfGlobals(
true);
389 gROOT->GetListOfGlobalFunctions(
true);
390 std::set<std::string> initial;
403 gRootSOs.insert(
"libMathCore.dll ");
413 ~ApplicationStarter() {
418} _applicationStarter;
427 assert((ClassRefs_t::size_type)scope <
g_classrefs.size());
433 CallWrapper* wrap = ((CallWrapper*)method);
435 MethodInfo_t* mi =
gInterpreter->MethodInfo_Factory(wrap->fDecl);
456 char* cstr = (
char*)
malloc(cppstr.size()+1);
457 memcpy(cstr, cppstr.c_str(), cppstr.size()+1);
462bool match_name(
const std::string& tname,
const std::string fname)
465 if (fname.rfind(tname, 0) == 0) {
466 if ((tname.size() == fname.size()) ||
467 (tname.size() < fname.size() && fname[tname.size()] ==
'<'))
476 std::string::size_type pos =
name.find(
'<');
477 if (pos != std::string::npos)
503 std::string memoized = find_memoized_resolved_name(cppitem_name);
504 if (!memoized.empty())
return memoized;
507 std::string tclean = cppitem_name.compare(0, 2,
"::") == 0 ?
508 cppitem_name.substr(2, std::string::npos) : cppitem_name;
512 if (tclean.empty() )
return cppitem_name;
515 if (tclean[tclean.size()-1] ==
']')
516 tclean = tclean.substr(0, tclean.rfind(
'[')) +
"[]";
518 if (tclean.rfind(
"byte", 0) == 0 || tclean.rfind(
"std::byte", 0) == 0)
522 auto pos = tclean.rfind(
"__restrict");
523 if (pos != std::string::npos)
524 tclean = tclean.substr(0, pos);
526 if (tclean.compare(0, 9,
"std::byte") == 0)
538 pos = cppitem_name.size() > 20 ? \
539 cppitem_name.rfind(
"__type_pack_element", 5) : std::string::npos;
540 if (pos != std::string::npos) {
544 const char* str = cppitem_name.c_str();
545 char* endptr =
nullptr;
546 unsigned long index = strtoul(str+20+pos, &endptr, 0);
548 std::string tmplvars{endptr};
549 auto start = tmplvars.find(
',') + 1;
550 auto end = tmplvars.find(
',', start);
553 end = tmplvars.find(
',', start);
554 if (end == std::string::npos) end = tmplvars.rfind(
'>');
558 std::string resolved = tmplvars.substr(start, end-start);
559 auto cpd = tmplvars.rfind(
'>');
560 if (cpd != std::string::npos && cpd+1 != tmplvars.size())
561 return resolved + tmplvars.substr(cpd+1, std::string::npos);
569 while ((pos = tclean.find(
"::::", pos)) != std::string::npos) {
570 tclean.replace(pos, 4,
"::");
574 if (tclean.compare(0, 6,
"const ") != 0)
581static std::string extract_namespace(
const std::string&
name)
589 for (std::string::size_type pos =
name.size()-1; 0 < pos; --pos) {
590 std::string::value_type
c =
name[pos];
599 else if (tpl_open == 0 &&
c ==
':' &&
name[pos-1] ==
':') {
601 return name.substr(0, pos-1);
621 if (et_short.find(
"(unnamed") == std::string::npos) {
622 std::ostringstream decl;
624 for (
auto& itype : {
"unsigned int"}) {
625 decl <<
"std::is_same<"
627 <<
", std::underlying_type<"
629 <<
">::type>::value;";
633 std::string resugared;
634 if (et_short.size() != enum_type.size()) {
635 auto pos = enum_type.find(et_short);
636 if (pos != std::string::npos) {
637 resugared = enum_type.substr(0, pos) + itype;
638 if (pos+et_short.size() < enum_type.size())
639 resugared += enum_type.substr(pos+et_short.size(), std::string::npos);
642 if (resugared.empty()) resugared = itype;
650 int ipos = (
int)enum_type.size()-1;
651 for (; 0 <= ipos; --ipos) {
652 char c = enum_type[ipos];
653 if (isspace(
c))
continue;
654 if (isalnum(
c) ||
c ==
'_' ||
c ==
'>' ||
c ==
')')
break;
656 bool isConst = enum_type.find(
"const ", 6) != std::string::npos;
657 std::string restype = isConst ?
"const " :
"";
658 restype +=
"internal_enum_type_t"+enum_type.substr((std::string::size_type)ipos+1, std::string::npos);
701 bool bHasAlias1 = sname != scope_name;
703 result = find_memoized_scope(scope_name);
712 if (b_scope_name_missclassified) {
713 result = find_memoized_scope(
"std::"+scope_name);
717 if (b_sname_missclassified) {
718 if (!
result)
result = find_memoized_scope(
"std::"+sname);
732 bool bHasAlias2 = cr->
GetName() != scope_name;
747 if (b_scope_name_missclassified)
749 if (b_sname_missclassified)
759 return (
bool)
gInterpreter->CheckClassTemplate(template_name.c_str());
765 virtual ~AutoCastRTTI() {}
772 if (!cr.
GetClass() || !obj)
return klass;
781 std::string clName = cr->
GetName();
782 if (clName.find(
"std::", 0, 5) == 0 && clName.find(
"stream") != std::string::npos)
790 volatile const char* raw =
nullptr;
793 AutoCastRTTI* pcst = (AutoCastRTTI*)obj;
794 raw =
typeid(*pcst).raw_name();
797 void* vfptr = *(
void**)((intptr_t)obj);
798 void* meta = (
void*)((intptr_t)*((
void**)((intptr_t)vfptr-
sizeof(
void*))));
799 if (*(intptr_t*)meta == 2) {
801 void* ptdescr = (
void*)((intptr_t)meta + 4*
sizeof(
unsigned long)+
sizeof(
void*));
802 if (ptdescr && *(
void**)ptdescr) {
803 auto rtti = *(std::type_info**)ptdescr;
804 raw = rtti->raw_name();
805 if (raw && raw[0] !=
'\0')
817 }
catch (std::bad_typeid) {
845 if (dt)
return dt->
Size();
858 if (strstr(tclean.c_str(),
"std::complex"))
875 ClassInfo_t* ci =
gInterpreter->ClassInfo_Factory(type_name.c_str());
931 CallWrapper* wrap = (CallWrapper*)method;
934 MethodInfo_t* meth =
gInterpreter->MethodInfo_Factory(wrap->fDecl);
938 if (!(callf &&
gInterpreter->CallFunc_IsValid(callf))) {
944 std::cerr <<
"TODO: report unresolved function error to Python\n";
954 wrap->fFaceptr =
gInterpreter->CallFunc_IFacePtr(callf);
958 return wrap->fFaceptr;
964 bool runRelease =
false;
965 for (
size_t i = 0; i < nargs; ++i) {
966 switch (args[i].fTypeCode) {
973 vargs[i] = args[i].
fRef;
976 vargs[i] = (
void*)&args[i].fValue.fVoidp;
986 for (
size_t i = 0; i < nargs; ++i) {
987 if (args[i].fTypeCode ==
'X')
988 free(args[i].fValue.fVoidp);
998 CallWrapper* wrap = (CallWrapper*)method;
1004 bool runRelease =
false;
1007 if (nargs) runRelease =
copy_args(args, nargs, smallbuf);
1010 std::vector<void*> buf(nargs);
1011 runRelease =
copy_args(args, nargs, buf.data());
1019 bool runRelease =
false;
1022 if (nargs) runRelease =
copy_args(args, nargs, (
void**)smallbuf);
1023 faceptr.
fCtor((
void**)smallbuf,
result, (
unsigned long)nargs);
1025 std::vector<void*> buf(nargs);
1026 runRelease =
copy_args(args, nargs, buf.data());
1027 faceptr.
fCtor(buf.data(),
result, (
unsigned long)nargs);
1034 std::cerr <<
" DESTRUCTOR NOT IMPLEMENTED YET! " << std::endl;
1046 if (
WrapperCall(method, nargs, args, (
void*)self, &t))
1051#define CPPYY_IMP_CALL(typecode, rtype) \
1052rtype Cppyy::Call##typecode(TCppMethod_t method, TCppObject_t self, size_t nargs, void* args)\
1054 return CallT<rtype>(method, self, nargs, args); \
1059 if (!
WrapperCall(method, nargs, args, (
void*)self,
nullptr))
1084 char* cstr =
nullptr;
1086 std::string* cppresult = (std::string*)
malloc(
sizeof(std::string));
1087 if (
WrapperCall(method, nargs, args, self, (
void*)cppresult)) {
1089 *
length = cppresult->size();
1090 cppresult->std::string::~basic_string();
1093 free((
void*)cppresult);
1100 void* obj =
nullptr;
1101 if (
WrapperCall(method, nargs, args,
nullptr, &obj))
1121 auto classSize =
gInterpreter->ClassInfo_Size(classInfo);
1126 void* obj = ::operator
new(classSize);
1129 ::operator
delete(obj);
1148 if (strstr(
f->GetName(),
"<")) {
1150 std::ostringstream sig;
1151 sig <<
"template " << fn <<
";";
1154 std::ostringstream sig;
1156 std::string sfn = fn;
1157 std::string::size_type pos = sfn.find(
'(');
1158 if (pos != std::string::npos) sfn = sfn.substr(0, pos);
1161 sig <<
'(' <<
f->GetReturnTypeName() <<
" (";
1164 pos = sfn.rfind(
':');
1165 if (pos != std::string::npos) {
1166 std::string scope_name = sfn.substr(0, pos-1);
1169 sig << scope_name <<
"::";
1231 if (type_name.empty())
return false;
1233 if (type_name.rfind(
"enum ", 0) == 0)
1237 if (tn_short.empty())
return false;
1238 return gInterpreter->ClassInfo_IsEnum(tn_short.c_str());
1253 TypeInfo_t *ti =
gInterpreter->TypeInfo_Factory(type_name.c_str());
1277 for (std::string::size_type pos = 0; pos <
name.size(); ++pos) {
1278 std::string::value_type
c =
name[pos];
1287 else if (tpl_open == 0 && \
1288 c ==
':' && pos+1 <
name.size() &&
name[pos+1] ==
':') {
1290 return name.substr(0, pos-1);
1302 std::string::size_type first_scope =
name.find(
':');
1303 if (first_scope == std::string::npos)
1304 return name.substr(0,
name.find(
'<'));
1305 std::string::size_type first_templ =
name.find(
'<');
1306 if (first_templ == std::string::npos)
1307 return name.substr(0, first_scope);
1308 return name.substr(0, std::min(first_templ, first_scope));
1311#define FILL_COLL(type, filter) { \
1313 type* obj = nullptr; \
1314 while ((obj = (type*)itr.Next())) { \
1315 const char* nm = obj->GetName(); \
1316 if (nm && nm[0] != '_' && !(obj->Property() & (filter))) { \
1317 if (gInitialNames.find(nm) == gInitialNames.end()) \
1318 cppnames.insert(nm); \
1323 std::set<std::string>& cppnames,
const char*
name,
bool nofilter =
false)
1325 if (!
name || strstr(
name,
".h") != 0)
1333 if (strncmp(
name,
"std::", 5) == 0) {
1336 if (strncmp(
name,
"__1::", 5) == 0)
name += 5;
1342 if (strncmp(
name, ns_scope.c_str(), ns_scope.size()) == 0)
1364 while ((ev = (
TEnvRec*)itr.Next())) {
1383 ClassInfo_t* ci =
gInterpreter->ClassInfo_FactoryWithScope(
1386 const char* className =
gInterpreter->ClassInfo_FullName(ci);
1387 if (strstr(className,
"(anonymous)") || strstr(className,
"(unnamed)"))
1389 cond_add(scope, ns_scope, cppnames, className);
1396 coll =
gROOT->GetListOfTypes();
1413 while ((obj = (
TFunction*)itr.Next())) {
1414 const char* nm = obj->
GetName();
1417 cppnames.insert(nm);
1428 coll =
gROOT->GetListOfGlobals();
1454 std::vector<Cppyy::TCppScope_t> res;
1470 res.reserve(
v.size());
1471 for (
const auto& uid :
v) {
1473 if (uscope) res.push_back(uscope);
1486 std::string clName = cr->
GetName();
1488 std::string::size_type pos = clName.substr(0, clName.find(
'<')).rfind(
"::");
1489 if (pos != std::string::npos)
1490 return clName.substr(pos+2, std::string::npos);
1502 return std::string(
"std::")+cr->
GetName();
1532 else if (nbases == 0)
1583 auto ndirectbases = directbases->
GetSize();
1584 if (ndirectbases == 0) {
1589 std::vector<Cppyy::TCppIndex_t> nbases_branches;
1590 nbases_branches.reserve(ndirectbases);
1651 const std::string&
tn =
cr->GetName();
1662 if (!raw && !
deref)
return true;
1665 if (
cr.GetClass()) {
1666 TFunction* func =
cr->GetMethod(
"operator->",
"");
1668 func =
cr->GetMethod(
"operator->",
"");
1700 return (ptrdiff_t)0;
1706 return (ptrdiff_t)0;
1715 std::ostringstream
msg;
1716 msg <<
"failed offset calculation between " << cb->
GetName() <<
" and " << cd->
GetName();
1719 std::cerr <<
"Warning: " <<
msg.str() <<
'\n';
1742 return gROOT->GetListOfGlobalFunctions(
true)->GetSize();
1745 if (
cr.GetClass() &&
cr->GetListOfMethods(
true)) {
1749 if (
clName.find(
'<') != std::string::npos) {
1752 std::ostringstream
stmt;
1769 std::vector<TCppIndex_t> indices;
1771 if (
cr.GetClass()) {
1775 TIter next(
cr->GetListOfMethods());
1807 if (
cr.GetClass()) {
1820 const std::string&
name = ((CallWrapper*)
method)->fName;
1822 if (
name.compare(0, 8,
"operator") != 0)
1824 return name.substr(0,
name.find(
'<'));
1833 std::string
name = ((CallWrapper*)
method)->fName;
1852 return "constructor";
1853 std::string
restype =
f->GetReturnTypeName();
1860 if (
restype.find(
"int8_t") != std::string::npos)
1862 restype =
f->GetReturnTypeNormalizedName();
1864 std::ostringstream s;
1866 s <<
"__cling_internal::FT<decltype("
1869 if (i != 0) s <<
", ";
1914 if (
ft.rfind(
"enum ", 0) != std::string::npos) {
1916 return arg_type.insert(
arg_type.rfind(
"const ", 0) == std::string::npos ? 0 : 6,
"enum ");
1972 std::ostringstream sig;
1974 int nArgs =
f->GetNargs();
1998 std::ostringstream sig;
1999 sig <<
f->GetReturnTypeName() <<
" "
2000 <<
scName <<
"::" <<
f->GetName();
2026 if (
cr.GetClass()) {
2043 return cr->GetListOfFunctionTemplates(
false)->At((
int)
imeth)->GetName();
2047 assert(!
"should not be called unless GetNumTemplatedMethods() succeeded");
2057 if (
cr.GetClass()) {
2068 return (
bool)
gROOT->GetFunctionTemplate(
name.c_str());
2072 return (
bool)
cr->GetFunctionTemplate(
name.c_str());
2087 tf =
cr->GetFunctionTemplate(
name.c_str());
2090 if (!
tf)
return false;
2098 if (
cr.GetClass()) {
2100 if (
f &&
strstr(
f->GetName(),
"<"))
return true;
2105 if (((CallWrapper*)idx)->fName.find(
'<') != std::string::npos)
return true;
2115 n.erase(pos,
n.
end());
2120 if (
n1.back() ==
'>')
n1 =
n1.substr(0,
n1.size()-1);
2123 return n2.compare(0,
n1.size(),
n1) == 0;
2137 func =
gROOT->GetGlobalFunctionWithPrototype(
name.c_str(),
proto.c_str());
2138 if (func &&
name.back() ==
'>') {
2146 if (
cr.GetClass()) {
2147 func =
cr->GetMethodWithPrototype(
name.c_str(),
proto.c_str());
2149 cl =
cr->GetClassInfo();
2187 if (
name.back() ==
'>') {
2188 auto pos =
name.find(
'<');
2189 if (pos != std::string::npos) {
2194 if (
name.size() <
alt.size() &&
alt.find(
'<') == pos) {
2213 if (
n1 ==
"str" ||
n1 ==
"unicode") {
2214 if (
n2 ==
"std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >")
2216 return "std::string";
2217 }
else if (
n1 ==
"float") {
2219 }
else if (
n1 ==
"complex") {
2220 return "std::complex<double>";
2239 func =
gROOT->GetGlobalFunctionWithPrototype(
opname.c_str(),
proto.c_str());
2243 if (
cr.GetClass()) {
2245 if (func)
return (
TCppIndex_t)
cr->GetListOfMethods()->IndexOf(func);
2247 func =
cr->GetMethodWithPrototype(
opname.c_str(),
proto.c_str());
2248 if (func)
return (
TCppIndex_t)
cr->GetListOfMethods()->IndexOf(func);
2263 return f->Property() &
prop;
2271 return f->ExtraProperty() &
prop;
2311 return gROOT->GetListOfGlobals(
true)->GetSize();
2314 if (
cr.GetClass() &&
cr->GetListOfDataMembers())
2315 return cr->GetListOfDataMembers()->GetSize();
2323 if (
cr.GetClass()) {
2329 return gbl->GetName();
2336 std::string::size_type pos =
tpname.find(
"::", 0);
2337 while (pos != std::string::npos) {
2339 pos =
tpname.find(
"::", pos+1);
2350 if ((
int)
gbl->GetArrayDim()) {
2351 std::ostringstream s;
2352 for (
int i = 0; i < (
int)
gbl->GetArrayDim(); ++i)
2353 s <<
'[' <<
gbl->GetMaxIndex(i) <<
']';
2360 if (
cr.GetClass()) {
2369 const char*
ft =
m->GetFullTypeName(); std::string
fullType =
ft ?
ft :
"";
2370 const char*
tn =
m->GetTrueTypeName(); std::string
trueName =
tn ?
tn :
"";
2377 fullType.insert(
fullType.rfind(
"const ", 0) == std::string::npos ? 0 : 6,
"enum ");
2381 if ((
int)
m->GetArrayDim()) {
2382 std::ostringstream s;
2383 for (
int i = 0; i < (
int)
m->GetArrayDim(); ++i)
2384 s <<
'[' <<
m->GetMaxIndex(i) <<
']';
2392 auto declid =
m->GetTagDeclId();
2394 (
fullType.find(
"(anonymous)") != std::string::npos ||
fullType.find(
"(unnamed)") != std::string::npos)) {
2398 std::ostringstream
fulls;
2422 if (!
gbl->GetAddress() ||
gbl->GetAddress() == (
void*)-1) {
2424 intptr_t
addr = (intptr_t)
gInterpreter->ProcessLine((std::string(
"&")+
gbl->GetName()+
";").c_str());
2425 if (
gbl->GetAddress() &&
gbl->GetAddress() != (
void*)-1)
2426 return (intptr_t)
gbl->GetAddress();
2429 return (intptr_t)
gbl->GetAddress();
2433 if (
cr.GetClass()) {
2438 intptr_t
offset = (intptr_t)-1;
2442 offset = (intptr_t)
m->GetOffsetCint();
2444 if (
offset == (intptr_t)-1)
2445 return (intptr_t)
gInterpreter->ProcessLine((std::string(
"&")+
cr->GetName()+
"::"+
m->
GetName()+
";").c_str());
2447 offset = (intptr_t)
m->GetOffsetCint();
2451 return (intptr_t)-1;
2485 if (
gb &&
strcmp(
gb->GetFullTypeName(),
"(lambda)") == 0) {
2490 std::ostringstream s;
2491 s <<
"auto __cppyy_internal_wrap_" <<
name <<
" = "
2492 "new __cling_internal::FT<decltype(" <<
name <<
")>::F"
2493 "{" <<
name <<
"};";
2496 (
"__cppyy_internal_wrap_"+
name).c_str());
2497 if (wrap && wrap->GetAddress())
gb = wrap;
2504 if (
cr.GetClass()) {
2508 if (dm)
return (
TCppIndex_t)
cr->GetListOfDataMembers()->IndexOf(dm);
2568 if (
cr.GetClass()) {
2594 if (
cr.GetClass()) {
2596 std::string
ti =
m->GetTypeName();
2599 if (
ti.rfind(
"(anonymous)") != std::string::npos ||
ti.rfind(
"(unnamed)") != std::string::npos)
2604 if (
ti.rfind(
cr->GetName(), 0) != std::string::npos) {
2605 std::string::size_type s =
strlen(
cr->GetName())+2;
2606 if (s <
ti.size()) {
2622 return gbl->GetMaxIndex(dimension);
2625 if (
cr.GetClass()) {
2627 return m->GetMaxIndex(dimension);
2659 return (
long long)
ecst->GetValue();
static Roo_reg_AGKInteg1D instance
int Int_t
Signed integer 4 bytes (int)
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
long double LongDouble_t
Long Double (not portable)
long long Long64_t
Portable signed long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Int_t gErrorIgnoreLevel
errors with level below this value will be ignored. Default is kUnset.
R__EXTERN TExceptionHandler * gExceptionHandler
R__EXTERN ExceptionContext_t * gException
R__EXTERN void Throw(int code)
If an exception context has been set (using the TRY and RETRY macros) jump back to where it was set.
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 r
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 void char Point_t Rectangle_t WindowAttributes_t index
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 length
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 req_type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void funcs
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
R__EXTERN TSystem * gSystem
static struct Signalmap_t gSignalMap[kMAXSIGNALS]
const_iterator begin() const
const_iterator end() const
Each class (see TClass) has a linked list of its base class(es).
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
TClassRef is used to implement a permanent reference to a TClass object.
TClass * GetClass() const
TClass instances represent classes, structs and namespaces in the ROOT type system.
TList * GetListOfUsingDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of using declarations of a class.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
TMethod * GetMethod(const char *method, const char *params, Bool_t objectIsConst=kFALSE)
Find the best method (if there is one) matching the parameters.
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 Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
TList * GetListOfFunctionTemplates(Bool_t load=kTRUE)
Return TListOfFunctionTemplates for a class.
TList * GetListOfEnums(Bool_t load=kTRUE)
Return a list containing the TEnums of a class.
TList * GetListOfMethods(Bool_t load=kTRUE)
Return list containing the TMethods of a class.
TList * GetListOfDataMembers(Bool_t load=kTRUE)
Return list containing the TDataMembers of a class.
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
Bool_t IsLoaded() const
Return true if the shared library of this class is currently in the a process's memory.
ClassInfo_t * GetClassInfo() const
Long_t ClassProperty() const
Return the C++ property of this class, eg.
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.
TMethod * GetMethodAllAny(const char *method)
Return pointer to method without looking at parameters.
ROOT::DelFunc_t GetDelete() const
Return the wrapper around delete ThisObject.
TClass * GetActualClass(const void *object) const
Return a pointer to the real class of the object.
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.
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.
Basic data type descriptor (datatype information is obtained from CINT).
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
Int_t Size() const
Get size of basic typedef'ed type.
The TEnumConstant class implements the constants of the enum type.
The TEnum class implements the enum type.
const char * GetValue() const
const char * GetName() const override
Returns name of object.
Dictionary for function template This class describes one single function template.
Global functions class (global functions are obtained from CINT).
Long_t Property() const override
Get property description word. For meaning of bits see EProperty.
Long_t ExtraProperty() const
Get property description word. For meaning of bits see EProperty.
std::string GetReturnTypeNormalizedName() const
Get the normalized name of the return type.
Global variables class (global variables are obtained from CINT).
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
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...
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
Each ROOT method (see TMethod) has a linked list of its arguments.
const char * GetFullTypeName() const
Get full type description of method argument, e.g.: "class TDirectory*".
TypeInfo_t * GetTypeInfo() const
Get the TypeInfo of the method argument.
const char * GetDefault() const
Get default value of method argument.
std::string GetTypeNormalizedName() const
Get the normalized name of the return type.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetName() const
Returns name of object.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
static Bool_t Initialized()
Return kTRUE if the TROOT object has been initialized.
virtual void Exit(int code, Bool_t mode=kTRUE)
Exit the application.
virtual void StackTrace()
Print a stack trace.
static void cond_add(Cppyy::TCppScope_t scope, const std::string &ns_scope, std::set< std::string > &cppnames, const char *name, bool nofilter=false)
static bool testMethodProperty(Cppyy::TCppMethod_t method, EProperty prop)
static Name2ClassRefIndex_t g_name2classrefidx
#define FILL_COLL(type, filter)
static void remove_space(std::string &n)
static std::string outer_with_template(const std::string &name)
static std::string outer_no_template(const std::string &name)
static std::string type_remap(const std::string &n1, const std::string &n2)
static std::map< Cppyy::TCppType_t, bool > sHasOperatorDelete
static std::set< std::string > gRootSOs
static bool template_compare(std::string n1, std::string n2)
static TClassRef & type_from_handle(Cppyy::TCppScope_t scope)
static bool copy_args(Parameter *args, size_t nargs, void **vargs)
static TInterpreter::CallFuncIFacePtr_t GetCallFunc(Cppyy::TCppMethod_t method)
CPyCppyy::Parameter Parameter
static bool is_missclassified_stl(const std::string &name)
std::map< std::string, ClassRefs_t::size_type > Name2ClassRefIndex_t
static const ClassRefs_t::size_type STD_HANDLE
static std::set< std::string > gSmartPtrTypes
static GlobalVars_t g_globalvars
static char * cppstring_to_cstring(const std::string &cppstr)
static void release_args(Parameter *args, size_t nargs)
static std::set< std::string > g_builtins
static std::vector< CallWrapper * > gWrapperHolder
static bool gEnableFastPath
static ClassRefs_t g_classrefs(1)
static bool WrapperCall(Cppyy::TCppMethod_t method, size_t nargs, void *args_, void *self, void *result)
static std::map< std::string, std::string > resolved_enum_types
static Cppyy::TCppIndex_t gb2idx(TGlobal *gb)
static size_t CALL_NARGS(size_t nargs)
static CallWrapper * new_CallWrapper(TFunction *f)
static std::set< std::string > gSTLNames
static const ClassRefs_t::size_type GLOBAL_HANDLE
static GlobalVarsIndices_t g_globalidx
static bool testMethodExtraProperty(Cppyy::TCppMethod_t method, EFunctionProperty prop)
static int count_scopes(const std::string &tpname)
std::vector< TGlobal * > GlobalVars_t
std::map< TGlobal *, GlobalVars_t::size_type > GlobalVarsIndices_t
std::vector< TClassRef > ClassRefs_t
static std::map< TDictionary::DeclId_t, CallWrapper * > gMethodTemplates
static bool match_name(const std::string &tname, const std::string fname)
static TFunction * m2f(Cppyy::TCppMethod_t method)
#define CPPYY_IMP_CALL(typecode, rtype)
static std::set< std::string > gInitialNames
static T CallT(Cppyy::TCppMethod_t method, Cppyy::TCppObject_t self, size_t nargs, void *args)
Cppyy::TCppIndex_t GetLongestInheritancePath(TClass *klass)
Retrieve number of base classes in the longest branch of the inheritance tree of the input class.
RPY_EXPORTED TCppIndex_t GetNumTemplatedMethods(TCppScope_t scope, bool accept_namespace=false)
RPY_EXPORTED std::string GetMethodMangledName(TCppMethod_t)
RPY_EXPORTED TCppObject_t CallO(TCppMethod_t method, TCppObject_t self, size_t nargs, void *args, TCppType_t result_type)
RPY_EXPORTED TCppIndex_t CompareMethodArgType(TCppMethod_t, TCppIndex_t iarg, const std::string &req_type)
RPY_EXPORTED ptrdiff_t GetBaseOffset(TCppType_t derived, TCppType_t base, TCppObject_t address, int direction, bool rerror=false)
RPY_EXPORTED void DeallocateFunctionArgs(void *args)
RPY_EXPORTED bool IsEnumData(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED bool IsAbstract(TCppType_t type)
RPY_EXPORTED bool IsIntegerType(const std::string &type_name)
RPY_EXPORTED size_t SizeOf(TCppType_t klass)
RPY_EXPORTED TCppObject_t CallConstructor(TCppMethod_t method, TCppType_t type, size_t nargs, void *args)
RPY_EXPORTED void * AllocateFunctionArgs(size_t nargs)
RPY_EXPORTED bool IsDefaultConstructable(TCppType_t type)
RPY_EXPORTED bool IsTemplate(const std::string &template_name)
RPY_EXPORTED TCppIndex_t GetDatamemberIndexEnumerated(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED TCppIndex_t GetMethodReqArgs(TCppMethod_t)
RPY_EXPORTED bool IsEnum(const std::string &type_name)
RPY_EXPORTED std::vector< TCppIndex_t > GetMethodIndicesFromName(TCppScope_t scope, const std::string &name)
RPY_EXPORTED bool ExistsMethodTemplate(TCppScope_t scope, const std::string &name)
RPY_EXPORTED TCppIndex_t GetNumDatamembers(TCppScope_t scope, bool accept_namespace=false)
RPY_EXPORTED std::string ToString(TCppType_t klass, TCppObject_t obj)
RPY_EXPORTED std::string GetMethodName(TCppMethod_t)
RPY_EXPORTED bool IsConstData(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED void AddSmartPtrType(const std::string &)
RPY_EXPORTED bool Compile(const std::string &code, bool silent=false)
RPY_EXPORTED void CallDestructor(TCppType_t type, TCppObject_t self)
RPY_EXPORTED TCppScope_t gGlobalScope
RPY_EXPORTED bool IsProtectedData(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED std::string GetMethodSignature(TCppMethod_t, bool show_formalargs, TCppIndex_t maxargs=(TCppIndex_t) -1)
RPY_EXPORTED int GetDimensionSize(TCppScope_t scope, TCppIndex_t idata, int dimension)
RPY_EXPORTED bool IsSubtype(TCppType_t derived, TCppType_t base)
RPY_EXPORTED TCppMethod_t GetMethodTemplate(TCppScope_t scope, const std::string &name, const std::string &proto)
RPY_EXPORTED bool IsConstructor(TCppMethod_t method)
RPY_EXPORTED TCppIndex_t GetNumMethods(TCppScope_t scope, bool accept_namespace=false)
RPY_EXPORTED TCppObject_t Construct(TCppType_t type, void *arena=nullptr)
RPY_EXPORTED bool GetSmartPtrInfo(const std::string &, TCppType_t *raw, TCppMethod_t *deref)
RPY_EXPORTED std::string GetMethodArgName(TCppMethod_t, TCppIndex_t iarg)
RPY_EXPORTED size_t GetFunctionArgTypeoffset()
RPY_EXPORTED TCppObject_t Allocate(TCppType_t type)
RPY_EXPORTED void Destruct(TCppType_t type, TCppObject_t instance)
RPY_EXPORTED std::string ResolveName(const std::string &cppitem_name)
RPY_EXPORTED void AddTypeReducer(const std::string &reducable, const std::string &reduced)
RPY_EXPORTED std::string ResolveEnum(const std::string &enum_type)
RPY_EXPORTED long long GetEnumDataValue(TCppEnum_t, TCppIndex_t idata)
RPY_EXPORTED bool IsAggregate(TCppType_t type)
RPY_EXPORTED TCppIndex_t GetMethodNumArgs(TCppMethod_t)
RPY_EXPORTED TCppType_t GetActualClass(TCppType_t klass, TCppObject_t obj)
RPY_EXPORTED std::string GetBaseName(TCppType_t type, TCppIndex_t ibase)
RPY_EXPORTED bool IsNamespace(TCppScope_t scope)
RPY_EXPORTED std::string GetScopedFinalName(TCppType_t type)
RPY_EXPORTED void Deallocate(TCppType_t type, TCppObject_t instance)
RPY_EXPORTED bool IsPublicData(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED std::string GetMethodArgType(TCppMethod_t, TCppIndex_t iarg)
RPY_EXPORTED std::string GetEnumDataName(TCppEnum_t, TCppIndex_t idata)
RPY_EXPORTED void GetAllCppNames(TCppScope_t scope, std::set< std::string > &cppnames)
RPY_EXPORTED bool IsComplete(const std::string &type_name)
RPY_EXPORTED bool IsBuiltin(const std::string &type_name)
RPY_EXPORTED bool IsStaticMethod(TCppMethod_t method)
RPY_EXPORTED TCppIndex_t GetDatamemberIndex(TCppScope_t scope, const std::string &name)
RPY_EXPORTED void CallV(TCppMethod_t method, TCppObject_t self, size_t nargs, void *args)
RPY_EXPORTED bool IsStaticData(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED std::string GetDatamemberType(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED TCppMethod_t GetMethod(TCppScope_t scope, TCppIndex_t imeth)
RPY_EXPORTED bool IsStaticTemplate(TCppScope_t scope, const std::string &name)
RPY_EXPORTED bool IsDestructor(TCppMethod_t method)
RPY_EXPORTED bool IsSmartPtr(TCppType_t type)
RPY_EXPORTED std::string GetTemplatedMethodName(TCppScope_t scope, TCppIndex_t imeth)
RPY_EXPORTED size_t GetFunctionArgSizeof()
RPY_EXPORTED TCppScope_t GetScope(const std::string &scope_name)
RPY_EXPORTED bool HasVirtualDestructor(TCppType_t type)
RPY_EXPORTED bool IsConstMethod(TCppMethod_t)
RPY_EXPORTED bool HasComplexHierarchy(TCppType_t type)
RPY_EXPORTED std::vector< TCppScope_t > GetUsingNamespaces(TCppScope_t)
RPY_EXPORTED bool IsTemplatedConstructor(TCppScope_t scope, TCppIndex_t imeth)
RPY_EXPORTED TCppIndex_t GetGlobalOperator(TCppType_t scope, const std::string &lc, const std::string &rc, const std::string &op)
RPY_EXPORTED TCppFuncAddr_t GetFunctionAddress(TCppMethod_t method, bool check_enabled=true)
RPY_EXPORTED TCppIndex_t GetNumEnumData(TCppEnum_t)
RPY_EXPORTED TCppIndex_t GetNumBases(TCppType_t type)
RPY_EXPORTED TCppIndex_t GetNumBasesLongestBranch(TCppType_t type)
RPY_EXPORTED std::string GetMethodPrototype(TCppScope_t scope, TCppMethod_t, bool show_formalargs)
RPY_EXPORTED std::string GetMethodResultType(TCppMethod_t)
RPY_EXPORTED std::string GetFinalName(TCppType_t type)
RPY_EXPORTED char * CallS(TCppMethod_t method, TCppObject_t self, size_t nargs, void *args, size_t *length)
RPY_EXPORTED bool IsExplicit(TCppMethod_t method)
RPY_EXPORTED std::string GetMethodArgDefault(TCppMethod_t, TCppIndex_t iarg)
RPY_EXPORTED bool IsMethodTemplate(TCppScope_t scope, TCppIndex_t imeth)
RPY_EXPORTED std::string GetDatamemberName(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED bool IsPublicMethod(TCppMethod_t method)
RPY_EXPORTED intptr_t GetDatamemberOffset(TCppScope_t scope, TCppIndex_t idata)
RPY_EXPORTED std::string GetMethodFullName(TCppMethod_t)
RPY_EXPORTED bool IsProtectedMethod(TCppMethod_t method)
RPY_EXPORTED TCppEnum_t GetEnum(TCppScope_t scope, const std::string &enum_name)
void(* DelFunc_t)(void *)
std::string ResolveTypedef(const char *tname, bool resolveAll=false)
std::string CleanType(const char *typeDesc, int mode=0, const char **tail=nullptr)
Cleanup type description, redundant blanks removed and redundant tail ignored return *tail = pointer ...
std::string ShortType(const char *typeDesc, int mode)
Return the absolute type of typeDesc.
char * DemangleName(const char *mangled_name, int &errorCode)
union CPyCppyy::Parameter::Value fValue