Files
NeuralNetworkLib/src/NeuralNetwork/ConstructiveAlgorithms/CellularEncoding/Cell.cpp
2016-05-18 22:57:06 +02:00

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();
}
}