MCPcopy Create free account
hub / github.com/bab2min/tomotopy / method

Method method

src/python/handler/PyUtils.h:2975–2987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2973
2974 template<auto memFn>
2975 constexpr auto method(const char* name) const
2976 {
2977 constexpr auto fn = []() {
2978 if constexpr (detail::IsPObject<Ty>::value) return detail::compose<&Ty::value, memFn>;
2979 else return memFn;
2980 }();
2981 auto ret = TypeDefinition<Ty, BaseTy, defs..., methodDef<fn, METH_VARARGS | METH_KEYWORDS>>{
2982 typeName, typeNameInModule, typeFlags,
2983 methodNames, propertyNames, slots
2984 };
2985 ret.methodNames.emplace_back(name);
2986 return ret;
2987 }
2988
2989 template<auto memFn>
2990 constexpr auto staticMethod(const char* name) const

Callers

nothing calls this directly

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected