Blender  V3.3
Functions | Variables
BPy_UnaryPredicate0D.cpp File Reference
#include "BPy_UnaryPredicate0D.h"
#include "BPy_Convert.h"
#include "Iterator/BPy_Interface0DIterator.h"
#include "UnaryPredicate0D/BPy_FalseUP0D.h"
#include "UnaryPredicate0D/BPy_TrueUP0D.h"

Go to the source code of this file.

Functions

int UnaryPredicate0D_Init (PyObject *module)
 
static int UnaryPredicate0D___init__ (BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
 
static void UnaryPredicate0D___dealloc__ (BPy_UnaryPredicate0D *self)
 
static PyObject * UnaryPredicate0D___repr__ (BPy_UnaryPredicate0D *self)
 
static PyObject * UnaryPredicate0D___call__ (BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (UnaryPredicate0D_name_doc, "The name of the unary 0D predicate.\n" "\n" ":type: str")
 
static PyObject * UnaryPredicate0D_name_get (BPy_UnaryPredicate0D *self, void *UNUSED(closure))
 

Variables

static char UnaryPredicate0D___doc__ []
 
static PyGetSetDef BPy_UnaryPredicate0D_getseters []
 
PyTypeObject UnaryPredicate0D_Type
 

Function Documentation

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( UnaryPredicate0D_name_doc  ,
"The name of the unary 0D predicate.\n" "\n" ":type: str  
)

◆ UnaryPredicate0D___call__()

static PyObject* UnaryPredicate0D___call__ ( BPy_UnaryPredicate0D self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 97 of file BPy_UnaryPredicate0D.cpp.

References Interface0DIterator_Type, PyBool_from_bool(), and self.

◆ UnaryPredicate0D___dealloc__()

static void UnaryPredicate0D___dealloc__ ( BPy_UnaryPredicate0D self)
static

Definition at line 86 of file BPy_UnaryPredicate0D.cpp.

◆ UnaryPredicate0D___init__()

static int UnaryPredicate0D___init__ ( BPy_UnaryPredicate0D self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 74 of file BPy_UnaryPredicate0D.cpp.

◆ UnaryPredicate0D___repr__()

static PyObject* UnaryPredicate0D___repr__ ( BPy_UnaryPredicate0D self)
static

Definition at line 92 of file BPy_UnaryPredicate0D.cpp.

References self.

◆ UnaryPredicate0D_Init()

int UnaryPredicate0D_Init ( PyObject *  module)

Definition at line 23 of file BPy_UnaryPredicate0D.cpp.

References FalseUP0D_Type, module, TrueUP0D_Type, and UnaryPredicate0D_Type.

Referenced by Freestyle_Init().

◆ UnaryPredicate0D_name_get()

static PyObject* UnaryPredicate0D_name_get ( BPy_UnaryPredicate0D self,
void UNUSEDclosure 
)
static

Definition at line 137 of file BPy_UnaryPredicate0D.cpp.

Variable Documentation

◆ BPy_UnaryPredicate0D_getseters

PyGetSetDef BPy_UnaryPredicate0D_getseters[]
static
Initial value:
= {
{"name",
(setter) nullptr,
UnaryPredicate0D_name_doc,
nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * UnaryPredicate0D_name_get(BPy_UnaryPredicate0D *self, void *UNUSED(closure))

Definition at line 142 of file BPy_UnaryPredicate0D.cpp.

◆ UnaryPredicate0D___doc__

char UnaryPredicate0D___doc__[]
static
Initial value:
=
"Base class for unary predicates that work on\n"
":class:`Interface0DIterator`. A UnaryPredicate0D is a functor that\n"
"evaluates a condition on an Interface0DIterator and returns true or\n"
"false depending on whether this condition is satisfied or not. The\n"
"UnaryPredicate0D is used by invoking its __call__() method. Any\n"
"inherited class must overload the __call__() method.\n"
"\n"
".. method:: __init__()\n"
"\n"
" Default constructor.\n"
"\n"
".. method:: __call__(it)\n"
"\n"
" Must be overload by inherited classes.\n"
"\n"
" :arg it: The Interface0DIterator pointing onto the Interface0D at\n"
" which we wish to evaluate the predicate.\n"
" :type it: :class:`Interface0DIterator`\n"
" :return: True if the condition is satisfied, false otherwise.\n"
" :rtype: bool\n"

Definition at line 52 of file BPy_UnaryPredicate0D.cpp.

◆ UnaryPredicate0D_Type

PyTypeObject UnaryPredicate0D_Type