10 #define SET_DECAY_CODE(DECAY_CODE) virtual std::string getDecayCode() const override{ return DECAY_CODE; } 11 #define SET_CURRENT_CONVERTER_CODE(CURRENT_CONVERTER_CODE) virtual std::string getApplyInputCode() const override{ return "$(Isyn) += " CURRENT_CONVERTER_CODE ";"; } 12 #define SET_APPLY_INPUT_CODE(APPLY_INPUT_CODE) virtual std::string getApplyInputCode() const override{ return APPLY_INPUT_CODE; } 13 #define SET_SUPPORT_CODE(SUPPORT_CODE) virtual std::string getSupportCode() const override{ return SUPPORT_CODE; } 74 SET_DERIVED_PARAMS({{
"expDecay", [](
const vector<double> &pars,
double dt){
return std::exp(-dt / pars[0]); }}});
Definition: newPostsynapticModels.h:39
Definition: newPostsynapticModels.h:18
Class to hold the information that defines a post-synaptic model (a model of how synapses affect post...
Definition: postSynapseModels.h:17
#define SET_DECAY_CODE(DECAY_CODE)
Definition: newPostsynapticModels.h:10
LegacyWrapper(unsigned int legacyTypeIndex)
Definition: newPostsynapticModels.h:42
Wrapper around old-style models stored in global arrays and referenced by index.
Definition: newModels.h:170
virtual NewModels::Base::StringPairVec getExtraGlobalParams() const
Definition: newPostsynapticModels.h:33
Base class for all postsynaptic models.
Definition: newPostsynapticModels.h:21
Simple delta current synapse.
Definition: newPostsynapticModels.h:82
Base class for all models - in addition to the parameters snippets have, models can have state variab...
Definition: newModels.h:132
#define SET_DERIVED_PARAMS(...)
Definition: snippet.h:29
#define DECLARE_MODEL(TYPE, NUM_PARAMS, NUM_VARS)
Definition: newModels.h:18
Exponential decay with synaptic input treated as a conductance value.
Definition: newPostsynapticModels.h:63
vector< postSynModel > postSynModels
Global C++ vector containing all post-synaptic update model descriptions.
Definition: postSynapseModels.cc:28
#define SET_PARAM_NAMES(...)
Definition: snippet.h:28
#define SET_CURRENT_CONVERTER_CODE(CURRENT_CONVERTER_CODE)
Definition: newPostsynapticModels.h:11
virtual std::string getDecayCode() const
Definition: newPostsynapticModels.h:27
virtual std::string getSupportCode() const
Definition: newPostsynapticModels.h:29
virtual std::string getApplyInputCode() const
Definition: newPostsynapticModels.h:28
std::vector< std::pair< std::string, std::string > > StringPairVec
Definition: snippet.h:117
Definition: codeGenUtils.h:24