11#ifndef POPULATION_DYNAMICS_SELECTIVITY_BASE_HPP
12#define POPULATION_DYNAMICS_SELECTIVITY_BASE_HPP
23template <
typename Type>
36 this->
id = SelectivityBase::id_g++;
47 virtual const Type
evaluate(
const Type& x) = 0;
55 virtual const Type
evaluate(
const Type& x,
size_t pos) = 0;
59template <
typename Type>
60uint32_t SelectivityBase<Type>::id_g = 0;
Definition of the FIMSObject structure.
The population dynamics of FIMS.
Definition catch_at_age.hpp:45
void register_self(const uint32_t id)
Registers a FIMSObject instance with the memory tracker.
Definition model_object.hpp:35
FIMSObject struct that defines member types and returns the unique id.
Definition model_object.hpp:55
Base class for all selectivity functors.
Definition selectivity_base.hpp:24
virtual const Type evaluate(const Type &x, size_t pos)=0
Calculates the selectivity.
virtual const Type evaluate(const Type &x)=0
Calculates the selectivity.
SelectivityBase()
Constructor.
Definition selectivity_base.hpp:34