23 template <
typename BC>
Enums for observer messages.
Implementation of the observer design pattern with broadcasters.
NonLinearSolverMessages
Enum class defining non-linear solver-related messages.
Definition: broadcastermessages.hh:22
Definition: assemblermanipulatorbuildingblocks.hh:22
Definition: listener.hh:27
auto subscribe(Broadcaster &broadcaster, F &&f)
Function to subscribe to a broadcaster with a given function (either a lambda, std::function or funct...
Definition: listener.hh:43
Implementation of an observer for logging non-linear solvers.This class inherits from the IObserver c...
Definition: nonlinearsolverlogger.hh:21
void updateImpl(NonLinearSolverMessages message, int intVal)
Handles the update when a NonLinearSolverMessages with an integer value is received.
NonLinearSolverLogger & subscribeTo(BC &bc)
Definition: nonlinearsolverlogger.hh:24
void updateImpl(NonLinearSolverMessages message, double val)
Handles the update when a NonLinearSolverMessages with a double value is received.
void updateImpl(NonLinearSolverMessages message)
Handles the update when a NonLinearSolverMessages is received.