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

Method initFromPython

src/python/handler/PyUtils.h:1922–1926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1920
1921 template<class InitArgs, size_t ...idx>
1922 PY_STRONG_INLINE static void initFromPython(PObject* self, PyObject* args, std::index_sequence<idx...>)
1923 {
1924 self->value.~Ty();
1925 new (&self->value) Ty{ toCpp<std::tuple_element_t<idx, InitArgs>>(PyTuple_GetItem(args, idx))... };
1926 }
1927
1928 static int init(PObject* self, PyObject* args, PyObject* kwargs)
1929 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected