|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Instances of this class template are callables that serve as callback functions for applying cooling to the grid. More...
Public Member Functions | |
| CoolingUpdateExecutor (CoolingRecipe recipe) | |
| void | operator() (Grid3D &grid) const |
Instances of this class template are callables that serve as callback functions for applying cooling to the grid.
In more detail:
std::function and then returned to the rest of Chollastd::function performs type-erasure on its contents. Essentially, the rest of Cholla is totally agnostic about which function is contained by std::function (essentially, a std::function instance is a more general-purpose kind of function pointer that can be used on any callable like a callable struct with some associated state or an ordinary function)