#include "pybind11.h"
Go to the source code of this file.
Classes | |
struct | op_< id, ot, L, R > |
Operator implementation generator. More... | |
struct | op_impl< op_id, op_type, B, L, R > |
base template of operator implementations More... | |
struct | self_t |
struct | undefined_t |
Type for an unused type slot. More... | |
Macros | |
#define | PYBIND11_BINARY_OPERATOR(id, rid, op, expr) |
#define | PYBIND11_INPLACE_OPERATOR(id, op, expr) |
#define | PYBIND11_UNARY_OPERATOR(id, op, expr) |
Enumerations | |
enum | op_id : int { op_add, op_sub, op_mul, op_div, op_mod, op_divmod, op_pow, op_lshift, op_rshift, op_and, op_xor, op_or, op_neg, op_pos, op_abs, op_invert, op_int, op_long, op_float, op_str, op_cmp, op_gt, op_ge, op_lt, op_le, op_eq, op_ne, op_iadd, op_isub, op_imul, op_idiv, op_imod, op_ilshift, op_irshift, op_iand, op_ixor, op_ior, op_complex, op_bool, op_nonzero, op_repr, op_truediv, op_itruediv, op_hash } |
Enumeration with all supported operator types. More... | |
enum | op_type : int { op_l, op_r, op_u } |
Functions | |
self_t | __self () |
Don't warn about an unused variable. More... | |
Variables | |
static const self_t | self = self_t() |
#define PYBIND11_BINARY_OPERATOR | ( | id, | |
rid, | |||
op, | |||
expr | |||
) |
Definition at line 105 of file operators.h.
#define PYBIND11_INPLACE_OPERATOR | ( | id, | |
op, | |||
expr | |||
) |
Definition at line 130 of file operators.h.
#define PYBIND11_UNARY_OPERATOR | ( | id, | |
op, | |||
expr | |||
) |
Definition at line 142 of file operators.h.
Enumeration with all supported operator types.
Definition at line 18 of file operators.h.
Enumerator | |
---|---|
op_l | |
op_r | |
op_u |
Definition at line 65 of file operators.h.
|
inline |
Don't warn about an unused variable.
Definition at line 78 of file operators.h.
Definition at line 72 of file operators.h.