NEURON
nrnpy_nrn.h File Reference

Go to the source code of this file.

Variables

static PyType_Slot nrnpy_SectionType_slots []
 
static PyType_Spec nrnpy_SectionType_spec
 
static PyType_Slot nrnpy_AllSegOfSecIterType_slots []
 
static PyType_Spec nrnpy_AllSegOfSecIterType_spec
 
static PyType_Slot nrnpy_SegOfSecIterType_slots []
 
static PyType_Spec nrnpy_SegOfSecIterType_spec
 
static PyType_Slot nrnpy_SegmentType_slots []
 
static PyType_Spec nrnpy_SegmentType_spec
 
static PyType_Slot nrnpy_MechOfSegIterType_slots []
 
static PyType_Spec nrnpy_MechOfSegIterType_spec
 
static PyType_Slot nrnpy_MechanismType_slots []
 
static PyType_Spec nrnpy_MechanismType_spec
 
static PyType_Slot nrnpy_MechFuncType_slots []
 
static PyType_Spec nrnpy_MechFuncType_spec
 
static PyType_Slot nrnpy_VarOfMechIterType_slots []
 
static PyType_Spec nrnpy_VarOfMechIterType_spec
 
static PyType_Slot nrnpy_RangeType_slots []
 
static PyType_Spec nrnpy_RangeType_spec
 
static PyType_Slot nrnpy_OpaquePointerType_slots []
 
static PyType_Spec nrnpy_OpaquePointerType_spec
 
static struct PyModuleDef nrnmodule
 
static struct PyModuleDef nrnsectionmodule
 

Variable Documentation

◆ nrnmodule

struct PyModuleDef nrnmodule
static
Initial value:
= {PyModuleDef_HEAD_INIT,
"nrn",
"NEURON interaction with Python",
-1,
static PyMethodDef nrnpy_methods[]
Definition: nrnpy_nrn.cpp:2981
#define NULL
Definition: spdefs.h:105

Definition at line 173 of file nrnpy_nrn.h.

◆ nrnpy_AllSegOfSecIterType_slots

PyType_Slot nrnpy_AllSegOfSecIterType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyAllSegOfSecIter_dealloc_safe},
{Py_tp_iter, (void*) allseg_of_sec_iter_safe},
{Py_tp_iternext, (void*) allseg_of_sec_next_safe},
{Py_tp_init, (void*) NPyAllSegOfSecIter_init_safe},
{Py_tp_new, (void*) NPyAllSegOfSecIter_new_safe},
{Py_tp_doc, (void*) "Iterate over all Segments of a Section, including x=0 and 1"},
{0, 0},
}
static PyObject * allseg_of_sec_next_safe(NPyAllSegOfSecIter *self)
Definition: nrnpy_nrn.cpp:1676
static void NPyAllSegOfSecIter_dealloc_safe(NPyAllSegOfSecIter *self)
Definition: nrnpy_nrn.cpp:288
PyObject * NPyAllSegOfSecIter_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:508
static PyObject * allseg_of_sec_iter_safe(NPyAllSegOfSecIter *self)
Definition: nrnpy_nrn.cpp:1647
static int NPyAllSegOfSecIter_init_safe(NPyAllSegOfSecIter *self, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:478

Definition at line 26 of file nrnpy_nrn.h.

◆ nrnpy_AllSegOfSecIterType_spec

PyType_Spec nrnpy_AllSegOfSecIterType_spec
static
Initial value:
= {
"nrn.AllsegIter",
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_AllSegOfSecIterType_slots[]
Definition: nrnpy_nrn.h:26

Definition at line 35 of file nrnpy_nrn.h.

◆ nrnpy_MechanismType_slots

PyType_Slot nrnpy_MechanismType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyMechObj_dealloc_safe},
{Py_tp_repr, (void*) pymech_repr_safe},
{Py_tp_getattro, (void*) mech_getattro_safe},
{Py_tp_setattro, (void*) mech_setattro_safe},
{Py_tp_iter, (void*) var_of_mech_iter_safe},
{Py_tp_methods, (void*) NPyMechObj_methods},
{Py_tp_members, (void*) NPyMechObj_members},
{Py_tp_init, (void*) NPyMechObj_init_safe},
{Py_tp_new, (void*) NPyMechObj_new_safe},
{Py_tp_doc, (void*) "Mechanism objects"},
{0, 0},
}
static int NPyMechObj_init_safe(NPyMechObj *self, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:692
static int mech_setattro_safe(NPyMechObj *self, PyObject *pyname, PyObject *value)
Definition: nrnpy_nrn.cpp:2622
static PyObject * NPyMechObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:565
static PyMemberDef NPyMechObj_members[]
Definition: nrnpy_nrn.cpp:2964
static PyMethodDef NPyMechObj_methods[]
Definition: nrnpy_nrn.cpp:2933
static PyObject * pymech_repr_safe(PyObject *p)
Definition: nrnpy_nrn.cpp:1410
static PyObject * mech_getattro_safe(NPyMechObj *self, PyObject *pyname)
Definition: nrnpy_nrn.cpp:2568
static PyObject * var_of_mech_iter_safe(NPyMechObj *self)
Definition: nrnpy_nrn.cpp:2166
static void NPyMechObj_dealloc_safe(NPyMechObj *self)
Definition: nrnpy_nrn.cpp:333

Definition at line 98 of file nrnpy_nrn.h.

◆ nrnpy_MechanismType_spec

PyType_Spec nrnpy_MechanismType_spec
static
Initial value:
= {
"nrn.Mechanism",
sizeof(NPyMechObj),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_MechanismType_slots[]
Definition: nrnpy_nrn.h:98

Definition at line 111 of file nrnpy_nrn.h.

◆ nrnpy_MechFuncType_slots

PyType_Slot nrnpy_MechFuncType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyMechFunc_dealloc_safe},
{Py_tp_repr, (void*) pymechfunc_repr_safe},
{Py_tp_methods, (void*) NPyMechFunc_methods},
{Py_tp_call, (void*) NPyMechFunc_call_safe},
{Py_tp_doc, (void*) "Mechanism Function"},
{0, 0},
}
static PyMethodDef NPyMechFunc_methods[]
Definition: nrnpy_nrn.cpp:2948
static PyObject * NPyMechFunc_call_safe(NPyMechFunc *self, PyObject *args)
Definition: nrnpy_nrn.cpp:1369
static void NPyMechFunc_dealloc_safe(NPyMechFunc *self)
Definition: nrnpy_nrn.cpp:371
static PyObject * pymechfunc_repr_safe(PyObject *p)
Definition: nrnpy_nrn.cpp:1419

