NEURON
nrnpy_hoc.h File Reference
#include "nrnpython.h"

Go to the source code of this file.

Variables

static PyType_Slot nrnpy_HocObjectType_slots []
 
static struct PyModuleDef hocmodule
 

Variable Documentation

◆ hocmodule

struct PyModuleDef hocmodule
static
Initial value:
= {PyModuleDef_HEAD_INIT,
"hoc",
"HOC interaction with Python",
-1,
static PyMethodDef HocMethods[]
Definition: nrnpy_hoc.cpp:227
#define NULL
Definition: spdefs.h:105

Definition at line 3 of file nrnpy_hoc.h.

◆ nrnpy_HocObjectType_slots

PyType_Slot nrnpy_HocObjectType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) hocobj_dealloc},
{Py_tp_repr, (void*) hocobj_repr},
{Py_tp_hash, (void*) hocobj_hash},
{Py_tp_call, (void*) hocobj_call},
{Py_tp_getattro, (void*) hocobj_getattro},
{Py_tp_setattro, (void*) hocobj_setattro},
{Py_tp_richcompare, (void*) hocobj_richcmp},
{Py_tp_iter, (void*) &hocobj_iter},
{Py_tp_iternext, (void*) &hocobj_iternext},
{Py_tp_methods, (void*) hocobj_methods},
{Py_tp_init, (void*) hocobj_init},
{Py_tp_new, (void*) hocobj_new},
{Py_nb_bool, (void*) hocobj_nonzero},
{Py_sq_length, (void*) hocobj_len},
{Py_mp_subscript, (void*) hocobj_slice_getitem},
{Py_sq_item, (void*) hocobj_getitem},
{Py_mp_ass_subscript, (void*) hocobj_slice_setitem},
{Py_sq_ass_item, (void*) hocobj_setitem},
{Py_nb_add, (PyObject*) py_hocobj_add},
{Py_nb_subtract, (PyObject*) py_hocobj_sub},
{Py_nb_multiply, (PyObject*) py_hocobj_mul},
{Py_nb_negative, (PyObject*) py_hocobj_uneg},
{Py_nb_positive, (PyObject*) py_hocobj_upos},
{Py_nb_absolute, (PyObject*) py_hocobj_uabs},
{Py_nb_true_divide, (PyObject*) py_hocobj_div},
{0, 0},
}
_object PyObject
Definition: nrnpy.h:12
static void hocobj_dealloc(PyHocObject *self)
Definition: nrnpy_hoc.cpp:235
static PyObject * hocobj_getattro(PyObject *subself, PyObject *name)
Definition: nrnpy_hoc.cpp:1423
static int hocobj_slice_setitem(PyObject *self, PyObject *slice, PyObject *arg)
Definition: nrnpy_hoc.cpp:2223
static PyObject * py_hocobj_add(PyObject *obj1, PyObject *obj2)
Definition: nrnpy_hoc.cpp:3165
static PyObject * hocobj_iter(PyObject *raw_self)
Definition: nrnpy_hoc.cpp:1757
static PyObject * py_hocobj_uabs(PyObject *obj)
Definition: nrnpy_hoc.cpp:3169
static int hocobj_init(PyObject *subself, PyObject *args, PyObject *kwds)
Definition: nrnpy_hoc.cpp:320
static PyObject * hocobj_call(PyHocObject *self, PyObject *args, PyObject *kwrds)
Definition: nrnpy_hoc.cpp:782
static PyObject * hocobj_slice_getitem(PyObject *self, PyObject *slice)
Definition: nrnpy_hoc.cpp:2073
static PyObject * py_hocobj_uneg(PyObject *obj)
Definition: nrnpy_hoc.cpp:3173
static PyObject * py_hocobj_upos(PyObject *obj)
Definition: nrnpy_hoc.cpp:3177
static int hocobj_setattro(PyObject *subself, PyObject *pyname, PyObject *value)
Definition: nrnpy_hoc.cpp:1455
static PyObject * py_hocobj_div(PyObject *obj1, PyObject *obj2)
Definition: nrnpy_hoc.cpp:3189
static int hocobj_setitem(PyObject *self, Py_ssize_t i, PyObject *arg)
Definition: nrnpy_hoc.cpp:2102
static PyMethodDef hocobj_methods[]
Definition: nrnpy_hoc.cpp:3072
static PyObject * hocobj_richcmp(PyHocObject *self, PyObject *other, int op)
Definition: nrnpy_hoc.cpp:2422
static PyObject * hocobj_repr(PyObject *p)
Definition: nrnpy_hoc.cpp:405
static PyObject * py_hocobj_sub(PyObject *obj1, PyObject *obj2)
Definition: nrnpy_hoc.cpp:3181
static PyObject * hocobj_getitem(PyObject *self, Py_ssize_t ix)
Definition: nrnpy_hoc.cpp:1933
static int hocobj_nonzero(PyObject *self)
Definition: nrnpy_hoc.cpp:1718
static Py_ssize_t hocobj_len(PyObject *self)
Definition: nrnpy_hoc.cpp:1692
static PyObject * hocobj_iternext(PyObject *self)
Definition: nrnpy_hoc.cpp:1906
static long hocobj_hash(PyHocObject *self)
Definition: nrnpy_hoc.cpp:2392
static PyObject * hocobj_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
Definition: nrnpy_hoc.cpp:262
static PyObject * py_hocobj_mul(PyObject *obj1, PyObject *obj2)
Definition: nrnpy_hoc.cpp:3185

Definition at line 3 of file nrnpy_hoc.h.