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

Method getPyValue

src/App/Expression.cpp:1155–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155Py::Object Expression::getPyValue() const {
1156 try {
1157 Py::Object pyobj = _getPyValue();
1158 if(!components.empty()) {
1159 for(auto &c : components)
1160 pyobj = c->get(this,pyobj);
1161 }
1162 return pyobj;
1163 }catch(Py::Exception &) {
1164 EXPR_PY_THROW(this);
1165 }
1166 return Py::Object();
1167}
1168
1169void Expression::addComponent(Component *component) {
1170 assert(component);

Callers 13

evalExpressionMethod · 0.45
getMethod · 0.45
setMethod · 0.45
delMethod · 0.45
calcFunction · 0.45
evalAggregateMethod · 0.45
initialiseObjectMethod · 0.45
extractVectorArgumentMethod · 0.45
evaluateMethod · 0.45

Calls 3

ObjectClass · 0.70
emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected