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

Method Get

avida-core/source/cpu/cCPUStack.h:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75inline int cCPUStack::Get(int depth) const
76{
77 int array_pos = depth + stack_pointer;
78 if (array_pos >= nHardware::STACK_SIZE) array_pos -= nHardware::STACK_SIZE;
79 return stack[array_pos];
80}
81
82inline void cCPUStack::Clear()
83{

Callers 15

DescribeAllMethod · 0.45
RegisterMethod · 0.45
DescribeMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45

Calls

no outgoing calls

Tested by 9

InitResourcesMethod · 0.36
UpdateResourcesMethod · 0.36
UpdateRandomResourcesMethod · 0.36
ProcessGestationMethod · 0.36
PrintGenomeMethod · 0.36
TestAttackMethod · 0.36
TestAttackPredMethod · 0.36
TestAttackChanceMethod · 0.36
TestAttackResultsOutMethod · 0.36