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

Method getInst

src/python/handler/module.h:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 template<class Ty>
58 Ty* getInst() const
59 {
60 if (!inst) throw py::RuntimeError{ "inst is null" };
61 return static_cast<Ty*>(inst.get());
62 }
63
64 template<class Ty>
65 Ty* getInstDynamic() const

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected