GeNN
3.3.0
GPU enhanced Neuronal Networks (GeNN)
|
A helper class for generating SWIG interface files. More...
Public Member Functions | |
def | __init__ (self, moduleName, outFile) |
Init SwigModuleGenerator. More... | |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_value, traceback) |
def | addSwigModuleHeadline (self, directors=False, comment='') |
Adds a line naming a module and enabling directors feature for inheritance in python (disabled by default) More... | |
def | addSwigFeatureDirector (self, cClassName, comment='') |
Adds a line enabling director feature for a C/C++ class. More... | |
def | addSwigInclude (self, cHeader, comment='') |
Adds a line for including C/C++ header file. More... | |
def | addSwigImport (self, swigIFace, comment='') |
Adds a line for importing SWIG interface file. More... | |
def | addSwigIgnore (self, identifier, comment='') |
Adds a line instructing SWIG to ignore the matching identifie. More... | |
def | addSwigRename (self, identifier, newName, comment='') |
Adds a line instructing SWIG to rename the matching identifie. More... | |
def | addSwigUnignore (self, identifier) |
Adds a line instructing SWIG to unignore the matching identifie. More... | |
def | addSwigIgnoreAll (self) |
Adds a line instructing SWIG to ignore everything, but templates. More... | |
def | addSwigUnignoreAll (self) |
Adds a line instructing SWIG to unignore everything. More... | |
def | addSwigEnableUnderCaseConvert (self) |
def | addSwigTemplate (self, tSpec, newName) |
Adds a template specification tSpec and renames it as newName. More... | |
def | addCppInclude (self, cHeader, comment='') |
Adds a line for usual including C/C++ header file. More... | |
def | addAutoGenWarning (self) |
Adds a comment line telling that this file was generated automatically. More... | |
def | write (self, code) |
Writes code into output stream os. More... | |
Public Attributes | |
name | |
outFile | |
os | |
A helper class for generating SWIG interface files.
def generate_swig_interfaces.SwigModuleGenerator.__init__ | ( | self, | |
moduleName, | |||
outFile | |||
) |
Init SwigModuleGenerator.
moduleName | string, name of the SWIG module |
outFile | string, output file |
def generate_swig_interfaces.SwigModuleGenerator.__enter__ | ( | self | ) |
def generate_swig_interfaces.SwigModuleGenerator.__exit__ | ( | self, | |
exc_type, | |||
exc_value, | |||
traceback | |||
) |
def generate_swig_interfaces.SwigModuleGenerator.addAutoGenWarning | ( | self | ) |
Adds a comment line telling that this file was generated automatically.
def generate_swig_interfaces.SwigModuleGenerator.addCppInclude | ( | self, | |
cHeader, | |||
comment = '' |
|||
) |
Adds a line for usual including C/C++ header file.
def generate_swig_interfaces.SwigModuleGenerator.addSwigEnableUnderCaseConvert | ( | self | ) |
def generate_swig_interfaces.SwigModuleGenerator.addSwigFeatureDirector | ( | self, | |
cClassName, | |||
comment = '' |
|||
) |
Adds a line enabling director feature for a C/C++ class.
def generate_swig_interfaces.SwigModuleGenerator.addSwigIgnore | ( | self, | |
identifier, | |||
comment = '' |
|||
) |
Adds a line instructing SWIG to ignore the matching identifie.
def generate_swig_interfaces.SwigModuleGenerator.addSwigIgnoreAll | ( | self | ) |
Adds a line instructing SWIG to ignore everything, but templates.
Unignoring templates does not work well in SWIG. Can be used for fine-grained control over what is wrapped
def generate_swig_interfaces.SwigModuleGenerator.addSwigImport | ( | self, | |
swigIFace, | |||
comment = '' |
|||
) |
Adds a line for importing SWIG interface file.
import statement notifies SWIG about class(es) covered in another module
def generate_swig_interfaces.SwigModuleGenerator.addSwigInclude | ( | self, | |
cHeader, | |||
comment = '' |
|||
) |
Adds a line for including C/C++ header file.
include statement makes SWIG to include the header into generated C/C++ file code AND to process it
def generate_swig_interfaces.SwigModuleGenerator.addSwigModuleHeadline | ( | self, | |
directors = False , |
|||
comment = '' |
|||
) |
Adds a line naming a module and enabling directors feature for inheritance in python (disabled by default)
def generate_swig_interfaces.SwigModuleGenerator.addSwigRename | ( | self, | |
identifier, | |||
newName, | |||
comment = '' |
|||
) |
Adds a line instructing SWIG to rename the matching identifie.
def generate_swig_interfaces.SwigModuleGenerator.addSwigTemplate | ( | self, | |
tSpec, | |||
newName | |||
) |
Adds a template specification tSpec and renames it as newName.
def generate_swig_interfaces.SwigModuleGenerator.addSwigUnignore | ( | self, | |
identifier | |||
) |
Adds a line instructing SWIG to unignore the matching identifie.
def generate_swig_interfaces.SwigModuleGenerator.addSwigUnignoreAll | ( | self | ) |
Adds a line instructing SWIG to unignore everything.
def generate_swig_interfaces.SwigModuleGenerator.write | ( | self, | |
code | |||
) |
Writes code into output stream os.
generate_swig_interfaces.SwigModuleGenerator.name |
generate_swig_interfaces.SwigModuleGenerator.os |
generate_swig_interfaces.SwigModuleGenerator.outFile |