GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
NewModels::Base Class Reference

Base class for all models - in addition to the parameters snippets have, models can have state variables. More...

#include <newModels.h>

Inheritance diagram for NewModels::Base:
Snippet::Base CurrentSourceModels::Base NewModels::LegacyWrapper< Base, neuronModel, nModels > NewModels::LegacyWrapper< Base, postSynModel, postSynModels > NewModels::LegacyWrapper< Base, weightUpdateModel, weightUpdateModels > NeuronModels::Base PostsynapticModels::Base WeightUpdateModels::Base CurrentSourceModels::DC CurrentSourceModels::GaussianNoise NeuronModels::LegacyWrapper PostsynapticModels::LegacyWrapper WeightUpdateModels::LegacyWrapper NeuronModels::Izhikevich NeuronModels::Poisson NeuronModels::PoissonNew NeuronModels::RulkovMap NeuronModels::SpikeSource NeuronModels::SpikeSourceArray NeuronModels::TraubMiles PostsynapticModels::DeltaCurr PostsynapticModels::ExpCond WeightUpdateModels::PiecewiseSTDP WeightUpdateModels::StaticGraded WeightUpdateModels::StaticPulse WeightUpdateModels::StaticPulseDendriticDelay

Public Member Functions

virtual StringPairVec getVars () const
 Gets names and types (as strings) of model variables. More...
 
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 ()
 
virtual StringVec getParamNames () const
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const
 

Static Protected Member Functions

static size_t getVarIndex (const std::string &varName, const StringPairVec &vars)
 

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
 

Detailed Description

Base class for all models - in addition to the parameters snippets have, models can have state variables.

Member Function Documentation

◆ getVarIndex() [1/2]

size_t NewModels::Base::getVarIndex ( const std::string &  varName) const
inline

Find the index of a named variable.

◆ getVarIndex() [2/2]

static size_t NewModels::Base::getVarIndex ( const std::string &  varName,
const StringPairVec vars 
)
inlinestaticprotected

◆ getVars()


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