Blender  V3.3
Functions | Variables
BPy_Iterator.cpp File Reference
#include "BPy_Iterator.h"
#include "BPy_Convert.h"
#include "Iterator/BPy_AdjacencyIterator.h"
#include "Iterator/BPy_ChainPredicateIterator.h"
#include "Iterator/BPy_ChainSilhouetteIterator.h"
#include "Iterator/BPy_ChainingIterator.h"
#include "Iterator/BPy_CurvePointIterator.h"
#include "Iterator/BPy_Interface0DIterator.h"
#include "Iterator/BPy_SVertexIterator.h"
#include "Iterator/BPy_StrokeVertexIterator.h"
#include "Iterator/BPy_ViewEdgeIterator.h"
#include "Iterator/BPy_orientedViewEdgeIterator.h"

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 *UNUSED(closure))
 
 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 *UNUSED(closure))
 
 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 *UNUSED(closure))
 

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 126 of file BPy_Iterator.cpp.

◆ Iterator_decrement()

static PyObject* Iterator_decrement ( BPy_Iterator self)
static

Definition at line 157 of file BPy_Iterator.cpp.

References self.

◆ Iterator_increment()

static PyObject* Iterator_increment ( BPy_Iterator self)
static

Definition at line 142 of file BPy_Iterator.cpp.

References self.

◆ Iterator_init()

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

Definition at line 115 of file BPy_Iterator.cpp.

◆ Iterator_Init()

int Iterator_Init ( PyObject *  module)

◆ Iterator_is_begin_get()

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

Definition at line 190 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 UNUSEDclosure 
)
static

Definition at line 200 of file BPy_Iterator.cpp.

References PyBool_from_bool(), and self.

◆ Iterator_name_get()

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

Definition at line 180 of file BPy_Iterator.cpp.

◆ Iterator_repr()

static PyObject* Iterator_repr ( BPy_Iterator self)
static

Definition at line 132 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_name_get(BPy_Iterator *self, void *UNUSED(closure))
static PyObject * Iterator_is_end_get(BPy_Iterator *self, void *UNUSED(closure))
static PyObject * Iterator_is_begin_get(BPy_Iterator *self, void *UNUSED(closure))

Definition at line 205 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_decrement(BPy_Iterator *self)
static PyObject * Iterator_increment(BPy_Iterator *self)

Definition at line 167 of file BPy_Iterator.cpp.

◆ Iterator_Type

PyTypeObject Iterator_Type

Definition at line 214 of file BPy_Iterator.cpp.

Referenced by Iterator_Init().