GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
standardGeneratedSections.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Standard includes
4 #include <string>
5 
6 // GeNN includes
7 #include "codeGenUtils.h"
8 #include "newNeuronModels.h"
10 
11 // Forward declarations
12 class CodeStream;
13 class NeuronGroup;
14 
15 //----------------------------------------------------------------------------
16 // Functions to generate standard sections of code for use across backends
17 //----------------------------------------------------------------------------
19 {
20 void neuronOutputInit(
21  CodeStream &os,
22  const NeuronGroup &ng,
23  const std::string &devPrefix);
24 
26  CodeStream &os,
27  const NeuronGroup &ng,
28  const VarNameIterCtx &nmVars,
29  const std::string &devPrefix,
30  const std::string &localID,
31  const std::string &ttype);
32 
34  CodeStream &os,
35  const NeuronGroup &ng,
36  const VarNameIterCtx &nmVars,
37  const std::string &devPrefix,
38  const std::string &localID);
39 
41  CodeStream &os,
42  const NeuronGroup &ng,
43  const VarNameIterCtx &nmVars,
44  const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams,
45  const std::string &localID,
46  const std::vector<FunctionTemplate> &functions,
47  const std::string &ftype,
48  const std::string &rng);
49 
51  CodeStream &os,
52  const NeuronGroup &ng,
53  const std::string &devPrefix,
54  const std::string &localID,
55  const std::vector<FunctionTemplate> &functions,
56  const std::string &ftype,
57  const std::string &rng);
58 
60  CodeStream &os,
61  const NeuronGroup &ng,
62  const std::string &devPrefix,
63  const std::string &localID);
64 
66  CodeStream &os,
67  const NeuronGroup &ng,
68  const std::string &devPrefix,
69  const std::string &localID,
70  const std::vector<FunctionTemplate> &functions,
71  const std::string &ftype);
72 
74  CodeStream &os,
75  const NeuronGroup &ng,
76  const std::string &devPrefix,
77  const std::string &localID,
78  const std::vector<FunctionTemplate> &functions,
79  const std::string &ftype);
80 } // namespace StandardGeneratedSections
Definition: neuronGroup.h:19
void neuronSpikeEventTest(CodeStream &os, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const ExtraGlobalParamNameIterCtx &nmExtraGlobalParams, const std::string &localID, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
Definition: standardGeneratedSections.cc:83
void neuronCurrentInjection(CodeStream &os, const NeuronGroup &ng, const std::string &devPrefix, const std::string &localID, const std::vector< FunctionTemplate > &functions, const std::string &ftype, const std::string &rng)
Definition: standardGeneratedSections.cc:121
void weightUpdatePreSpike(CodeStream &os, const NeuronGroup &ng, const std::string &devPrefix, const std::string &localID, const std::vector< FunctionTemplate > &functions, const std::string &ftype)
Definition: standardGeneratedSections.cc:216
Definition: standardSubstitutions.h:20
Helper class for generating code - automatically inserts brackets, indents etc.
Definition: codeStream.h:14
void neuronCopySpikeTriggeredVars(CodeStream &os, const NeuronGroup &ng, const std::string &devPrefix, const std::string &localID)
Definition: standardGeneratedSections.cc:160
Definition: standardGeneratedSections.h:18
void neuronLocalVarWrite(CodeStream &os, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const std::string &devPrefix, const std::string &localID)
Definition: standardGeneratedSections.cc:66
void neuronOutputInit(CodeStream &os, const NeuronGroup &ng, const std::string &devPrefix)
Definition: standardGeneratedSections.cc:10
void weightUpdatePostSpike(CodeStream &os, const NeuronGroup &ng, const std::string &devPrefix, const std::string &localID, const std::vector< FunctionTemplate > &functions, const std::string &ftype)
Definition: standardGeneratedSections.cc:258
void neuronLocalVarInit(CodeStream &os, const NeuronGroup &ng, const VarNameIterCtx &nmVars, const std::string &devPrefix, const std::string &localID, const std::string &ttype)
Definition: standardGeneratedSections.cc:39