GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
NeuronModels::LegacyWrapper Class Reference

Wrapper around legacy weight update models stored in nModels array of neuronModel objects. More...

#include <newNeuronModels.h>

Inheritance diagram for NeuronModels::LegacyWrapper:
NewModels::LegacyWrapper< Base, neuronModel, nModels > NewModels::Base Snippet::Base

Public Member Functions

 LegacyWrapper (unsigned int legacyTypeIndex)
 
virtual std::string getSimCode () const
 Gets the code that defines the execution of one timestep of integration of the neuron model. More...
 
virtual std::string getThresholdConditionCode () const
 Gets code which defines the condition for a true spike in the described neuron model. More...
 
virtual std::string getResetCode () const
 Gets code that defines the reset action taken after a spike occurred. This can be empty. More...
 
virtual std::string getSupportCode () const
 Gets support code to be made available within the neuron kernel/funcion. More...
 
virtual NewModels::Base::StringPairVec getExtraGlobalParams () const
 
virtual bool isPoisson () const
 
- Public Member Functions inherited from NewModels::LegacyWrapper< Base, neuronModel, nModels >
 LegacyWrapper (unsigned int legacyTypeIndex)
 
virtual StringVec getParamNames () const
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const
 
virtual StringPairVec getVars () const
 Gets names and types (as strings) of model variables. More...
 
- Public Member Functions inherited from NewModels::Base
size_t getVarIndex (const std::string &varName) const
 Find the index of a named variable. More...
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 

Additional Inherited Members

- Public Types inherited from Snippet::Base
typedef std::function< double(const std::vector< double > &, double)> DerivedParamFunc
 
typedef std::vector< std::string > StringVec
 
typedef std::vector< std::pair< std::string, std::string > > StringPairVec
 
typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > NameTypeValVec
 
typedef std::vector< std::pair< std::string, DerivedParamFunc > > DerivedParamVec
 
- Static Protected Member Functions inherited from NewModels::LegacyWrapper< Base, neuronModel, nModels >
static StringPairVec zipStringVectors (const StringVec &a, const StringVec &b)
 
- Static Protected Member Functions inherited from NewModels::Base
static size_t getVarIndex (const std::string &varName, const StringPairVec &vars)
 
- Protected Attributes inherited from NewModels::LegacyWrapper< Base, neuronModel, nModels >
const unsigned int m_LegacyTypeIndex
 Index into the array of legacy models. More...
 

Detailed Description

Wrapper around legacy weight update models stored in nModels array of neuronModel objects.

Constructor & Destructor Documentation

◆ LegacyWrapper()

NeuronModels::LegacyWrapper::LegacyWrapper ( unsigned int  legacyTypeIndex)
inline

Member Function Documentation

◆ getExtraGlobalParams()

NewModels::Base::StringPairVec NeuronModels::LegacyWrapper::getExtraGlobalParams ( ) const
virtual

Gets names and types (as strings) of additional per-population parameters for the weight update model.

◆ getResetCode()

std::string NeuronModels::LegacyWrapper::getResetCode ( ) const
virtual

Gets code that defines the reset action taken after a spike occurred. This can be empty.

◆ getSimCode()

std::string NeuronModels::LegacyWrapper::getSimCode ( ) const
virtual

Gets the code that defines the execution of one timestep of integration of the neuron model.

The code will refer to for the value of the variable with name "NN". It needs to refer to the predefined variable "ISYN", i.e. contain , if it is to receive input.

◆ getSupportCode()

std::string NeuronModels::LegacyWrapper::getSupportCode ( ) const
virtual

Gets support code to be made available within the neuron kernel/funcion.

This is intended to contain user defined device functions that are used in the neuron codes. Preprocessor defines are also allowed if appropriately safeguarded against multiple definition by using ifndef; functions should be declared as "__host__ __device__" to be available for both GPU and CPU versions.

◆ getThresholdConditionCode()

std::string NeuronModels::LegacyWrapper::getThresholdConditionCode ( ) const
virtual

Gets code which defines the condition for a true spike in the described neuron model.

This evaluates to a bool (e.g. "V > 20").

◆ isPoisson()

bool NeuronModels::LegacyWrapper::isPoisson ( ) const
virtual


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