@@ -809,6 +809,19 @@ Cppyy::TCppScope_t Cppyy::GetGlobalScope()
809809 return Cpp::GetGlobalScope ();
810810}
811811
812+ bool Cppyy::IsMethod (TCppScope_t handle) {
813+ return Cpp::IsMethod (handle);
814+ }
815+
816+ bool Cppyy::IsFunction (TCppScope_t handle) {
817+ return Cpp::IsFunction (handle);
818+ }
819+
820+ bool Cppyy::IsTemplateClass (TCppScope_t handle)
821+ {
822+ return Cpp::IsTemplateClass (handle);
823+ }
824+
812825bool Cppyy::IsTemplate (TCppScope_t handle)
813826{
814827 return Cpp::IsTemplate (handle);
@@ -1105,6 +1118,13 @@ bool Cppyy::IsNamespace(TCppScope_t scope)
11051118 return Cpp::IsNamespace (scope) || Cpp::GetGlobalScope () == scope;
11061119}
11071120
1121+ bool Cppyy::IsPureNamespace (TCppScope_t scope)
1122+ {
1123+ if (!scope)
1124+ return false ;
1125+ return Cpp::IsNamespace (scope);
1126+ }
1127+
11081128bool Cppyy::IsClass (TCppScope_t scope)
11091129{
11101130 // Test if this scope represents a namespace.
@@ -1475,6 +1495,11 @@ std::string Cppyy::GetMethodReturnTypeAsString(TCppMethod_t method)
14751495 Cpp::GetFunctionReturnType (method)));
14761496}
14771497
1498+ Cppyy::TCppIndex_t Cppyy::GetTemplateNumArgs (Cpp::TCppScope_t method)
1499+ {
1500+ return Cpp::GetTemplateNumArgs (method);
1501+ }
1502+
14781503Cppyy::TCppIndex_t Cppyy::GetMethodNumArgs (TCppMethod_t method)
14791504{
14801505 return Cpp::GetFunctionNumArgs (method);
@@ -1485,6 +1510,9 @@ Cppyy::TCppIndex_t Cppyy::GetMethodReqArgs(TCppMethod_t method)
14851510 return Cpp::GetFunctionRequiredArgs (method);
14861511}
14871512
1513+ std::string Cppyy::GetTemplateArgName (TCppScope_t scope, TCppIndex_t iarg) {
1514+ return Cpp::GetTemplateArgName (scope, iarg);
1515+ }
14881516std::string Cppyy::GetMethodArgName (TCppMethod_t method, TCppIndex_t iarg)
14891517{
14901518 if (!method)
@@ -1609,6 +1637,11 @@ bool Cppyy::ExistsMethodTemplate(TCppScope_t scope, const std::string& name)
16091637}
16101638
16111639bool Cppyy::IsTemplatedMethod (TCppMethod_t method)
1640+ {
1641+ return Cpp::IsTemplatedFunction (method) || Cpp::IsTemplateInstantiationOrSpecialization (method);
1642+ }
1643+
1644+ bool Cppyy::IsPureTemplatedMethod (TCppMethod_t method)
16121645{
16131646 return Cpp::IsTemplatedFunction (method);
16141647}
@@ -1901,6 +1934,14 @@ Cppyy::TCppScope_t Cppyy::AdaptFunctionForLambdaReturn(TCppScope_t fn) {
19011934// return count;
19021935// }
19031936
1937+ void Cppyy::GetMemberInNamespace (TCppScope_t ns, std::vector<TCppScope_t>& members) {
1938+ Cpp::GetDatamembersInNamespace (ns, members);
1939+ Cpp::GetFunctionsInNamespace (ns, members);
1940+ Cpp::GetClassInNamespace (ns, members);
1941+ Cpp::GetTemplatedClassInNamespace (ns, members);
1942+ Cpp::GetTemplatedFunctionsInNamespace (ns, members);
1943+ }
1944+
19041945Cppyy::TCppType_t Cppyy::GetDatamemberType (TCppScope_t var)
19051946{
19061947 return Cpp::GetVariableType (Cpp::GetUnderlyingScope (var));
0 commit comments