30 void setVarLocation(
const std::string &varName,
VarLocation loc);
35 void setExtraGlobalParamLocation(
const std::string ¶mName,
VarLocation loc);
40 const std::string &
getName()
const{
return m_Name; }
45 const std::vector<double> &
getParams()
const{
return m_Params; }
49 VarLocation getVarLocation(
const std::string &varName)
const;
56 VarLocation getExtraGlobalParamLocation(
const std::string ¶mName)
const;
64 const std::vector<double> ¶ms,
const std::vector<Models::VarInit> &varInitialisers,
71 void initDerivedParams(
double dt);
81 bool isSimRNGRequired()
const;
84 bool isInitRNGRequired()
const;
86 bool isZeroCopyEnabled()
const;
90 boost::uuids::detail::sha1::digest_type getHashDigest()
const;
94 boost::uuids::detail::sha1::digest_type getInitHashDigest()
const;
96 boost::uuids::detail::sha1::digest_type getVarLocationHashDigest()
const;
104 std::vector<double> m_Params;
105 std::vector<double> m_DerivedParams;
106 std::vector<Models::VarInit> m_VarInitialisers;
111 std::vector<VarLocation> m_VarLocation;
114 std::vector<VarLocation> m_ExtraGlobalParamLocation;
const std::string & getName() const
Definition: currentSource.h:40
Definition: neuronGroupInternal.h:9
const NeuronGroupInternal * getTrgNeuronGroup() const
Definition: currentSource.h:76
VarLocation
< Flags defining which memory space variables should be allocated in
Definition: variableMode.h:10
Base class for all current source models.
Definition: currentSourceModels.h:26
const std::vector< Models::VarInit > & getVarInitialisers() const
Definition: currentSource.h:46
const std::vector< double > & getDerivedParams() const
Definition: currentSource.h:78
const std::vector< double > & getParams() const
Definition: currentSource.h:45
#define GENN_EXPORT
Definition: gennExport.h:13
const CurrentSourceModels::Base * getCurrentSourceModel() const
Gets the current source model used by this group.
Definition: currentSource.h:43
VarLocation getVarLocation(size_t index) const
Get variable location for current source model state variable.
Definition: currentSource.h:52
VarLocation getExtraGlobalParamLocation(size_t index) const
Get location of neuron model extra global parameter by omdex.
Definition: currentSource.h:60
Definition: currentSource.h:20