GridFire 0.6.0
General Purpose Nuclear Network
|
Base class for solver callback contexts. More...
#include <solver.h>
Public Member Functions | |
virtual | ~SolverContextBase ()=default |
virtual std::vector< std::tuple< std::string, std::string > > | describe () const =0 |
Describe the context for callback functions. | |
Base class for solver callback contexts.
This struct serves as a base class for contexts that can be passed to solver callbacks, it enforces that derived classes implement a describe
method that returns a vector of tuples describing the context that a callback will receive when called.
|
virtualdefault |
|
pure virtual |
Describe the context for callback functions.
This method should be overridden by derived classes to provide a description of the context that will be passed to the callback function. The intent of this method is that an end user can investigate the context that will be passed to the callback function, and use this information to craft their own callback function.
Implemented in gridfire::solver::DirectNetworkSolver::TimestepContext.