Spike
Loading...
Searching...
No Matches
NeuronFactory.h
Go to the documentation of this file.
1
6#ifndef SPIKE_NEURONFACTORY_H
7#define SPIKE_NEURONFACTORY_H
8
9#include "Spike/Neuron/IF.h"
10#include <memory>
11
12namespace Spike {
13
21public:
29 static std::unique_ptr<IF> create(const std::string &input_file);
30};
31
32} // namespace Spike
33
34#endif // SPIKE_NEURONFACTORY_H
Implements a factory pattern for neurons. This class will create a specific neuron,...
Definition NeuronFactory.h:20
static std::unique_ptr< IF > create(const std::string &input_file)
Returns a neuron pointer. Depending on the type read from the input file, this function constructs th...
Definition NeuronFactory.cpp:14