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) |
void | modify_militancy (sys::state &state, dcon::nation_id n, float v) |
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 1878 of file demographics.cpp.
void demographics::alt_mt_regenerate_from_pop_data | ( | sys::state & | state | ) |
Definition at line 868 of file demographics.cpp.
void demographics::alt_regenerate_from_pop_data_daily | ( | sys::state & | state | ) |
Definition at line 1870 of file demographics.cpp.
void demographics::alt_regenerate_from_pop_data_full | ( | sys::state & | state | ) |
Definition at line 1873 of file demographics.cpp.
void demographics::alt_st_regenerate_from_pop_data | ( | sys::state & | state | ) |
Definition at line 1361 of file demographics.cpp.
void demographics::alt_sum_over_demographics | ( | sys::state & | state, |
dcon::demographics_key | key, | ||
F const & | source | ||
) |
Definition at line 215 of file demographics.cpp.
void demographics::apply_assimilation | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
assimilation_buffer & | pbuf | ||
) |
Definition at line 3844 of file demographics.cpp.
void demographics::apply_colonial_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3884 of file demographics.cpp.
void demographics::apply_ideologies | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
ideology_buffer & | pbuf | ||
) |
Definition at line 2414 of file demographics.cpp.
void demographics::apply_immigration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3903 of file demographics.cpp.
void demographics::apply_internal_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3865 of file demographics.cpp.
void demographics::apply_issues | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
issues_buffer & | pbuf | ||
) |
Definition at line 2543 of file demographics.cpp.
void demographics::apply_type_changes | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
promotion_buffer & | pbuf | ||
) |
Definition at line 3829 of file demographics.cpp.
float demographics::calculate_nation_sol | ( | sys::state & | state, |
dcon::nation_id | nation_id | ||
) |
Definition at line 3944 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 3658 of file demographics.cpp.
void demographics::execute_staggered_blocks | ( | uint32_t | offset, |
uint32_t | divisions, | ||
uint32_t | max, | ||
F && | functor | ||
) |
Definition at line 1938 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 2867 of file demographics.cpp.
float demographics::get_estimated_assimilation | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3194 of file demographics.cpp.
float demographics::get_estimated_colonial_migration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3570 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 2167 of file demographics.cpp.
float demographics::get_estimated_demotion | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3071 of file demographics.cpp.
float demographics::get_estimated_emigration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3696 of file demographics.cpp.
float demographics::get_estimated_internal_migration | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 3496 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 2267 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 2061 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 3035 of file demographics.cpp.
float demographics::get_estimated_type_change | ( | sys::state & | state, |
dcon::pop_id | ids | ||
) |
Definition at line 2998 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 2608 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::modify_militancy | ( | sys::state & | state, |
dcon::nation_id | n, | ||
float | v | ||
) |
Definition at line 3979 of file demographics.cpp.
void demographics::pexecute_staggered_blocks | ( | uint32_t | offset, |
uint32_t | divisions, | ||
uint32_t | max, | ||
F && | functor | ||
) |
Definition at line 1953 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 3971 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 863 of file demographics.cpp.
void demographics::regenerate_from_pop_data_full | ( | sys::state & | state | ) |
Definition at line 860 of file demographics.cpp.
void demographics::regenerate_jingoism_support | ( | sys::state & | state, |
dcon::nation_id | n | ||
) |
Definition at line 278 of file demographics.cpp.
void demographics::remove_size_zero_pops | ( | sys::state & | state | ) |
Definition at line 3924 of file demographics.cpp.
void demographics::remove_small_pops | ( | sys::state & | state | ) |
Definition at line 3934 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 189 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 167 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::ideology_id | v | ||
) |
Definition at line 171 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::issue_option_id | v | ||
) |
Definition at line 174 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::pop_type_id | v | ||
) |
Definition at line 159 of file demographics.cpp.
dcon::demographics_key demographics::to_key | ( | sys::state const & | state, |
dcon::religion_id | v | ||
) |
Definition at line 177 of file demographics.cpp.
|
inlineconstexpr |
void demographics::update_assimilation | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
assimilation_buffer & | pbuf | ||
) |
Definition at line 3107 of file demographics.cpp.
void demographics::update_colonial_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3518 of file demographics.cpp.
void demographics::update_consciousness | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2122 of file demographics.cpp.
void demographics::update_growth | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2567 of file demographics.cpp.
void demographics::update_ideologies | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
ideology_buffer & | ibuf | ||
) |
Definition at line 2299 of file demographics.cpp.
void demographics::update_immigration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3601 of file demographics.cpp.
void demographics::update_internal_migration | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
migration_buffer & | pbuf | ||
) |
Definition at line 3456 of file demographics.cpp.
void demographics::update_issues | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
issues_buffer & | ibuf | ||
) |
Definition at line 2440 of file demographics.cpp.
void demographics::update_literacy | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 2210 of file demographics.cpp.
void demographics::update_militancy | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions | ||
) |
Definition at line 1961 of file demographics.cpp.
void demographics::update_type_changes | ( | sys::state & | state, |
uint32_t | offset, | ||
uint32_t | divisions, | ||
promotion_buffer & | pbuf | ||
) |
Definition at line 2659 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 169 of file demographics.hpp.
|
inlineconstexpr |
Definition at line 1935 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 252 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 2438 of file demographics.cpp.
|
inlineconstexpr |
Definition at line 157 of file demographics.cpp.