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

Method Copy

avida-core/source/cpu/cCPUMemory.cc:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void cCPUMemory::Copy(int to, int from)
92{
93 assert(to >= 0);
94 assert(to < m_seq.GetSize());
95 assert(from >= 0);
96 assert(from < m_seq.GetSize());
97
98 m_seq[to] = m_seq[from];
99 m_flag_array[to] = m_flag_array[from];
100}
101
102
103void cCPUMemory::Insert(int pos, const Instruction& inst)

Callers 8

Inst_HeadWriteMethod · 0.45
Inst_HeadCopyMethod · 0.45
TestGenome_BodyMethod · 0.45
Inst_HeadWriteMethod · 0.45
Inst_HeadWriteMethod · 0.45
Inst_HeadCopyMethod · 0.45
SampleOffspringMethod · 0.45
findFunction · 0.45

Calls 1

GetSizeMethod · 0.45

Tested by 1

TestGenome_BodyMethod · 0.36