GeNN  4.0.0
GPU enhanced Neuronal Networks (GeNN)
gennUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Standard C++ includes
4 #include <string>
5 #include <vector>
6 
7 // GeNN includes
8 #include "gennExport.h"
9 #include "models.h"
10 
11 //--------------------------------------------------------------------------
12 // Utils
13 //--------------------------------------------------------------------------
14 namespace Utils
15 {
16 //--------------------------------------------------------------------------
18 //--------------------------------------------------------------------------
19 GENN_EXPORT bool isRNGRequired(const std::string &code);
20 
21 //--------------------------------------------------------------------------
23 //--------------------------------------------------------------------------
24 GENN_EXPORT bool isInitRNGRequired(const std::vector<Models::VarInit> &varInitialisers);
25 
26 //--------------------------------------------------------------------------
28 //--------------------------------------------------------------------------
29 GENN_EXPORT bool isTypePointer(const std::string &type);
30 
31 //--------------------------------------------------------------------------
33 //--------------------------------------------------------------------------
34 GENN_EXPORT std::string getUnderlyingType(const std::string &type);
35 
36 } // namespace Utils
#define GENN_EXPORT
Definition: gennExport.h:13
GENN_EXPORT bool isRNGRequired(const std::string &code)
Does the code string contain any functions requiring random number generator.
Definition: gennUtils.cc:37
GENN_EXPORT std::string getUnderlyingType(const std::string &type)
Assuming type is a string containing a pointer type, function to return the underlying type...
Definition: gennUtils.cc:73
GENN_EXPORT bool isTypePointer(const std::string &type)
Function to determine whether a string containing a type is a pointer.
Definition: gennUtils.cc:68
GENN_EXPORT bool isInitRNGRequired(const std::vector< Models::VarInit > &varInitialisers)
Does the model with the vectors of variable initialisers and modes require an RNG for the specified i...
Definition: gennUtils.cc:58
Definition: gennUtils.h:14