Blender V4.3
BPy_Iterator.cpp File Reference

Go to the source code of this file.

Functions

int Iterator_Init (PyObject *module)
 
 PyDoc_STRVAR (Iterator_doc, "Base class to define iterators.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.")
 
static int Iterator_init (BPy_Iterator *self, PyObject *args, PyObject *kwds)
 
static void Iterator_dealloc (BPy_Iterator *self)
 
static PyObject * Iterator_repr (BPy_Iterator *self)
 
 PyDoc_STRVAR (Iterator_increment_doc, ".. method:: increment()\n" "\n" " Makes the iterator point the next element.")
 
static PyObject * Iterator_increment (BPy_Iterator *self)
 
 PyDoc_STRVAR (Iterator_decrement_doc, ".. method:: decrement()\n" "\n" " Makes the iterator point the previous element.")
 
static PyObject * Iterator_decrement (BPy_Iterator *self)
 
 PyDoc_STRVAR (Iterator_name_doc, "The string of the name of this iterator.\n" "\n" ":type: str")
 
static PyObject * Iterator_name_get (BPy_Iterator *self, void *)
 
 PyDoc_STRVAR (Iterator_is_begin_doc, "True if the iterator points to the first element.\n" "\n" ":type: bool")
 
static PyObject * Iterator_is_begin_get (BPy_Iterator *self, void *)
 
 PyDoc_STRVAR (Iterator_is_end_doc, "True if the iterator points to the last element.\n" "\n" ":type: bool")
 
static PyObject * Iterator_is_end_get (BPy_Iterator *self, void *)
 

Variables

static PyMethodDef BPy_Iterator_methods []
 
static PyGetSetDef BPy_Iterator_getseters []
 
PyTypeObject Iterator_Type
 

Function Documentation

◆ Iterator_dealloc()

static void Iterator_dealloc ( BPy_Iterator * self)
static

Definition at line 121 of file BPy_Iterator.cpp.

References self.

◆ Iterator_decrement()

static PyObject * Iterator_decrement ( BPy_Iterator * self)
static

Definition at line 156 of file BPy_Iterator.cpp.

References self.

◆ Iterator_increment()

static PyObject * Iterator_increment ( BPy_Iterator * self)
static

Definition at line 139 of file BPy_Iterator.cpp.

References self.

◆ Iterator_Init()

◆ Iterator_init()

static int Iterator_init ( BPy_Iterator * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 110 of file BPy_Iterator.cpp.

References self.

◆ Iterator_is_begin_get()

static PyObject * Iterator_is_begin_get ( BPy_Iterator * self,
void *  )
static

Definition at line 193 of file BPy_Iterator.cpp.

References PyBool_from_bool(), and self.

◆ Iterator_is_end_get()

static PyObject * Iterator_is_end_get ( BPy_Iterator * self,
void *  )
static

Definition at line 205 of file BPy_Iterator.cpp.

References PyBool_from_bool(), and self.

◆ Iterator_name_get()

static PyObject * Iterator_name_get ( BPy_Iterator * self,
void *  )
static

Definition at line 181 of file BPy_Iterator.cpp.

References self.

◆ Iterator_repr()

static PyObject * Iterator_repr ( BPy_Iterator * self)
static

Definition at line 127 of file BPy_Iterator.cpp.

References self.

◆ PyDoc_STRVAR() [1/6]

PyDoc_STRVAR ( Iterator_decrement_doc ,
".. method:: decrement()\n" "\n" " Makes the iterator point the previous element."  )

◆ PyDoc_STRVAR() [2/6]

PyDoc_STRVAR ( Iterator_doc ,
"Base class to define iterators.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor."  )

◆ PyDoc_STRVAR() [3/6]

PyDoc_STRVAR ( Iterator_increment_doc ,
".. method:: increment()\n" "\n" " Makes the iterator point the next element."  )

◆ PyDoc_STRVAR() [4/6]

PyDoc_STRVAR ( Iterator_is_begin_doc ,
"True if the iterator points to the first element.\n" "\n" ":type: bool"  )

◆ PyDoc_STRVAR() [5/6]

PyDoc_STRVAR ( Iterator_is_end_doc ,
"True if the iterator points to the last element.\n" "\n" ":type: bool"  )

◆ PyDoc_STRVAR() [6/6]

PyDoc_STRVAR ( Iterator_name_doc ,
"The string of the name of this iterator.\n" "\n" ":type: str"  )

Variable Documentation

◆ BPy_Iterator_getseters

PyGetSetDef BPy_Iterator_getseters[]
static
Initial value:
= {
{"name", (getter)Iterator_name_get, (setter) nullptr, Iterator_name_doc, nullptr},
{"is_begin", (getter)Iterator_is_begin_get, (setter) nullptr, Iterator_is_begin_doc, nullptr},
{"is_end", (getter)Iterator_is_end_get, (setter) nullptr, Iterator_is_end_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * Iterator_is_end_get(BPy_Iterator *self, void *)
static PyObject * Iterator_is_begin_get(BPy_Iterator *self, void *)
static PyObject * Iterator_name_get(BPy_Iterator *self, void *)

Definition at line 210 of file BPy_Iterator.cpp.

◆ BPy_Iterator_methods

PyMethodDef BPy_Iterator_methods[]
static
Initial value:
= {
{"increment", (PyCFunction)Iterator_increment, METH_NOARGS, Iterator_increment_doc},
{"decrement", (PyCFunction)Iterator_decrement, METH_NOARGS, Iterator_decrement_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Iterator_increment(BPy_Iterator *self)
static PyObject * Iterator_decrement(BPy_Iterator *self)

Definition at line 166 of file BPy_Iterator.cpp.

◆ Iterator_Type

PyTypeObject Iterator_Type

Definition at line 219 of file BPy_Iterator.cpp.

Referenced by Iterator_Init().