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

Method getPyObject

src/App/DocumentObject.cpp:1108–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1106}
1107
1108PyObject* DocumentObject::getPyObject()
1109{
1110 if (PythonObject.is(Py::_None())) {
1111 // ref counter is set to 1
1112 PythonObject = Py::Object(new DocumentObjectPy(this), true);
1113 }
1114 return Py::new_reference_to(PythonObject);
1115}
1116
1117DocumentObject* DocumentObject::getSubObject(const char* subname,
1118 PyObject** pyObj,

Callers

nothing calls this directly

Calls 4

_NoneFunction · 0.85
new_reference_toFunction · 0.85
ObjectClass · 0.70
isMethod · 0.45

Tested by

no test coverage detected