Project Alice
|
Namespaces | |
namespace | impl |
Classes | |
struct | assimilation_buffer |
struct | ideology_buffer |
struct | issues_buffer |
struct | migration_buffer |
struct | promotion_buffer |
Functions | |
dcon::demographics_key | to_key (sys::state const &state, dcon::pop_type_id v) |
dcon::demographics_key | to_employment_key (sys::state const &state, dcon::pop_type_id v) |
dcon::demographics_key | to_key (sys::state const &state, dcon::culture_id v) |
dcon::demographics_key | to_key (sys::state const &state, dcon::ideology_id v) |
dcon::demographics_key | to_key (sys::state const &state, dcon::issue_option_id v) |
dcon::demographics_key | to_key (sys::state const &state, dcon::religion_id v) |
uint32_t | size (sys::state const &state) |
uint32_t | common_size (sys::state const &state) |
template<typename F > | |
void | sum_over_demographics (sys::state &state, dcon::demographics_key key, F const &source) |
template<typename F > | |
void | alt_sum_over_demographics (sys::state &state, dcon::demographics_key key, F const &source) |
void | alt_copy_demographics (sys::state &state, dcon::demographics_key key) |
template<typename F > | |
void | sum_over_single_nation_demographics (sys::state &state, dcon::demographics_key key, dcon::nation_id n, F const &source) |
void | regenerate_jingoism_support (sys::state &state, dcon::nation_id n) |
template<bool full> | |
void | regenerate_from_pop_data (sys::state &state) |
void | regenerate_from_pop_data_full (sys::state &state) |
void | regenerate_from_pop_data_daily (sys::state &state) |
template<bool full> | |
void | alt_mt_regenerate_from_pop_data (sys::state &state) |
template<bool full> | |
void | alt_st_regenerate_from_pop_data (sys::state &state) |
void | alt_regenerate_from_pop_data_daily (sys::state &state) |
void | alt_regenerate_from_pop_data_full (sys::state &state) |
void | alt_demographics_update_extras (sys::state &state) |
template<typename F > | |
void | execute_staggered_blocks (uint32_t offset, uint32_t divisions, uint32_t max, F &&functor) |
template<typename F > | |
void | pexecute_staggered_blocks (uint32_t offset, uint32_t divisions, uint32_t max, F &&functor) |
void | update_militancy (sys::state &state, uint32_t offset, uint32_t divisions) |
float | get_estimated_mil_change (sys::state &state, dcon::pop_id ids) |
float | get_estimated_mil_change (sys::state &state, dcon::nation_id n) |
void | update_consciousness (sys::state &state, uint32_t offset, uint32_t divisions) |
float | get_estimated_con_change (sys::state &state, dcon::pop_id ids) |
float | get_estimated_con_change (sys::state &state, dcon::nation_id n) |
void | update_literacy (sys::state &state, uint32_t offset, uint32_t divisions) |
float | get_estimated_literacy_change (sys::state &state, dcon::pop_id ids) |
float | get_estimated_literacy_change (sys::state &state, dcon::nation_id n) |
void | update_ideologies (sys::state &state, uint32_t offset, uint32_t divisions, ideology_buffer &ibuf) |
void | apply_ideologies (sys::state &state, uint32_t offset, uint32_t divisions, ideology_buffer &pbuf) |
void | update_issues (sys::state &state, uint32_t offset, uint32_t divisions, issues_buffer &ibuf) |
void | apply_issues (sys::state &state, uint32_t offset, uint32_t divisions, issues_buffer &pbuf) |
void | update_growth (sys::state &state, uint32_t offset, uint32_t divisions) |
float | get_monthly_pop_increase (sys::state &state, dcon::pop_id ids) |
int64_t | get_monthly_pop_increase (sys::state &state, dcon::nation_id n) |
int64_t | get_monthly_pop_increase (sys::state &state, dcon::state_instance_id n) |
int64_t | get_monthly_pop_increase (sys::state &state, dcon::province_id n) |
void | update_type_changes (sys::state &state, uint32_t offset, uint32_t divisions, promotion_buffer &pbuf) |
float | get_effective_estimation_type_change (sys::state &state, dcon::nation_id nation, dcon::pop_type_id target_type) |
float | get_estimated_type_change (sys::state &state, dcon::pop_id ids) |
float | get_estimated_promotion (sys::state &state, dcon::pop_id ids) |
float | get_estimated_demotion (sys::state &state, dcon::pop_id ids) |
void | update_assimilation (sys::state &state, uint32_t offset, uint32_t divisions, assimilation_buffer &pbuf) |
float | get_estimated_assimilation (sys::state &state, dcon::pop_id ids) |
void | update_internal_migration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
float | get_estimated_internal_migration (sys::state &state, dcon::pop_id ids) |
void | update_colonial_migration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
float | get_estimated_colonial_migration (sys::state &state, dcon::pop_id ids) |
void | update_immigration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
void | estimate_directed_immigration (sys::state &state, dcon::nation_id n, std::vector< float > &national_amounts) |
float | get_estimated_emigration (sys::state &state, dcon::pop_id ids) |
void | apply_type_changes (sys::state &state, uint32_t offset, uint32_t divisions, promotion_buffer &pbuf) |
void | apply_assimilation (sys::state &state, uint32_t offset, uint32_t divisions, assimilation_buffer &pbuf) |
void | apply_internal_migration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
void | apply_colonial_migration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
void | apply_immigration (sys::state &state, uint32_t offset, uint32_t divisions, migration_buffer &pbuf) |
void | remove_size_zero_pops (sys::state &state) |
void | remove_small_pops (sys::state &state) |
float | calculate_nation_sol (sys::state &state, dcon::nation_id nation_id) |
void | reduce_pop_size_safe (sys::state &state, dcon::pop_id pop_id, int32_t amount) |
constexpr dcon::demographics_key | total (0) |
constexpr dcon::demographics_key | employable (1) |
constexpr dcon::demographics_key | employed (2) |
constexpr dcon::demographics_key | consciousness (3) |
constexpr dcon::demographics_key | militancy (4) |
constexpr dcon::demographics_key | literacy (5) |
constexpr dcon::demographics_key | political_reform_desire (6) |
constexpr dcon::demographics_key | social_reform_desire (7) |
constexpr dcon::demographics_key | poor_militancy (8) |
constexpr dcon::demographics_key | middle_militancy (9) |
constexpr dcon::demographics_key | rich_militancy (10) |
constexpr dcon::demographics_key | poor_life_needs (11) |
constexpr dcon::demographics_key | middle_life_needs (12) |
constexpr dcon::demographics_key | rich_life_needs (13) |
constexpr dcon::demographics_key | poor_everyday_needs (14) |
constexpr dcon::demographics_key | middle_everyday_needs (15) |
constexpr dcon::demographics_key | rich_everyday_needs (16) |
constexpr dcon::demographics_key | poor_luxury_needs (17) |
constexpr dcon::demographics_key | middle_luxury_needs (18) |
constexpr dcon::demographics_key | rich_luxury_needs (19) |
constexpr dcon::demographics_key | poor_total (20) |
constexpr dcon::demographics_key | middle_total (21) |
constexpr dcon::demographics_key | rich_total (22) |
float | get_estimated_promotion (sys::state &state, dcon::nation_id n) |
Variables | |
constexpr float | small_pop_size = 100.0f |
constexpr uint32_t | extra_demo_grouping = 8 |
constexpr uint32_t | executions_per_block = 16 / ve::vector_size |
constexpr float | issues_change_rate = 0.20f |
constexpr uint32_t | count_special_keys = 23 |
void demographics::alt_copy_demographics | ( | sys::state & | state, |
dcon::demographics_key | key | ||
) |
void demographics::alt_demographics_update_extras | ( | sys::state & | state | ) |
Definition at line 1860 of file demographics.cpp.
void demographics::alt_mt_regenerate_from_pop_data | ( | sys::state & | state | ) |
Definition at line 850 of file demographics.cpp.
void demographics::alt_regenerate_from_pop_data_daily | ( | sys::state & | state | ) |
Definition at line 1852 of file demographics.cpp.
void demographics::alt_regenerate_from_pop_data_full | ( | sys::state & | state | ) |
Definition at line 1855 of file demographics.cpp.
void demographics::alt_st_regenerate_from_pop_data | ( | sys::state & | state | ) |
Definition at line 1343 of file demographics.cpp.
void demographics::alt_sum_over_demographics | ( | sys::state & | state, |
dcon::demographics_key | key, | ||
F const & | source | ||
) |
Definition at line 197 of file demographics.cpp.
void demographics::apply_assimilation | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
assimilation_buffer & | pbuf | ||
) |
Definition at line 3826 of file demographics.cpp.
void demographics::apply_colonial_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3866 of file demographics.cpp.
void demographics::apply_ideologies | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
ideology_buffer & | pbuf | ||
) |
Definition at line 2396 of file demographics.cpp.
void demographics::apply_immigration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3885 of file demographics.cpp.
void demographics::apply_internal_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3847 of file demographics.cpp.
void demographics::apply_issues | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
issues_buffer & | pbuf | ||
) |
Definition at line 2525 of file demographics.cpp.
void demographics::apply_type_changes | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
promotion_buffer & | pbuf | ||
) |
Definition at line 3811 of file demographics.cpp.
float demographics::calculate_nation_sol | ( | sys::state & | state, |
dcon::nation_id | nation_id | ||
) |
Definition at line 3926 of file demographics.cpp.
uint32_t demographics::common_size | ( | sys::state const & | state | ) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
void demographics::estimate_directed_immigration | ( | sys::state & | state, |
dcon::nation_id | n, | ||
std::vector< float > & | national_amounts | ||
) |
Definition at line 3640 of file demographics.cpp.
void demographics::execute_staggered_blocks | ( | uint32_t | offset, |
uint32_t | divisions, | ||
uint32_t | max, | ||
F && | functor | ||
) |
Definition at line 1920 of file demographics.cpp.
float demographics::get_effective_estimation_type_change | ( | sys::state & | state, |
dcon::nation_id | nation, | ||
dcon::pop_type_id | target_type | ||
) |
Definition at line 2849 of file demographics.cpp.
float demographics::get_estimated_assimilation | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3176 of file demographics.cpp.
float demographics::get_estimated_colonial_migration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3552 of file demographics.cpp.
float demographics::get_estimated_con_change | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float demographics::get_estimated_con_change | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2149 of file demographics.cpp.
float demographics::get_estimated_demotion | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3053 of file demographics.cpp.
float demographics::get_estimated_emigration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3678 of file demographics.cpp.
float demographics::get_estimated_internal_migration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3478 of file demographics.cpp.
float demographics::get_estimated_literacy_change | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float demographics::get_estimated_literacy_change | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2249 of file demographics.cpp.
float demographics::get_estimated_mil_change | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float demographics::get_estimated_mil_change | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2043 of file demographics.cpp.
float demographics::get_estimated_promotion | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float demographics::get_estimated_promotion | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3017 of file demographics.cpp.
float demographics::get_estimated_type_change | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2980 of file demographics.cpp.
int64_t demographics::get_monthly_pop_increase | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
float demographics::get_monthly_pop_increase | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2590 of file demographics.cpp.
int64_t demographics::get_monthly_pop_increase | ( | sys::state & | state, |
dcon::province_id | n | ||
) |
int64_t demographics::get_monthly_pop_increase | ( | sys::state & | state, |
dcon::state_instance_id | n | ||
) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
void demographics::pexecute_staggered_blocks | ( | uint32_t | offset, |
uint32_t | divisions, | ||
uint32_t | max, | ||
F && | functor | ||
) |
Definition at line 1935 of file demographics.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
void demographics::reduce_pop_size_safe | ( | sys::state & | state, |
dcon::pop_id | pop_id, | ||
int32_t | amount | ||
) |
Definition at line 3953 of file demographics.cpp.
void demographics::regenerate_from_pop_data | ( | sys::state & | state | ) |
void demographics::regenerate_from_pop_data_daily | ( | sys::state & | state | ) |
Definition at line 845 of file demographics.cpp.
void demographics::regenerate_from_pop_data_full | ( | sys::state & | state | ) |
Definition at line 842 of file demographics.cpp.
void demographics::regenerate_jingoism_support | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 260 of file demographics.cpp.
void demographics::remove_size_zero_pops | ( | sys::state & | state | ) |
Definition at line 3906 of file demographics.cpp.
void demographics::remove_small_pops | ( | sys::state & | state | ) |
Definition at line 3916 of file demographics.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
uint32_t demographics::size | ( | sys::state const & | state | ) |
|
inlineconstexpr |
void demographics::sum_over_demographics | ( | sys::state & | state, |
dcon::demographics_key | key, | ||
F const & | source | ||
) |
Definition at line 171 of file demographics.cpp.
void demographics::sum_over_single_nation_demographics | ( | sys::state & | state, |
dcon::demographics_key | key, | ||
dcon::nation_id | n, | ||
F const & | source | ||
) |
dcon::demographics_key demographics::to_employment_key | ( | sys::state const & | state, |
dcon::pop_type_id | v | ||
) |
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::culture_id | v | ||
) |
Definition at line 149 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::ideology_id | v | ||
) |
Definition at line 153 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::issue_option_id | v | ||
) |
Definition at line 156 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::pop_type_id | v | ||
) |
Definition at line 141 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::religion_id | v | ||
) |
Definition at line 159 of file demographics.cpp.
|
inlineconstexpr |
void demographics::update_assimilation | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
assimilation_buffer & | pbuf | ||
) |
Definition at line 3089 of file demographics.cpp.
void demographics::update_colonial_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3500 of file demographics.cpp.
void demographics::update_consciousness | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2104 of file demographics.cpp.
void demographics::update_growth | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2549 of file demographics.cpp.
void demographics::update_ideologies | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
ideology_buffer & | ibuf | ||
) |
Definition at line 2281 of file demographics.cpp.
void demographics::update_immigration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3583 of file demographics.cpp.
void demographics::update_internal_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3438 of file demographics.cpp.
void demographics::update_issues | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
issues_buffer & | ibuf | ||
) |
Definition at line 2422 of file demographics.cpp.
void demographics::update_literacy | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2192 of file demographics.cpp.
void demographics::update_militancy | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 1943 of file demographics.cpp.
void demographics::update_type_changes | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
promotion_buffer & | pbuf | ||
) |
Definition at line 2641 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 166 of file demographics.hpp.
|
inlineconstexpr |
Definition at line 1917 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 234 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 2420 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 139 of file demographics.cpp.