GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
gennUtils.cc File Reference
#include "gennUtils.h"
#include <algorithm>
#include <cctype>
#include "models.h"

Namespaces

 Utils
 

Functions

GENN_EXPORT bool Utils::isRNGRequired (const std::string &code)
 Does the code string contain any functions requiring random number generator. More...
 
GENN_EXPORT bool Utils::isRNGRequired (const std::vector< Models::VarInit > &varInitialisers)
 Does the model with the vectors of variable initialisers and modes require an RNG for the specified init location i.e. host or device. More...
 
GENN_EXPORT bool Utils::isTypePointer (const std::string &type)
 Function to determine whether a string containing a type is a pointer. More...
 
GENN_EXPORT bool Utils::isTypePointerToPointer (const std::string &type)
 Function to determine whether a string containing a type is a pointer to a pointer. More...
 
GENN_EXPORT bool Utils::isTypeFloatingPoint (const std::string &type)
 Function to determine whether a string containing a type is floating point. More...
 
GENN_EXPORT std::string Utils::getUnderlyingType (const std::string &type)
 Assuming type is a string containing a pointer type, function to return the underlying type. More...
 
GENN_EXPORT void Utils::validateVarName (const std::string &name, const std::string &description)
 Is the variable name valid? GeNN variable names must obey C variable naming rules. More...
 
GENN_EXPORT void Utils::validatePopName (const std::string &name, const std::string &description)
 Is the population name valid? GeNN population names obey C variable naming rules but can start with a number. More...
 
GENN_EXPORT void Utils::validateParamNames (const std::vector< std::string > &paramNames)
 Are all the parameter names in vector valid? GeNN variables and population names must obey C variable naming rules. More...