Project Alice
Loading...
Searching...
No Matches
demographics Namespace Reference

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
 

Function Documentation

◆ alt_copy_demographics()

void demographics::alt_copy_demographics ( sys::state state,
dcon::demographics_key  key 
)

Definition at line 222 of file demographics.cpp.

Here is the call graph for this function:

◆ alt_demographics_update_extras()

void demographics::alt_demographics_update_extras ( sys::state state)

Definition at line 1860 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alt_mt_regenerate_from_pop_data()

template<bool full>
void demographics::alt_mt_regenerate_from_pop_data ( sys::state state)

Definition at line 850 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alt_regenerate_from_pop_data_daily()

void demographics::alt_regenerate_from_pop_data_daily ( sys::state state)

Definition at line 1852 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alt_regenerate_from_pop_data_full()

void demographics::alt_regenerate_from_pop_data_full ( sys::state state)

Definition at line 1855 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alt_st_regenerate_from_pop_data()

template<bool full>
void demographics::alt_st_regenerate_from_pop_data ( sys::state state)

Definition at line 1343 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ alt_sum_over_demographics()

template<typename F >
void demographics::alt_sum_over_demographics ( sys::state state,
dcon::demographics_key  key,
F const &  source 
)

Definition at line 197 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_assimilation()

void demographics::apply_assimilation ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
assimilation_buffer pbuf 
)

Definition at line 3826 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_colonial_migration()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_ideologies()

void demographics::apply_ideologies ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
ideology_buffer pbuf 
)

Definition at line 2396 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_immigration()

void demographics::apply_immigration ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
migration_buffer pbuf 
)

Definition at line 3885 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_internal_migration()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_issues()

void demographics::apply_issues ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
issues_buffer pbuf 
)

Definition at line 2525 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_type_changes()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_nation_sol()

float demographics::calculate_nation_sol ( sys::state state,
dcon::nation_id  nation_id 
)

Definition at line 3926 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ common_size()

uint32_t demographics::common_size ( sys::state const &  state)

Definition at line 166 of file demographics.cpp.

Here is the caller graph for this function:

◆ consciousness()

constexpr dcon::demographics_key demographics::consciousness ( )
inlineconstexpr
Here is the caller graph for this function:

◆ employable()

constexpr dcon::demographics_key demographics::employable ( )
inlineconstexpr
Here is the caller graph for this function:

◆ employed()

constexpr dcon::demographics_key demographics::employed ( )
inlineconstexpr
Here is the caller graph for this function:

◆ estimate_directed_immigration()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute_staggered_blocks()

template<typename F >
void demographics::execute_staggered_blocks ( uint32_t  offset,
uint32_t  divisions,
uint32_t  max,
F &&  functor 
)

Definition at line 1920 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_effective_estimation_type_change()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_assimilation()

float demographics::get_estimated_assimilation ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3176 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_colonial_migration()

float demographics::get_estimated_colonial_migration ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3552 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_con_change() [1/2]

float demographics::get_estimated_con_change ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2180 of file demographics.cpp.

Here is the call graph for this function:

◆ get_estimated_con_change() [2/2]

float demographics::get_estimated_con_change ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 2149 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_demotion()

float demographics::get_estimated_demotion ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3053 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_emigration()

float demographics::get_estimated_emigration ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3678 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_internal_migration()

float demographics::get_estimated_internal_migration ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3478 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_literacy_change() [1/2]

float demographics::get_estimated_literacy_change ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2270 of file demographics.cpp.

Here is the call graph for this function:

◆ get_estimated_literacy_change() [2/2]

float demographics::get_estimated_literacy_change ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 2249 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_mil_change() [1/2]

float demographics::get_estimated_mil_change ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2093 of file demographics.cpp.

Here is the call graph for this function:

◆ get_estimated_mil_change() [2/2]

float demographics::get_estimated_mil_change ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 2043 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_promotion() [1/2]

float demographics::get_estimated_promotion ( sys::state state,
dcon::nation_id  n 
)

◆ get_estimated_promotion() [2/2]

float demographics::get_estimated_promotion ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 3017 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_estimated_type_change()

float demographics::get_estimated_type_change ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 2980 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_monthly_pop_increase() [1/4]

int64_t demographics::get_monthly_pop_increase ( sys::state state,
dcon::nation_id  n 
)

