Spike
Loading...
Searching...
No Matches
Spike::NeuronFactory Class Reference

Implements a factory pattern for neurons. This class will create a specific neuron, depending on the type of neuron given in an input file. More...

#include <NeuronFactory.h>

Static Public Member Functions

static std::unique_ptr< IFcreate (const std::string &input_file)
 Returns a neuron pointer. Depending on the type read from the input file, this function constructs the appropriate neuron.
 

Detailed Description

Implements a factory pattern for neurons. This class will create a specific neuron, depending on the type of neuron given in an input file.

Member Function Documentation

◆ create()

std::unique_ptr< IF > Spike::NeuronFactory::create ( const std::string & input_file)
static

Returns a neuron pointer. Depending on the type read from the input file, this function constructs the appropriate neuron.

Parameters
input_fileInput file in .json format
Returns
Pointer to neuron

The documentation for this class was generated from the following files: