![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
A small class to hold the pointers to active population managers. More...
#include <PopulationManager.h>
Public Member Functions | |
PopulationManagerList () | |
void | SetPopulation (std::shared_ptr< Population_Manager_Base > p_pm, int a_pt) |
int | GetPopulationManagerNum (int a_pt) |
Returns the number of population manager,. More... | |
Population_Manager_Base * | GetPopulation (int a_pt, int a_index=0) |
std::shared_ptr< Population_Manager_Base > | GetPopulation_smart (int a_pt, int a_index=0) |
int | SupplyActivePopulationsCount () |
returns the number of active populations O(1) More... | |
Protected Attributes | |
std::vector< std::shared_ptr< Population_Manager_Base > > | m_populationlist [static_cast< int >(TOP_foobar)] |
std::array< bool, TOP_foobar > | m_populationarray {false} |
A small class to hold the pointers to active population managers.
|
inline |
References m_populationlist.
Referenced by Osmia_Population_Manager::Init(), and RunTheSim().
|
inline |
References m_populationlist.
Referenced by SetOutputFiles().
|
inline |
|
inline |
int PopulationManagerList::SupplyActivePopulationsCount | ( | ) |
returns the number of active populations O(1)
References m_populationarray.
|
protected |
Referenced by SetPopulation(), and SupplyActivePopulationsCount().
|
protected |
Referenced by GetPopulation(), GetPopulation_smart(), GetPopulationManagerNum(), and SetPopulation().