Definition at line 2613 of file demographics.cpp.

Here is the call graph for this function:

◆ get_monthly_pop_increase() [2/4]

float demographics::get_monthly_pop_increase ( sys::state state,
dcon::pop_id  ids 
)

Definition at line 2590 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_monthly_pop_increase() [3/4]

int64_t demographics::get_monthly_pop_increase ( sys::state state,
dcon::province_id  n 
)

Definition at line 2633 of file demographics.cpp.

Here is the call graph for this function:

◆ get_monthly_pop_increase() [4/4]

int64_t demographics::get_monthly_pop_increase ( sys::state state,
dcon::state_instance_id  n 
)

Definition at line 2623 of file demographics.cpp.

Here is the call graph for this function:

◆ literacy()

constexpr dcon::demographics_key demographics::literacy ( )
inlineconstexpr
Here is the caller graph for this function:

◆ middle_everyday_needs()

constexpr dcon::demographics_key demographics::middle_everyday_needs ( 15  )
inlineconstexpr
Here is the caller graph for this function:

◆ middle_life_needs()

constexpr dcon::demographics_key demographics::middle_life_needs ( 12  )
inlineconstexpr
Here is the caller graph for this function:

◆ middle_luxury_needs()

constexpr dcon::demographics_key demographics::middle_luxury_needs ( 18  )
inlineconstexpr
Here is the caller graph for this function:

◆ middle_militancy()

constexpr dcon::demographics_key demographics::middle_militancy ( )
inlineconstexpr
Here is the caller graph for this function:

◆ middle_total()

constexpr dcon::demographics_key demographics::middle_total ( 21  )
inlineconstexpr
Here is the caller graph for this function:

◆ militancy()

constexpr dcon::demographics_key demographics::militancy ( )
inlineconstexpr
Here is the caller graph for this function:

◆ pexecute_staggered_blocks()

template<typename F >
void demographics::pexecute_staggered_blocks ( uint32_t  offset,
uint32_t  divisions,
uint32_t  max,
F &&  functor 
)

Definition at line 1935 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ political_reform_desire()

constexpr dcon::demographics_key demographics::political_reform_desire ( )
inlineconstexpr
Here is the caller graph for this function:

◆ poor_everyday_needs()

constexpr dcon::demographics_key demographics::poor_everyday_needs ( 14  )
inlineconstexpr
Here is the caller graph for this function:

◆ poor_life_needs()

constexpr dcon::demographics_key demographics::poor_life_needs ( 11  )
inlineconstexpr
Here is the caller graph for this function:

◆ poor_luxury_needs()

constexpr dcon::demographics_key demographics::poor_luxury_needs ( 17  )
inlineconstexpr
Here is the caller graph for this function:

◆ poor_militancy()

constexpr dcon::demographics_key demographics::poor_militancy ( )
inlineconstexpr
Here is the caller graph for this function:

◆ poor_total()

constexpr dcon::demographics_key demographics::poor_total ( 20  )
inlineconstexpr
Here is the caller graph for this function:

◆ reduce_pop_size_safe()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ regenerate_from_pop_data()

template<bool full>
void demographics::regenerate_from_pop_data ( sys::state state)

Definition at line 271 of file demographics.cpp.

Here is the call graph for this function:

◆ regenerate_from_pop_data_daily()

void demographics::regenerate_from_pop_data_daily ( sys::state state)

Definition at line 845 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ regenerate_from_pop_data_full()

void demographics::regenerate_from_pop_data_full ( sys::state state)

Definition at line 842 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ regenerate_jingoism_support()

void demographics::regenerate_jingoism_support ( sys::state state,
dcon::nation_id  n 
)

Definition at line 260 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_size_zero_pops()

void demographics::remove_size_zero_pops ( sys::state state)

Definition at line 3906 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_small_pops()

void demographics::remove_small_pops ( sys::state state)

Definition at line 3916 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rich_everyday_needs()

constexpr dcon::demographics_key demographics::rich_everyday_needs ( 16  )
inlineconstexpr
Here is the caller graph for this function:

◆ rich_life_needs()

constexpr dcon::demographics_key demographics::rich_life_needs ( 13  )
inlineconstexpr
Here is the caller graph for this function:

◆ rich_luxury_needs()

constexpr dcon::demographics_key demographics::rich_luxury_needs ( 19  )
inlineconstexpr
Here is the caller graph for this function:

