Class ModelContext

Inheritance Relationships

Base Type

Class Documentation

class amici::ModelContext : public amici::ContextManager

The ModelContext temporarily stores amici::Model::state and restores it when going out of scope.

Public Functions

explicit ModelContext(Model *model)

initialize backup of the original values.



ModelContext &operator=(const ModelContext &other) = delete
void restore()

Restore original state on constructor-supplied amici::Model. Will be called during destruction. Explicit call is generally not necessary.