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

Method binary

src/python/handler/PyUtils.h:2653–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2651
2652 template<T ptr>
2653 static constexpr binaryfunc binary()
2654 {
2655 return (binaryfunc)[](PyObject* self, PyObject* arg)->PyObject*
2656 {
2657 return handleExc([&]()
2658 {
2659 return buildPyValue(Base::template binary<ptr>((typename Base::ClassType*)self, arg)).release();
2660 });
2661 };
2662 }
2663
2664 template<T ptr>
2665 static constexpr ternaryfunc ternary()

Callers

nothing calls this directly

Calls 3

handleExcFunction · 0.85
buildPyValueFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected