This struct is a bundle of methods used by the JSObjectValuesProxy type.
More...
#include <JSObjectValuesProxy.hh>
|
static void | JSObjectValuesProxy_dealloc (JSObjectValuesProxy *self) |
| Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSObjectValuesProxy.
|
|
static int | JSObjectValuesProxy_traverse (JSObjectValuesProxy *self, visitproc visit, void *arg) |
| .tp_traverse method
|
|
static int | JSObjectValuesProxy_clear (JSObjectValuesProxy *self) |
| .tp_clear method
|
|
static Py_ssize_t | JSObjectValuesProxy_length (JSObjectValuesProxy *self) |
| Length method (.sq_length), returns the number of key-value pairs in the JSObject, used by the python len() method.
|
|
static int | JSObjectValuesProxy_contains (JSObjectValuesProxy *self, PyObject *key) |
| Test method (.sq_contains), returns whether a key exists, used by the in operator.
|
|
static PyObject * | JSObjectValuesProxy_iter (JSObjectValuesProxy *self) |
| Return an iterator object to make JSObjectValuesProxy iterable, emitting (key, value) tuples.
|
|
static PyObject * | JSObjectValuesProxy_repr (JSObjectValuesProxy *self) |
| Compute a string representation of the JSObjectValuesProxy.
|
|
static PyObject * | JSObjectValuesProxy_iter_reverse (JSObjectValuesProxy *self) |
| reverse iterator method
|
|
static PyObject * | JSObjectValuesProxy_mapping (PyObject *self, void *Py_UNUSED(ignored)) |
| mapping method
|
|
This struct is a bundle of methods used by the JSObjectValuesProxy type.
◆ JSObjectValuesProxy_clear()
int JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_clear |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
.tp_clear method
- Parameters
-
- Returns
- 0 on success
◆ JSObjectValuesProxy_contains()
int JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_contains |
( |
JSObjectValuesProxy * |
self, |
|
|
PyObject * |
key |
|
) |
| |
|
static |
Test method (.sq_contains), returns whether a key exists, used by the in operator.
- Parameters
-
- Returns
- int 1 if
key
is in dict, 0 if not, and -1 on error
◆ JSObjectValuesProxy_dealloc()
void JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_dealloc |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSObjectValuesProxy.
- Parameters
-
◆ JSObjectValuesProxy_iter()
PyObject * JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_iter |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
Return an iterator object to make JSObjectValuesProxy iterable, emitting (key, value) tuples.
- Parameters
-
- Returns
- PyObject* - iterator object
◆ JSObjectValuesProxy_iter_reverse()
PyObject * JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_iter_reverse |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
reverse iterator method
- Parameters
-
- Returns
- PyObject* The resulting new dict
◆ JSObjectValuesProxy_length()
Py_ssize_t JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_length |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
Length method (.sq_length), returns the number of key-value pairs in the JSObject, used by the python len() method.
- Parameters
-
- Returns
- Py_ssize_t The length of the JSObjectProxy
◆ JSObjectValuesProxy_mapping()
PyObject * JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_mapping |
( |
PyObject * |
self, |
|
|
void * |
Py_UNUSEDignored |
|
) |
| |
|
static |
mapping method
- Parameters
-
- Returns
- PyObject* The resulting new dict
◆ JSObjectValuesProxy_repr()
PyObject * JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_repr |
( |
JSObjectValuesProxy * |
self | ) |
|
|
static |
Compute a string representation of the JSObjectValuesProxy.
- Parameters
-
- Returns
- the string representation (a PyUnicodeObject) on success, NULL on failure
◆ JSObjectValuesProxy_traverse()
int JSObjectValuesProxyMethodDefinitions::JSObjectValuesProxy_traverse |
( |
JSObjectValuesProxy * |
self, |
|
|
visitproc |
visit, |
|
|
void * |
arg |
|
) |
| |
|
static |
.tp_traverse method
- Parameters
-
self | - The JSObjectValuesProxy |
visit | - The function to be applied on each element of the list |
arg | - The argument to the visit function |
- Returns
- 0 on success
The documentation for this struct was generated from the following files: