11#ifndef FAUNA_COHORT_POPULATION_H
12#define FAUNA_COHORT_POPULATION_H
53 typedef std::list<HerbivoreCohort>
List;
A population of HerbivoreCohort objects.
Definition: cohort_population.h:24
virtual void create_offspring(const double ind_per_km2)
Give birth to new herbivores.
Definition: cohort_population.cpp:35
virtual ConstHerbivoreVector get_list() const
Get pointers to the herbivores (including dead ones).
Definition: cohort_population.cpp:90
const CreateHerbivoreCohort create_cohort
Definition: cohort_population.h:76
virtual void kill_nonviable()
Mark those herbivores as dead that are not viable.
Definition: cohort_population.cpp:112
virtual const Hft & get_hft() const
Definition: cohort_population.h:37
List list
Offspring accumulated until above minimum threshold [ind/km²].
Definition: cohort_population.h:78
List::iterator find_cohort(const int age_years, const Sex sex)
Find a cohort in the list.
Definition: cohort_population.cpp:81
virtual void establish()
Create a set of new herbivores to establish a population.
Definition: cohort_population.cpp:47
virtual void purge_of_dead()
Delete all dead herbivores.
Definition: cohort_population.cpp:120
void create_offspring_by_sex(const Sex sex, double ind_per_km2)
Add newborn animals to the population either males or females.
Definition: cohort_population.cpp:20
std::list< HerbivoreCohort > List
Definition: cohort_population.h:53
Function class constructing HerbivoreCohort objects.
Definition: create_herbivore_cohort.h:20
const Hft & get_hft() const
The herbivore functional type.
Definition: create_herbivore_common.cpp:41
One herbivore functional type (i.e. one species).
Definition: hft.h:310
Construct new herbivore cohort objects.
Sex
The sex of a herbivore.
Definition: herbivore_base.h:25
std::vector< HerbivoreInterface * > HerbivoreVector
A list of herbivore interface pointers.
Definition: herbivore_vector.h:20
std::vector< const HerbivoreInterface * > ConstHerbivoreVector
A list of read-only herbivore interface pointers.
Definition: herbivore_vector.h:23
Abstract class for any population of herbivores.
A container of herbivore objects.
Definition: population_interface.h:29