19 #define SET_INJECTION_CODE(INJECTION_CODE) virtual std::string getInjectionCode() const override{ return INJECTION_CODE; } 20 #define SET_EXTRA_GLOBAL_PARAMS(...) virtual StringPairVec getExtraGlobalParams() const override{ return __VA_ARGS__; } #define SET_INJECTION_CODE(INJECTION_CODE)
Definition: currentSourceModels.h:19
Base class for all current source models.
Definition: currentSourceModels.h:28
Definition: currentSourceModels.h:25
DC source.
Definition: currentSourceModels.h:49
Base class for all models - in addition to the parameters snippets have, models can have state variab...
Definition: newModels.h:132
Noisy current source with noise drawn from normal distribution.
Definition: currentSourceModels.h:66
#define DECLARE_MODEL(TYPE, NUM_PARAMS, NUM_VARS)
Definition: newModels.h:18
virtual NewModels::Base::StringPairVec getExtraGlobalParams() const
Gets names and types (as strings) of additional parameters.
Definition: currentSourceModels.h:38
#define SET_PARAM_NAMES(...)
Definition: snippet.h:28
std::vector< std::pair< std::string, std::string > > StringPairVec
Definition: snippet.h:117
virtual std::string getInjectionCode() const
Gets the code that defines current injected each timestep.
Definition: currentSourceModels.h:35