Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
create_herbivore_cohort.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020 W. Traylor <wolfgang.traylor@senckenberg.de>
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
11#ifndef CREATE_HERBIVORE_COHORT
12#define CREATE_HERBIVORE_COHORT
13
15#include "herbivore_cohort.h"
16
17namespace Fauna {
18
21 public:
23
24 CreateHerbivoreCohort(const std::shared_ptr<const Hft> hft,
25 const std::shared_ptr<const Parameters> parameters)
27
29
37 virtual HerbivoreCohort operator()(const double ind_per_km2,
38 const int age_years, Sex sex) const;
39};
40} // namespace Fauna
41
42#endif // CREATE_HERBIVORE_COHORT
Function class constructing HerbivoreCohort objects.
Definition: create_herbivore_cohort.h:20
CreateHerbivoreCohort(const std::shared_ptr< const Hft > hft, const std::shared_ptr< const Parameters > parameters)
Constructor.
Definition: create_herbivore_cohort.h:24
virtual HerbivoreCohort operator()(const double ind_per_km2, const int age_years, Sex sex) const
Create a new object instance.
Definition: create_herbivore_cohort.cpp:16
Parent class for CreateHerbivoreCohort.
Definition: create_herbivore_common.h:26
const std::shared_ptr< const Hft > hft
Definition: create_herbivore_common.h:43
const std::shared_ptr< const Parameters > parameters
Definition: create_herbivore_common.h:44
A herbivore cohort (age-class)
Definition: herbivore_cohort.h:25
Base class for creating herbivore cohorts.
Implementation of Fauna::HerbivoreBase as annual cohorts.
Definition: average.h:16
Sex
The sex of a herbivore.
Definition: herbivore_base.h:25