CPPStandaloneCodeObject class¶
(Shortest import: from brian2.devices.cpp_standalone import CPPStandaloneCodeObject)
-
class
brian2.devices.cpp_standalone.codeobject.
CPPStandaloneCodeObject
(owner, code, variables, variable_indices, template_name, template_source, name='codeobject*')[source]¶ Bases:
brian2.codegen.codeobject.CodeObject
C++ standalone code object
The
code
should be aMultiTemplate
object with two macros defined,main
(for the main loop code) andsupport_code
for any support code (e.g. function definitions).Methods
__call__
(…) <==> x(…)run
()Runs the code in the namespace. Details