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

Method Inst_IfTarget

avida-core/source/cpu/cHardwareCPU.cc:9117–9132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9115
9116
9117bool cHardwareCPU::Inst_IfTarget(cAvidaContext&)
9118{
9119 int cellid = m_organism->GetCellID(); //absolute id of current cell
9120
9121 if (cellid == -1) {
9122 return true;
9123 }
9124
9125 int cell_data = m_world->GetPopulation().GetCell(cellid).GetCellData();
9126
9127 if (cell_data == -1) {
9128 getIP().Advance();
9129 }
9130
9131 return true;
9132} //End Inst_IfTarget()
9133
9134
9135bool cHardwareCPU::Inst_IfNotTarget(cAvidaContext&)

Callers

nothing calls this directly

Calls 4

GetCellIDMethod · 0.45
GetCellDataMethod · 0.45
GetCellMethod · 0.45
AdvanceMethod · 0.45

Tested by

no test coverage detected