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

Method initialiseObject

src/App/Expression.cpp:2086–2095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084}
2085
2086void FunctionExpression::initialiseObject(const Py::Object *object, const std::vector<Expression*> &arguments, const unsigned long offset)
2087{
2088 if (arguments.size() > offset) {
2089 Py::Tuple constructorArguments(arguments.size() - offset);
2090 for (unsigned i = offset; i < arguments.size(); ++i)
2091 constructorArguments.setItem(i - offset, arguments[i]->getPyValue());
2092 Py::Dict kwd;
2093 PyObjectBase::__PyInit(object->ptr(), constructorArguments.ptr(), kwd.ptr());
2094 }
2095}
2096
2097Py::Object FunctionExpression::transformFirstArgument(
2098 const Expression* expression,

Callers

nothing calls this directly

Calls 4

__PyInitFunction · 0.85
sizeMethod · 0.45
getPyValueMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected