1 #ifndef PYELEMENTS_PYABSTRACTTIMEDEPENDENCE_H
2 #define PYELEMENTS_PYABSTRACTTIMEDEPENDENCE_H
8 namespace PyAbstractTimeDependence {
11 "Update the TimeDependence and then calculate the value at a give time\n"
12 "- t [float]: time at which to evaluate the function\n"
13 "Returns the function value.\n";
17 std::shared_ptr<C> objectPtr = pyobject.getOpalShared();
19 std::string
name = objectPtr->getOpalName();
20 std::shared_ptr<AbstractTimeDependence> model =
22 double value = model->getValue(t);
29 #endif // PYELEMENTS_PYABSTRACTTIMEDEPENDENCE_H
std::string functionDocstring
static std::shared_ptr< AbstractTimeDependence > getTimeDependence(std::string name)