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

Method getExtensionPyObject

src/App/Link.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173PyObject* LinkBaseExtension::getExtensionPyObject()
174{
175 if (ExtensionPythonObject.is(Py::_None())) {
176 // ref counter is set to 1
177 ExtensionPythonObject = Py::Object(new LinkBaseExtensionPy(this), true);
178 }
179 return Py::new_reference_to(ExtensionPythonObject);
180}
181
182const std::vector<LinkBaseExtension::PropInfo>& LinkBaseExtension::getPropertyInfo() const
183{

Callers 3

initializationMethod · 0.45
getCustomAttributesMethod · 0.45
addExtensionMethod · 0.45

Calls 4

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

Tested by

no test coverage detected