◆ rich_militancy()

constexpr dcon::demographics_key demographics::rich_militancy ( 10  )
inlineconstexpr
Here is the caller graph for this function:

◆ rich_total()

constexpr dcon::demographics_key demographics::rich_total ( 22  )
inlineconstexpr
Here is the caller graph for this function:

◆ size()

uint32_t demographics::size ( sys::state const &  state)

Definition at line 163 of file demographics.cpp.

Here is the caller graph for this function:

◆ social_reform_desire()

constexpr dcon::demographics_key demographics::social_reform_desire ( )
inlineconstexpr
Here is the caller graph for this function:

◆ sum_over_demographics()

template<typename F >
void demographics::sum_over_demographics ( sys::state state,
dcon::demographics_key  key,
F const &  source 
)

Definition at line 171 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sum_over_single_nation_demographics()

template<typename F >
void demographics::sum_over_single_nation_demographics ( sys::state state,
dcon::demographics_key  key,
dcon::nation_id  n,
F const &  source 
)

Definition at line 237 of file demographics.cpp.

Here is the caller graph for this function:

◆ to_employment_key()

dcon::demographics_key demographics::to_employment_key ( sys::state const &  state,
dcon::pop_type_id  v 
)

Definition at line 145 of file demographics.cpp.

Here is the caller graph for this function:

◆ to_key() [1/5]

dcon::demographics_key demographics::to_key ( sys::state const &  state,
dcon::culture_id  v 
)

Definition at line 149 of file demographics.cpp.

◆ to_key() [2/5]

dcon::demographics_key demographics::to_key ( sys::state const &  state,
dcon::ideology_id  v 
)

Definition at line 153 of file demographics.cpp.

◆ to_key() [3/5]

dcon::demographics_key demographics::to_key ( sys::state const &  state,
dcon::issue_option_id  v 
)

Definition at line 156 of file demographics.cpp.

◆ to_key() [4/5]

dcon::demographics_key demographics::to_key ( sys::state const &  state,
dcon::pop_type_id  v 
)

Definition at line 141 of file demographics.cpp.

◆ to_key() [5/5]

dcon::demographics_key demographics::to_key ( sys::state const &  state,
dcon::religion_id  v 
)

Definition at line 159 of file demographics.cpp.

◆ total()

constexpr dcon::demographics_key demographics::total ( )
inlineconstexpr

◆ update_assimilation()

void demographics::update_assimilation ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
assimilation_buffer pbuf 
)

Definition at line 3089 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_colonial_migration()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_consciousness()

void demographics::update_consciousness ( sys::state state,
uint32_t  offset,
uint32_t  divisions 
)

Definition at line 2104 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_growth()

void demographics::update_growth ( sys::state state,
uint32_t  offset,
uint32_t  divisions 
)

Definition at line 2549 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_ideologies()

void demographics::update_ideologies ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
ideology_buffer ibuf 
)

Definition at line 2281 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_immigration()

void demographics::update_immigration ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
migration_buffer pbuf 
)

Definition at line 3583 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_internal_migration()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_issues()

void demographics::update_issues ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
issues_buffer ibuf 
)

Definition at line 2422 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_literacy()

void demographics::update_literacy ( sys::state state,
uint32_t  offset,
uint32_t  divisions 
)

Definition at line 2192 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_militancy()

void demographics::update_militancy ( sys::state state,
uint32_t  offset,
uint32_t  divisions 
)

Definition at line 1943 of file demographics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_type_changes()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ count_special_keys

constexpr uint32_t demographics::count_special_keys = 23
inlineconstexpr

Definition at line 166 of file demographics.hpp.

◆ executions_per_block

constexpr uint32_t demographics::executions_per_block = 16 / ve::vector_size
inlineconstexpr

Definition at line 1917 of file demographics.cpp.

◆ extra_demo_grouping

constexpr uint32_t demographics::extra_demo_grouping = 8
inlineconstexpr

Definition at line 234 of file demographics.cpp.

◆ issues_change_rate

constexpr float demographics::issues_change_rate = 0.20f
inlineconstexpr

Definition at line 2420 of file demographics.cpp.

◆ small_pop_size

constexpr float demographics::small_pop_size = 100.0f
inlineconstexpr

Definition at line 139 of file demographics.cpp.