GeNN  4.0.0
GPU enhanced Neuronal Networks (GeNN)
neuronGroupInternal.h
Go to the documentation of this file.
1 #pragma once
2 
3 // GeNN includes
4 #include "neuronGroup.h"
5 
6 //------------------------------------------------------------------------
7 // NeuronGroupInternal
8 //------------------------------------------------------------------------
10 {
11 public:
12  NeuronGroupInternal(const std::string &name, int numNeurons, const NeuronModels::Base *neuronModel,
13  const std::vector<double> &params, const std::vector<Models::VarInit> &varInitialisers,
14  VarLocation defaultVarLocation, VarLocation defaultExtraGlobalParamLocation, int hostID)
15  : NeuronGroup(name, numNeurons, neuronModel, params, varInitialisers,
16  defaultVarLocation, defaultExtraGlobalParamLocation, hostID)
17  {
18  }
19 
39 };
Definition: neuronGroup.h:21
Definition: neuronGroupInternal.h:9
VarLocation
< Flags defining which memory space variables should be allocated in
Definition: variableMode.h:10
const std::vector< std::pair< SynapseGroupInternal *, std::vector< SynapseGroupInternal * > > > & getMergedInSyn() const
Definition: neuronGroup.h:149
const std::vector< CurrentSourceInternal * > & getCurrentSources() const
Gets pointers to all current sources which provide input to this neuron group.
Definition: neuronGroup.h:155
bool isVarQueueRequired(const std::string &var) const
Definition: neuronGroup.cc:302
NeuronGroupInternal(const std::string &name, int numNeurons, const NeuronModels::Base *neuronModel, const std::vector< double > &params, const std::vector< Models::VarInit > &varInitialisers, VarLocation defaultVarLocation, VarLocation defaultExtraGlobalParamLocation, int hostID)
Definition: neuronGroupInternal.h:12
std::string getPrevQueueOffset(const std::string &devPrefix) const
Get the expression to calculate the queue offset for accessing state of variables in previous timeste...
Definition: neuronGroup.cc:295
void updatePostVarQueues(const std::string &code)
Update which postsynaptic variables require queues based on piece of code.
Definition: neuronGroup.cc:178
void updatePreVarQueues(const std::string &code)
Update which presynaptic variables require queues based on piece of code.
Definition: neuronGroup.cc:173
void addSpkEventCondition(const std::string &code, const std::string &supportCodeNamespace)
Definition: neuronGroup.cc:269
void checkNumDelaySlots(unsigned int requiredDelay)
Checks delay slots currently provided by the neuron group against a required delay and extends if req...
Definition: neuronGroup.cc:165
const std::vector< SynapseGroupInternal * > & getOutSyn() const
Gets pointers to all synapse groups emanating from this neuron group.
Definition: neuronGroup.h:152
void injectCurrent(CurrentSourceInternal *source)
add input current source
Definition: neuronGroup.cc:160
void mergeIncomingPSM(bool merge)
Merge incoming postsynaptic models.
Definition: neuronGroup.cc:201
void addOutSyn(SynapseGroupInternal *synapseGroup)
Definition: neuronGroup.h:134
std::string getCurrentQueueOffset(const std::string &devPrefix) const
Get the expression to calculate the queue offset for accessing state of variables this timestep...
Definition: neuronGroup.cc:288
void initDerivedParams(double dt)
Definition: neuronGroup.cc:183
const std::vector< double > & getDerivedParams() const
Definition: neuronGroup.h:157
Base class for all neuron models.
Definition: neuronModels.h:32
const std::vector< SynapseGroupInternal * > & getInSyn() const
Gets pointers to all synapse groups which provide input to this neuron group.
Definition: neuronGroup.h:148
void addInSyn(SynapseGroupInternal *synapseGroup)
Definition: neuronGroup.h:133
bool isParamRequiredBySpikeEventCondition(const std::string &pnamefull) const
Do any of the spike event conditions tested by this neuron require specified parameter?
Definition: neuronGroup.cc:274
const std::set< std::pair< std::string, std::string > > & getSpikeEventCondition() const
Definition: neuronGroup.h:159