12 lines
428 B
C++
12 lines
428 B
C++
#include <NeuralNetwork/ConstructiveAlgorithms/CelularEncoding/Cell.h>
|
|
#include <NeuralNetwork/ConstructiveAlgorithms/CelularEncoding/CelularEncoding.h>
|
|
|
|
void NeuralNetworks::ConstructiveAlgorithms::CelularEncoding::Cell::step(CelularEncoding &c) {
|
|
if(isAlive()) {
|
|
reinterpret_cast<Instruction::Instruction *>(codePtr->instruction.lock().get())->run(*this, c, codePtr->parameters);
|
|
}
|
|
|
|
if(codePtr == nullptr) {
|
|
die();
|
|
}
|
|
} |