FIMS  v0.10.0
Loading...
Searching...
No Matches
runtime.hpp File Reference

Shared runtime helpers for constructing and validating fleet age-to-length conversions. More...

#include <cstddef>
#include <memory>
#include <sstream>
#include <stdexcept>
#include "base.hpp"
#include "fixed.hpp"
#include "derived.hpp"
#include "population_dynamics/population/population.hpp"

Go to the source code of this file.

Namespaces

namespace  fims_popdy
 The population dynamics of FIMS.
 

Functions

template<typename Type >
std::shared_ptr< AgeToLengthConversionBase< Type > > fims_popdy::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.
 
template<typename Type >
void fims_popdy::EnsureAgeToLengthConversionFleet (const std::shared_ptr< Population< Type > > &population, const std::shared_ptr< Fleet< Type > > &fleet)
 Ensure a fleet has an active age-to-length conversion before length-based calculations.
 
template<typename Type >
void fims_popdy::EnsurePopulationFleetAgeToLengthConversion (const std::shared_ptr< Population< Type > > &population)
 Ensure all fleets linked to a population have a usable age-to-length conversion.
 

Detailed Description

Shared runtime helpers for constructing and validating fleet age-to-length conversions.