SEVN
Loading...
Searching...
No Matches
NMLDisabled Class Referenceabstract

#include <neutrinomassloss.h>

Inheritance diagram for NMLDisabled:
NeutrinoMassLoss

Public Member Functions

 NMLDisabled (bool reg=true)
 
std::string name () const override
 
NMLDisabledinstance () 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 NeutrinoMassLossInstance (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...
 

Detailed Description

option disabled

Do nothing, do not apply any correction for neutrino mass loss

Constructor & Destructor Documentation

◆ NMLDisabled()

NMLDisabled::NMLDisabled ( bool  reg = true)

Member Function Documentation

◆ apply() [1/2]

virtual double NeutrinoMassLoss::apply ( _UNUSED const double  mremnant,
_UNUSED Star s 
) const
pure virtualinherited

Estimate the neutrino mass loss correction

Parameters
mremnantMass of the remnant before the pair instability correction
sPointer to the exploding star to which we want to apply the correction
Returns
Mass after the neutrino mass loss correction

◆ apply() [2/2]

double NMLDisabled::apply ( const double  mremnant,
_UNUSED Star s 
) const
inlineoverride

Estimate the neutrino mass loss correction, in this disabled version do nothing, just return mremnant

Parameters
mremnantMass of the remnant before the pair instability correction
sPointer to the exploding star to which we want to apply the correction
Returns
mremnant

◆ GetStaticMap()

static std::map< std::string, NeutrinoMassLoss * > & NeutrinoMassLoss::GetStaticMap ( )
inlinestaticprivateinherited

Option handling.

◆ GetUsed()

static std::vector< int > & NeutrinoMassLoss::GetUsed ( )
inlinestaticprivateinherited

TODO we are never using this method, we should remove it.

◆ instance()

NMLDisabled * NMLDisabled::instance ( )
inlineoverridevirtual

Create an instance of the class allocated on the heap

Returns
a pointer to a real instance of the class that is allocated on the heap

Implements NeutrinoMassLoss.

◆ Instance()

NeutrinoMassLoss * NeutrinoMassLoss::Instance ( std::string const &  name)
staticinherited

Generic method to call an instance based on name

Parameters
namename of the option
Returns
a pointer to a real instance of the class that is allocated on the heap

◆ name()

std::string NMLDisabled::name ( ) const
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.

◆ Register()

void NeutrinoMassLoss::Register ( NeutrinoMassLoss ptr)
staticprotectedinherited

Register function, to be called inside the option constructor to register the given option

Member Data Documentation

◆ _nmldisabled

NMLDisabled NMLDisabled::_nmldisabled
static

◆ svlog

SevnLogging NeutrinoMassLoss::svlog
protectedinherited

The documentation for this class was generated from the following files: