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

Namespaces

namespace  impl
 

Classes

struct  assimilation_buffer
 
struct  conversion_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 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<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_conversion (sys::state &state, uint32_t offset, uint32_t divisions, conversion_buffer &pbuf)
 
float get_estimated_conversion (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_conversion (sys::state &state, uint32_t offset, uint32_t divisions, conversion_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.10f
 
constexpr uint32_t count_special_keys = 23
 

Function Documentation

◆ apply_assimilation()

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

Definition at line 2645 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 2725 of file demographics.cpp.

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

◆ apply_conversion()

void demographics::apply_conversion ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
conversion_buffer pbuf 
)

Definition at line 2685 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 1164 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 2744 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 2706 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 1259 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 2630 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 2785 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 72 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 2463 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 720 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 1590 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 1917 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 2375 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 982 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 951 of file demographics.cpp.

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

◆ get_estimated_conversion()

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

Definition at line 2027 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 1794 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 2501 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 2301 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 1072 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 1051 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 893 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 843 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 1758 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 1721 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 1354 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 1330 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 1374 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 1364 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 735 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 2812 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 139 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 713 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 710 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 128 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 2765 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 2775 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 68 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 77 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 105 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 50 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 54 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 58 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 61 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 46 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 64 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 1830 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 2323 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 904 of file demographics.cpp.

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

◆ update_conversion()

void demographics::update_conversion ( sys::state state,
uint32_t  offset,
uint32_t  divisions,
conversion_buffer pbuf 
)

Definition at line 1977 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 1288 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 1083 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 2406 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 2261 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 1191 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 994 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 743 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 1382 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 43 of file demographics.hpp.

◆ executions_per_block

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

Definition at line 717 of file demographics.cpp.

◆ extra_demo_grouping

constexpr uint32_t demographics::extra_demo_grouping = 8
inlineconstexpr

Definition at line 102 of file demographics.cpp.

◆ issues_change_rate

constexpr float demographics::issues_change_rate = 0.10f
inlineconstexpr

Definition at line 1189 of file demographics.cpp.

◆ small_pop_size

constexpr float demographics::small_pop_size = 100.0f
inlineconstexpr

Definition at line 44 of file demographics.cpp.