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

Method Copy

avida-core/source/tools/cBitArray.cc:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "cBitArray.h"
2
3void cRawBitArray::Copy(const cRawBitArray & in_array, const int num_bits)
4{
5 const int num_fields = GetNumFields(num_bits);
6 if (bit_fields != NULL) {
7 delete [] bit_fields;
8 }
9 bit_fields = new unsigned int[num_fields];
10 for (int i = 0; i < num_fields; i++) {
11 bit_fields[i] = in_array.bit_fields[i];
12 }
13}
14
15
16bool cRawBitArray::IsEqual(const cRawBitArray & in_array, int num_bits) const

Callers 3

cBitArrayClass · 0.45
mainFunction · 0.45
RunTestsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected