Class ModelContext

Inheritance Relationships

Base Type

Class Documentation

class 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.

Parameters:

model

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

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