NEURON
neuron::python::impl_ptrs Struct Reference

Collection of pointers to functions with python-version-specific implementations. More...

#include <nrnpy.h>

Public Member Functions

Object ** try_gui_helper (const char *name, Object *obj) const
 

Public Attributes

Object *(* callable_with_args )(Object *, int narg)
 
double(* call_func )(Object *, int, int *)
 
std::vector< char >(* call_picklef )(const std::vector< char > &, int narg)
 
void(* call_python_with_section )(Object *, Section *)
 
void(* cmdtool )(Object *, int type, double x, double y, int kd)
 
int(* guigetstr )(Object *, char **)
 
double(* guigetval )(Object *)
 
Object **(* gui_helper )(const char *name, Object *obj)
 
Object **(* gui_helper3 )(const char *name, Object *obj, int handle_strptr)
 
char **(* gui_helper3_str )(const char *, Object *, int)
 
void(* guisetval )(Object *, double)
 
int(* hoccommand_exec )(Object *)
 
int(* hoccommand_exec_strret )(Object *, char *, int)
 
void(* hoc_nrnpython )()
 
PyObject *(* ho2po )(Object *)
 
void(* hpoasgn )(Object *, int)
 
void(* interpreter_set_path )(std::string_view)
 
int(* interpreter_start )(int)
 
Object *(* mpi_alltoall_type )(int, int)
 
double(* object_to_double )(Object *)
 
void *(* opaque_obj2pyobj )(Object *)
 
Object *(* pickle2po )(const std::vector< char > &)
 
Object *(* po2ho )(PyObject *)
 
std::vector< char >(* po2pickle )(Object *)
 
double(* praxis_efun )(Object *pycallable, Object *hvec)
 
int(* pysame )(Object *o1, Object *o2)
 
void(* py2n_component )(Object *, Symbol *, int, int)
 
void(* restore_thread )(PyThreadState *)
 
PyThreadState *(* save_thread )()
 

Detailed Description

Collection of pointers to functions with python-version-specific implementations.

When dynamic Python is enabled, these are filled in from a python-version-specific libnrnpythonX.Y library and then called from python-version-agnostic code inside NEURON.

Definition at line 25 of file nrnpy.h.

Member Function Documentation

◆ try_gui_helper()

Object** neuron::python::impl_ptrs::try_gui_helper ( const char *  name,
Object obj 
) const
inline

Definition at line 56 of file nrnpy.h.

Member Data Documentation

◆ call_func

double(* neuron::python::impl_ptrs::call_func) (Object *, int, int *)
inline

Definition at line 27 of file nrnpy.h.

◆ call_picklef

std::vector<char>(* neuron::python::impl_ptrs::call_picklef) (const std::vector< char > &, int narg)
inline

Definition at line 27 of file nrnpy.h.

◆ call_python_with_section

void(* neuron::python::impl_ptrs::call_python_with_section) (Object *, Section *)
inline

Definition at line 29 of file nrnpy.h.

◆ callable_with_args

Object*(* neuron::python::impl_ptrs::callable_with_args) (Object *, int narg)
inline

Definition at line 26 of file nrnpy.h.

◆ cmdtool

void(* neuron::python::impl_ptrs::cmdtool) (Object *, int type, double x, double y, int kd)
inline

Definition at line 30 of file nrnpy.h.

◆ gui_helper

Object**(* neuron::python::impl_ptrs::gui_helper) (const char *name, Object *obj)
inline

Definition at line 33 of file nrnpy.h.

◆ gui_helper3

Object**(* neuron::python::impl_ptrs::gui_helper3) (const char *name, Object *obj, int handle_strptr)
inline

Definition at line 34 of file nrnpy.h.

◆ gui_helper3_str

char**(* neuron::python::impl_ptrs::gui_helper3_str) (const char *, Object *, int)
inline

Definition at line 35 of file nrnpy.h.

◆ guigetstr

int(* neuron::python::impl_ptrs::guigetstr) (Object *, char **)
inline

Definition at line 31 of file nrnpy.h.

◆ guigetval

double(* neuron::python::impl_ptrs::guigetval) (Object *)
inline

Definition at line 32 of file nrnpy.h.

◆ guisetval

void(* neuron::python::impl_ptrs::guisetval) (Object *, double)
inline

Definition at line 36 of file nrnpy.h.

◆ ho2po

PyObject*(* neuron::python::impl_ptrs::ho2po) (Object *)
inline

Definition at line 40 of file nrnpy.h.

◆ hoc_nrnpython

void(* neuron::python::impl_ptrs::hoc_nrnpython) ()
inline

Definition at line 39 of file nrnpy.h.

◆ hoccommand_exec

int(* neuron::python::impl_ptrs::hoccommand_exec) (Object *)
inline

Definition at line 37 of file nrnpy.h.

◆ hoccommand_exec_strret

int(* neuron::python::impl_ptrs::hoccommand_exec_strret) (Object *, char *, int)
inline

Definition at line 38 of file nrnpy.h.

◆ hpoasgn

void(* neuron::python::impl_ptrs::hpoasgn) (Object *, int)
inline

Definition at line 41 of file nrnpy.h.

◆ interpreter_set_path

void(* neuron::python::impl_ptrs::interpreter_set_path) (std::string_view)
inline

Definition at line 42 of file nrnpy.h.

◆ interpreter_start

int(* neuron::python::impl_ptrs::interpreter_start) (int)
inline

Definition at line 43 of file nrnpy.h.

◆ mpi_alltoall_type

Object*(* neuron::python::impl_ptrs::mpi_alltoall_type) (int, int)
inline

Definition at line 44 of file nrnpy.h.

◆ object_to_double

double(* neuron::python::impl_ptrs::object_to_double) (Object *)
inline

Definition at line 45 of file nrnpy.h.

◆ opaque_obj2pyobj

void*(* neuron::python::impl_ptrs::opaque_obj2pyobj) (Object *)
inline

Definition at line 46 of file nrnpy.h.

◆ pickle2po

Object*(* neuron::python::impl_ptrs::pickle2po) (const std::vector< char > &)
inline

Definition at line 47 of file nrnpy.h.

◆ po2ho

Object*(* neuron::python::impl_ptrs::po2ho) (PyObject *)
inline

Definition at line 48 of file nrnpy.h.

◆ po2pickle

std::vector<char>(* neuron::python::impl_ptrs::po2pickle) (Object *)
inline

Definition at line 48 of file nrnpy.h.

◆ praxis_efun

double(* neuron::python::impl_ptrs::praxis_efun) (Object *pycallable, Object *hvec)
inline

Definition at line 50 of file nrnpy.h.

◆ py2n_component

void(* neuron::python::impl_ptrs::py2n_component) (Object *, Symbol *, int, int)
inline

Definition at line 52 of file nrnpy.h.

◆ pysame

int(* neuron::python::impl_ptrs::pysame) (Object *o1, Object *o2)
inline

Definition at line 51 of file nrnpy.h.

◆ restore_thread

void(* neuron::python::impl_ptrs::restore_thread) (PyThreadState *)
inline

Definition at line 53 of file nrnpy.h.

◆ save_thread

PyThreadState*(* neuron::python::impl_ptrs::save_thread) ()
inline

Definition at line 54 of file nrnpy.h.


The documentation for this struct was generated from the following file: