GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
generate_swig_interfaces.py File Reference

Classes

class  generate_swig_interfaces.SwigInlineScope
 
class  generate_swig_interfaces.SwigExtendScope
 
class  generate_swig_interfaces.SwigAsIsScope
 
class  generate_swig_interfaces.SwigInitScope
 
class  generate_swig_interfaces.CppBlockScope
 
class  generate_swig_interfaces.SwigModuleGenerator
 A helper class for generating SWIG interface files. More...
 

Namespaces

 generate_swig_interfaces
 

Functions

def generate_swig_interfaces.writeValueMakerFunc (modelName, valueName, numValues, mg)
 Generates a helper make*Values function and writes it. More...
 
def generate_swig_interfaces.generateCustomClassDeclaration (nSpace, initVarSnippet=False, weightUpdateModel=False)
 Generates nSpace::Custom class declaration string. More...
 
def generate_swig_interfaces.generateNumpyApplyArgoutviewArray1D (dataType, varName, sizeName)
 Generates a line which applies numpy ARGOUTVIEW_ARRAY1 typemap to variable. More...
 
def generate_swig_interfaces.generateNumpyApplyInArray1D (dataType, varName, sizeName)
 Generates a line which applies numpy IN_ARRAY1 typemap to variable. More...
 
def generate_swig_interfaces.generateBuiltInGetter (models)
 
def generate_swig_interfaces.generateSharedLibraryModelInterface (swigPath)
 Generates SharedLibraryModel.i file. More...
 
def generate_swig_interfaces.generateStlContainersInterface (swigPath)
 Generates StlContainers interface which wraps std::string, std::pair, std::vector, std::function and creates template specializations for pairs and vectors. More...
 
def generate_swig_interfaces.generateCustomModelDeclImpls (swigPath)
 Generates headers/sources with *::Custom classes. More...
 
def generate_swig_interfaces.generateConfigs (gennPath)
 

Variables

string generate_swig_interfaces.NEURONMODELS = 'newNeuronModels'
 
string generate_swig_interfaces.POSTSYNMODELS = 'newPostsynapticModels'
 
string generate_swig_interfaces.WUPDATEMODELS = 'newWeightUpdateModels'
 
string generate_swig_interfaces.CURRSOURCEMODELS = 'currentSourceModels'
 
string generate_swig_interfaces.INITVARSNIPPET = 'initVarSnippet'
 
string generate_swig_interfaces.SPARSEINITSNIPPET = 'initSparseConnectivitySnippet'
 
string generate_swig_interfaces.NNMODEL = 'modelSpec'
 
string generate_swig_interfaces.MAIN_MODULE = 'genn_wrapper'
 
 generate_swig_interfaces.parser = ArgumentParser( description='Generate SWIG interfaces' )
 
 generate_swig_interfaces.type
 
 generate_swig_interfaces.str
 
 generate_swig_interfaces.help
 
 generate_swig_interfaces.gennPath = parser.parse_args().genn_path
 
 generate_swig_interfaces.includePath = os.path.join( gennPath, 'lib', 'include' )