GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
CurrentSourceModels::DC Class Reference

DC source. More...

#include <currentSourceModels.h>

Inheritance diagram for CurrentSourceModels::DC:
CurrentSourceModels::Base NewModels::Base Snippet::Base

Public Types

typedef Snippet::ValueBase< 1 > ParamValues
 
typedef NewModels::VarInitContainerBase< 0 > VarValues
 
typedef NewModels::VarInitContainerBase< 0 > PreVarValues
 
typedef NewModels::VarInitContainerBase< 0 > PostVarValues
 
- 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
 

Public Member Functions

 SET_INJECTION_CODE ("$(injectCurrent, $(amp));\)
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
- Public Member Functions inherited from CurrentSourceModels::Base
virtual std::string getInjectionCode () const
 Gets the code that defines current injected each timestep. More...
 
virtual NewModels::Base::StringPairVec getExtraGlobalParams () const
 Gets names and types (as strings) of additional parameters. More...
 
- Public Member Functions inherited from NewModels::Base
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 DerivedParamVec getDerivedParams () const
 

Static Public Member Functions

static const DCgetInstance ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from NewModels::Base
static size_t getVarIndex (const std::string &varName, const StringPairVec &vars)
 

Detailed Description

DC source.

It has a single parameter:

  • amp - amplitude of the current [nA]

Member Typedef Documentation

◆ ParamValues

◆ PostVarValues

◆ PreVarValues

◆ VarValues

Member Function Documentation

◆ getInstance()

static const DC* CurrentSourceModels::DC::getInstance ( )
inlinestatic

◆ getParamNames()

virtual StringVec CurrentSourceModels::DC::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ SET_INJECTION_CODE()

CurrentSourceModels::DC::SET_INJECTION_CODE ( "$(injectCurrent, $(amp));\  )

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