tekka
|
Component of Population; Container of Individual. More...
#include <population.hpp>
Public Member Functions | |
std::vector< ShPtrIndividual > & | operator[] (Sex x) |
Getter of adults. | |
const std::vector< ShPtrIndividual > & | operator[] (Sex x) const |
Getter of adults. | |
size_t | size () const |
The number of adults. | |
void | clear () |
Remove all adults. | |
Public Attributes | |
std::array< std::vector< ShPtrIndividual >, 2 > | adults {} |
Array of shared pointers to Individual's. Females and males are separately stored for Population::reproduce(). | |
std::vector< ShPtrIndividual > | juveniles {} |
First-year individuals separated for Population::sample(). | |
std::map< int_fast32_t, std::vector< ShPtrIndividual > > | samples {} |
Samples: {capture_year => individuals}. | |
std::vector< std::array< std::vector< uint_fast32_t >, 4 > > | demography {} |
[[[count for each age] for season] for year] | |
Component of Population; Container of Individual.