12#ifndef POPULATION_DYNAMICS_AGE_TO_LENGTH_CONVERSION_FIXED_HPP
13#define POPULATION_DYNAMICS_AGE_TO_LENGTH_CONVERSION_FIXED_HPP
34template <
typename Type>
38 std::weak_ptr<Fleet<Type>>
fleet;
74 fleet_ptr->age_to_length_conversion.size() ==
109 fleet_ptr->age_to_length_conversion.size() !=
Declares the AgeToLengthConversionBase class which is the base class for all age-length key functors.
Definition fims_vector.hpp:27
Declare the fleet functor class which is the base class for all fleet functors.
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
Base interface for age-length key implementations.
Definition base.hpp:26
Fixed age-to-length conversion implementation using a fleet's stored age-to-length conversion matrix.
Definition fixed.hpp:35
AgeToLengthConversionFixed(const std::shared_ptr< Fleet< Type > > &fleet)
Constructor.
Definition fixed.hpp:45
std::weak_ptr< Fleet< Type > > fleet
Definition fixed.hpp:38
virtual bool BuildAgeToLengthConversionRow(size_t year, size_t age, fims::Vector< Type > &out_row) const override
Builds the fixed age-to-length conversion row for a given age.
Definition fixed.hpp:92
virtual ~AgeToLengthConversionFixed()
Destructor.
Definition fixed.hpp:51
virtual bool PrepareForCurrentState() override
Prepare the fixed-matrix age-to-length conversion for the current model state.
Definition fixed.hpp:83
virtual bool IsActive() const override
Returns whether this fixed-matrix age-to-length conversion is active and usable.
Definition fixed.hpp:58
Base class for all fleets.
Definition fleet.hpp:26