MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getAllDerivedFrom

Method getAllDerivedFrom

src/Base/BaseClassPyImp.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51PyObject* BaseClassPy::getAllDerivedFrom(PyObject* args) const
52{
53 if (!PyArg_ParseTuple(args, "")) {
54 return nullptr;
55 }
56
57 std::vector<Base::Type> ary;
58 Type::getAllDerivedFrom(getBaseClassPtr()->getTypeId(), ary);
59 Py::List res;
60 for (const auto& it : ary) {
61 res.append(toPyString(it.getName()));
62 }
63 return Py::new_reference_to(res);
64}
65
66Py::String BaseClassPy::getTypeId() const
67{

Callers

nothing calls this directly

Calls 5

toPyStringFunction · 0.85
new_reference_toFunction · 0.85
getTypeIdMethod · 0.45
appendMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected