MCPcopy Create free account
hub / github.com/devosoft/avida / UpdateResource

Method UpdateResource

avida-core/source/main/cPopulation.cc:7164–7167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7162}
7163
7164void cPopulation::UpdateResource(cAvidaContext& ctx, int res_index, double change)
7165{
7166 resource_count.Modify(ctx, res_index, change);
7167}
7168
7169void cPopulation::UpdateCellResources(cAvidaContext& ctx, const Apto::Array<double>& res_change, const int cell_id)
7170{

Callers 3

ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected