| 1153 | } |
| 1154 | |
| 1155 | Py::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 | |
| 1169 | void Expression::addComponent(Component *component) { |
| 1170 | assert(component); |
no test coverage detected