Definition at line 119 of file nrnpy_nrn.h.

◆ nrnpy_MechFuncType_spec

PyType_Spec nrnpy_MechFuncType_spec
static
Initial value:
= {
"nrn.MechFunc",
sizeof(NPyMechFunc),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_MechFuncType_slots[]
Definition: nrnpy_nrn.h:119

Definition at line 127 of file nrnpy_nrn.h.

◆ nrnpy_MechOfSegIterType_slots

PyType_Slot nrnpy_MechOfSegIterType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyMechOfSegIter_dealloc_safe},
{Py_tp_iter, (void*) PyObject_SelfIter},
{Py_tp_iternext, (void*) mech_of_seg_next_safe},
{Py_tp_doc, (void*) "Iterate over Mechanisms in a Segment of a Section"},
{0, 0},
}
static void NPyMechOfSegIter_dealloc_safe(NPyMechOfSegIter *self)
Definition: nrnpy_nrn.cpp:381
static PyObject * mech_of_seg_next_safe(NPyMechOfSegIter *self)
Definition: nrnpy_nrn.cpp:2146

Definition at line 83 of file nrnpy_nrn.h.

◆ nrnpy_MechOfSegIterType_spec

PyType_Spec nrnpy_MechOfSegIterType_spec
static
Initial value:
= {
"nrn.MechOfSegIter",
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_MechOfSegIterType_slots[]
Definition: nrnpy_nrn.h:83

Definition at line 90 of file nrnpy_nrn.h.

◆ nrnpy_OpaquePointerType_slots

PyType_Slot nrnpy_OpaquePointerType_slots[]
static
Initial value:
= {
{Py_tp_doc, (void*) "Opaque pointer."},
{0, 0},
}

Definition at line 169 of file nrnpy_nrn.h.

◆ nrnpy_OpaquePointerType_spec

PyType_Spec nrnpy_OpaquePointerType_spec
static
Initial value:
= {
"nrn.OpaquePointer",
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_OpaquePointerType_slots[]
Definition: nrnpy_nrn.h:169

Definition at line 173 of file nrnpy_nrn.h.

◆ nrnpy_RangeType_slots

PyType_Slot nrnpy_RangeType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyRangeVar_dealloc_safe},
{Py_tp_methods, (void*) NPyRangeVar_methods},
{Py_tp_init, (void*) NPyRangeVar_init_safe},
{Py_tp_new, (void*) NPyRangeVar_new_safe},
{Py_tp_doc, (void*) "Range Variable Array objects"},
{Py_sq_length, (void*) rv_len_safe},
{Py_sq_item, (void*) rv_getitem_safe},
{Py_sq_ass_item, (void*) rv_setitem_safe},
{0, 0},
}
static PyObject * NPyRangeVar_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:590
static int rv_setitem_safe(PyObject *self, Py_ssize_t ix, PyObject *value)
Definition: nrnpy_nrn.cpp:2759
static PyObject * rv_getitem_safe(PyObject *self, Py_ssize_t ix)
Definition: nrnpy_nrn.cpp:2706
static Py_ssize_t rv_len_safe(PyObject *self)
Definition: nrnpy_nrn.cpp:2668
static int NPyRangeVar_init_safe(NPyRangeVar *self, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:700
static PyMethodDef NPyRangeVar_methods[]
Definition: nrnpy_nrn.cpp:2956
static void NPyRangeVar_dealloc_safe(NPyRangeVar *self)
Definition: nrnpy_nrn.cpp:321

Definition at line 150 of file nrnpy_nrn.h.

◆ nrnpy_RangeType_spec

PyType_Spec nrnpy_RangeType_spec
static
Initial value:
= {
"nrn.RangeVar",
sizeof(NPyRangeVar),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_RangeType_slots[]
Definition: nrnpy_nrn.h:150

Definition at line 161 of file nrnpy_nrn.h.

◆ nrnpy_SectionType_slots

PyType_Slot nrnpy_SectionType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPySecObj_dealloc},
{Py_tp_repr, (void*) pysec_repr_safe},
{Py_tp_hash, (void*) pysec_hash_safe},
{Py_tp_call, (void*) NPySecObj_call_safe},
{Py_tp_getattro, (void*) section_getattro_safe},
{Py_tp_setattro, (void*) section_setattro_safe},
{Py_tp_richcompare, (void*) pysec_richcmp_safe},
{Py_tp_iter, (void*) seg_of_section_iter_safe},
{Py_tp_methods, (void*) NPySecObj_methods},
{Py_tp_init, (void*) NPySecObj_init_safe},
{Py_tp_new, (void*) NPySecObj_new_safe},
{Py_tp_doc, (void*) "Section objects"},
{Py_sq_contains, (void*) NPySecObj_contains_safe},
{0, 0},
}
static void NPySecObj_dealloc(NPySecObj *self)
Definition: nrnpy_nrn.cpp:256
PyObject * NPySecObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:493
static int NPySecObj_contains_safe(PyObject *sec, PyObject *obj)
Definition: nrnpy_nrn.cpp:221
static PyObject * pysec_richcmp_safe(NPySecObj *self, PyObject *other, int op)
Definition: nrnpy_nrn.cpp:1298
static PyMethodDef NPySecObj_methods[]
Definition: nrnpy_nrn.cpp:2763
static PyObject * pysec_repr_safe(PyObject *p)
Definition: nrnpy_nrn.cpp:969
static PyObject * NPySecObj_call_safe(NPySecObj *self, PyObject *args)
Definition: nrnpy_nrn.cpp:2654
static long pysec_hash_safe(PyObject *self)
Definition: nrnpy_nrn.cpp:1253
static PyObject * section_getattro_safe(NPySecObj *self, PyObject *pyname)
Definition: nrnpy_nrn.cpp:2030
static int NPySecObj_init_safe(NPySecObj *self, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:460
static PyObject * seg_of_section_iter_safe(NPySecObj *self)
Definition: nrnpy_nrn.cpp:1623
static int section_setattro_safe(NPySecObj *self, PyObject *pyname, PyObject *value)
Definition: nrnpy_nrn.cpp:2121

Definition at line 1 of file nrnpy_nrn.h.

◆ nrnpy_SectionType_spec

PyType_Spec nrnpy_SectionType_spec
static
Initial value:
= {
"nrn.Section",
sizeof(NPySecObj),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_SectionType_slots[]
Definition: nrnpy_nrn.h:1

Definition at line 17 of file nrnpy_nrn.h.

◆ nrnpy_SegmentType_slots

PyType_Slot nrnpy_SegmentType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPySegObj_dealloc_safe},
{Py_tp_repr, (void*) pyseg_repr_safe},
{Py_tp_hash, (void*) pyseg_hash_safe},
{Py_tp_getattro, (void*) segment_getattro_safe},
{Py_tp_setattro, (void*) segment_setattro_safe},
{Py_tp_richcompare, (void*) pyseg_richcmp_safe},
{Py_tp_iter, (void*) mech_of_segment_iter_safe},
{Py_tp_methods, (void*) NPySegObj_methods},
{Py_tp_members, (void*) NPySegObj_members},
{Py_tp_init, (void*) NPySegObj_init},
{Py_tp_new, (void*) NPySegObj_new_safe},
{Py_tp_doc, (void*) "Segment objects"},
{Py_sq_contains, (void*) NPySegObj_contains_safe},
{0, 0},
}
static PyObject * NPySegObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
Definition: nrnpy_nrn.cpp:544
static PyMethodDef NPySegObj_methods[]
Definition: nrnpy_nrn.cpp:2905
static int NPySegObj_contains_safe(PyObject *segment, PyObject *obj)
Definition: nrnpy_nrn.cpp:574
static PyObject * segment_getattro_safe(NPySegObj *self, PyObject *pyname)
Definition: nrnpy_nrn.cpp:2304
static PyObject * mech_of_segment_iter_safe(NPySegObj *self)
Definition: nrnpy_nrn.cpp:1898
static PyObject * pyseg_richcmp_safe(NPySegObj *self, PyObject *other, int op)
Definition: nrnpy_nrn.cpp:1277
static void NPySegObj_dealloc_safe(NPySegObj *self)
Definition: nrnpy_nrn.cpp:310
static int NPySegObj_init(NPySegObj *self, PyObject *, PyObject *)
Definition: nrnpy_nrn.cpp:594
static PyMemberDef NPySegObj_members[]
Definition: nrnpy_nrn.cpp:2928
static long pyseg_hash_safe(PyObject *self)
Definition: nrnpy_nrn.cpp:1262
static PyObject * pyseg_repr_safe(PyObject *p)
Definition: nrnpy_nrn.cpp:984
static int segment_setattro_safe(NPySegObj *self, PyObject *pyname, PyObject *value)
Definition: nrnpy_nrn.cpp:2407

