Go to the source code of this file.
|
#define | VTOPERATOR_WRAP_PYTYPE_BASE(op, method, pytype, isRightVer) |
|
#define | VTOPERATOR_WRAP_PYTYPE(op, method, pytype) VTOPERATOR_WRAP_PYTYPE_BASE(op, method, pytype, false) |
|
#define | VTOPERATOR_WRAP_PYTYPE_R(op, method, pytype) VTOPERATOR_WRAP_PYTYPE_BASE(op, method, pytype, true) |
|
#define | VTOPERATOR_WRAP(lmethod, rmethod) |
|
#define | VTOPERATOR_WRAP_NONCOMM(lmethod, rmethod) |
|
#define | VTOPERATOR_WRAPDECLARE_BASE(op, method, rettype) |
|
#define | VTOPERATOR_WRAPDECLARE(op, lmethod, rmethod) |
|
#define | VTOPERATOR_WRAP_PYTYPE_BOOL_BASE(func, arg1, arg2, expr) |
|
#define | VTOPERATOR_WRAP_PYTYPE_BOOL(func, pytype, op) |
|
#define | VTOPERATOR_WRAP_BOOL(func, op) |
|
#define | VTOPERATOR_WRAPDECLARE_BOOL(func) |
|
#define VTOPERATOR_WRAP |
( |
|
lmethod, |
|
|
|
rmethod |
|
) |
| |
Value:
#define VTOPERATOR_WRAP_PYTYPE(op, method, pytype)
Definition at line 96 of file pyOperators.h.
#define VTOPERATOR_WRAP_BOOL |
( |
|
func, |
|
|
|
op |
|
) |
| |
Value:
#define VTOPERATOR_WRAP_PYTYPE_BOOL(func, pytype, op)
Definition at line 152 of file pyOperators.h.
#define VTOPERATOR_WRAP_NONCOMM |
( |
|
lmethod, |
|
|
|
rmethod |
|
) |
| |
Value:
#define VTOPERATOR_WRAP_PYTYPE(op, method, pytype)
#define VTOPERATOR_WRAP_PYTYPE_R(op, method, pytype)
Definition at line 103 of file pyOperators.h.
#define VTOPERATOR_WRAP_PYTYPE_BASE |
( |
|
op, |
|
|
|
method, |
|
|
|
pytype, |
|
|
|
isRightVer |
|
) |
| |
Value:template <typename T> static \
VtArray<T> method##pytype(
VtArray<T> vec, pytype obj) { \
if (length != vec.size()) {
\
#method); \
} \
VtArray<T> ret(vec.size());
\
if (!extract<T>(obj[i]).check())
\
ret[i] = _ArrayPyOpHelp<T>:: op ( \
(T)extract<T>(obj[i]), vec[i]); \
} \
else { \
ret[i] = _ArrayPyOpHelp<T>:: op ( \
vec[i], (T)extract<T>(obj[i])); \
} \
} \
return ret; \
}
GLuint GLsizei GLsizei * length
TF_API void TfPyThrowValueError(const char *msg)
* for(int i=0;i< n_subtasks;++i)*tasks.push(pool-> push(myfunc))
Definition at line 60 of file pyOperators.h.
#define VTOPERATOR_WRAP_PYTYPE_BOOL |
( |
|
func, |
|
|
|
pytype, |
|
|
|
op |
|
) |
| |
Value:
(vec[i] op (T)extract<T>(obj[i])) )
\
((T)extract<T>(obj[i]) op vec[i]) )
#define VTOPERATOR_WRAP_PYTYPE_BOOL_BASE(func, arg1, arg2, expr)
Definition at line 144 of file pyOperators.h.
#define VTOPERATOR_WRAP_PYTYPE_BOOL_BASE |
( |
|
func, |
|
|
|
arg1, |
|
|
|
arg2, |
|
|
|
expr |
|
) |
| |
Value:template <typename T> static \
VtArray<bool> Vt##
func(arg1, arg2) \
{ \
if (length != vec.size()) {
\
} \
VtArray<bool> ret(vec.size());
\
if (!extract<T>(obj[i]).check())
\
ret[i] = expr; \
} \
return ret; \
}
GLuint GLsizei GLsizei * length
TF_API void TfPyThrowValueError(const char *msg)
* for(int i=0;i< n_subtasks;++i)*tasks.push(pool-> push(myfunc))
Definition at line 124 of file pyOperators.h.
#define VTOPERATOR_WRAPDECLARE |
( |
|
op, |
|
|
|
lmethod, |
|
|
|
rmethod |
|
) |
| |
Value:
.def(#rmethod,rmethod##tuple<Type>) \
.def(#rmethod,rmethod##list<Type>)
#define VTOPERATOR_WRAPDECLARE_BASE(op, method, rettype)
Definition at line 117 of file pyOperators.h.
#define VTOPERATOR_WRAPDECLARE_BASE |
( |
|
op, |
|
|
|
method, |
|
|
|
rettype |
|
) |
| |
Value:.def(self op self) \
.def(#method,method##tuple<rettype>) \
.def(#method,method##list<rettype>)
Definition at line 110 of file pyOperators.h.
#define VTOPERATOR_WRAPDECLARE_BOOL |
( |
|
func | ) |
|