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

ModelContext(Model *model)

initialize backup of the original values.

  • model:

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.