Definition at line 59 of file nrnpy_nrn.h.

◆ nrnpy_SegmentType_spec

PyType_Spec nrnpy_SegmentType_spec
static
Initial value:
= {
"nrn.Segment",
sizeof(NPySegObj),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_SegmentType_slots[]
Definition: nrnpy_nrn.h:59

Definition at line 75 of file nrnpy_nrn.h.

◆ nrnpy_SegOfSecIterType_slots

PyType_Slot nrnpy_SegOfSecIterType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPySegOfSecIter_dealloc_safe},
{Py_tp_iter, (void*) PyObject_SelfIter},
{Py_tp_iternext, (void*) seg_of_sec_next_safe},
{Py_tp_doc,
(void*) "Iterate over nonzero area Segments of a Section (does not include x=0 and 1)"},
{0, 0},
}
static void NPySegOfSecIter_dealloc_safe(NPySegOfSecIter *self)
Definition: nrnpy_nrn.cpp:299
static PyObject * seg_of_sec_next_safe(NPySegOfSecIter *self)
Definition: nrnpy_nrn.cpp:1699

Definition at line 43 of file nrnpy_nrn.h.

◆ nrnpy_SegOfSecIterType_spec

PyType_Spec nrnpy_SegOfSecIterType_spec
static
Initial value:
= {
"nrn.SegOfSecIter",
sizeof(NPySegOfSecIter),
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_SegOfSecIterType_slots[]
Definition: nrnpy_nrn.h:43

Definition at line 51 of file nrnpy_nrn.h.

◆ nrnpy_VarOfMechIterType_slots

PyType_Slot nrnpy_VarOfMechIterType_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*) NPyVarOfMechIter_dealloc_safe},
{Py_tp_iter, (void*) PyObject_SelfIter},
{Py_tp_iternext, (void*) var_of_mech_next_safe},
{Py_tp_doc, (void*) "Iterate over variables in a Mechanism"},
{0, 0},
}
static PyObject * var_of_mech_next_safe(NPyVarOfMechIter *self)
Definition: nrnpy_nrn.cpp:2186
static void NPyVarOfMechIter_dealloc_safe(NPyVarOfMechIter *self)
Definition: nrnpy_nrn.cpp:391

Definition at line 135 of file nrnpy_nrn.h.

◆ nrnpy_VarOfMechIterType_spec

PyType_Spec nrnpy_VarOfMechIterType_spec
static
Initial value:
= {
"nrn.VarOfMechIter",
0,
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
}
static PyType_Slot nrnpy_VarOfMechIterType_slots[]
Definition: nrnpy_nrn.h:135

Definition at line 142 of file nrnpy_nrn.h.

◆ nrnsectionmodule

struct PyModuleDef nrnsectionmodule
static
Initial value:
= {PyModuleDef_HEAD_INIT,
"_neuron_section",
"NEURON interaction with Python",
-1,

Definition at line 173 of file nrnpy_nrn.h.