![]() |
SEVN
|
#include <neutrinomassloss.h>
Public Member Functions | |
| NMLDisabled (bool reg=true) | |
| std::string | name () const override |
| NMLDisabled * | instance () override |
| double | apply (const double mremnant, _UNUSED Star *s) const override |
| virtual double | apply (_UNUSED const double mremnant, _UNUSED Star *s) const =0 |
Static Public Member Functions | |
| static NeutrinoMassLoss * | Instance (std::string const &name) |
Static Public Attributes | |
| static NMLDisabled | _nmldisabled |
Static Protected Member Functions | |
| static void | Register (NeutrinoMassLoss *ptr) |
Protected Attributes | |
| SevnLogging | svlog |
Static Private Member Functions | |
| static std::map< std::string, NeutrinoMassLoss * > & | GetStaticMap () |
| Option handling. More... | |
| static std::vector< int > & | GetUsed () |
| TODO we are never using this method, we should remove it. More... | |
option disabled
Do nothing, do not apply any correction for neutrino mass loss
| NMLDisabled::NMLDisabled | ( | bool | reg = true | ) |
Estimate the neutrino mass loss correction, in this disabled version do nothing, just return mremnant
| mremnant | Mass of the remnant before the pair instability correction |
| s | Pointer to the exploding star to which we want to apply the correction |
|
inlinestaticprivateinherited |
Option handling.
|
inlinestaticprivateinherited |
TODO we are never using this method, we should remove it.
|
inlineoverridevirtual |
Create an instance of the class allocated on the heap
Implements NeutrinoMassLoss.
|
staticinherited |
Generic method to call an instance based on name
| name | name of the option |
|
inlineoverridevirtual |
Remember that each new proper NeutrinoMassLoss model has to have a public static class instance to define in static_main.h e.g. static MyModel _mymodel; (in the class) and MyModel MyModel::_mymodel; in static_main.h Methods that must be overridded in new models Name of the NeutrinoMassLoss model, this will be use at runtime to select the given model
Reimplemented from NeutrinoMassLoss.
|
staticprotectedinherited |
Register function, to be called inside the option constructor to register the given option
|
static |
|
protectedinherited |