FIMS  v0.10.0
Loading...
Searching...
No Matches
base.hpp
Go to the documentation of this file.
1
11#ifndef POPULATION_DYNAMICS_AGE_TO_LENGTH_CONVERSION_BASE_HPP
12#define POPULATION_DYNAMICS_AGE_TO_LENGTH_CONVERSION_BASE_HPP
13
14#include <cstddef>
15
18
19namespace fims_popdy {
20
25template <typename Type>
27 static uint32_t id_g;
31 }
32
34
40 virtual bool IsActive() const = 0;
41
47 virtual bool PrepareForCurrentState() = 0;
48
57 size_t year, size_t age, fims::Vector<Type>& out_row) const = 0;
58};
59
60template <typename Type>
62 0;
64} // namespace fims_popdy
65
66#endif /* POPULATION_DYNAMICS_AGE_TO_LENGTH_CONVERSION_BASE_HPP */
Definition fims_vector.hpp:27
Establishes the FIMS Vector class.
Definition of the FIMSObject structure.
The population dynamics of FIMS.
Definition catch_at_age.hpp:45
std::shared_ptr< AgeToLengthConversionBase< Type > > BuildAgeToLengthConversionFleet(const std::shared_ptr< Population< Type > > &population, const std::shared_ptr< Fleet< Type > > &fleet)
Build the active age-to-length conversion for a fleet from the current population and fleet state.
Definition runtime.hpp:44
FIMSObject struct that defines member types and returns the unique id.
Definition model_object.hpp:55
Base interface for age-length key implementations.
Definition base.hpp:26
virtual bool IsActive() const =0
Returns whether this age-to-length conversion is active and valid for use.
virtual bool PrepareForCurrentState()=0
Prepare this age-to-length conversion for the current model state.
static uint32_t id_g
Definition base.hpp:27
virtual bool BuildAgeToLengthConversionRow(size_t year, size_t age, fims::Vector< Type > &out_row) const =0
Builds the age-to-length conversion row for a given year and age.