PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
JSObjectItemsProxyMethodDefinitions Struct Reference

This struct is a bundle of methods used by the JSObjectItemsProxy type. More...

#include <JSObjectItemsProxy.hh>

Static Public Member Functions

static void JSObjectItemsProxy_dealloc (JSObjectItemsProxy *self)
 Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSObjectItemsProxy.
 
static int JSObjectItemsProxy_traverse (JSObjectItemsProxy *self, visitproc visit, void *arg)
 .tp_traverse method
 
static int JSObjectItemsProxy_clear (JSObjectItemsProxy *self)
 .tp_clear method
 
static Py_ssize_t JSObjectItemsProxy_length (JSObjectItemsProxy *self)
 Length method (.sq_length), returns the number of key-value pairs in the JSObject, used by the python len() method.
 
static PyObject * JSObjectItemsProxy_iter (JSObjectItemsProxy *self)
 Return an iterator object to make JSObjectItemsProxy iterable, emitting (key, value) tuples.
 
static PyObject * JSObjectItemsProxy_repr (JSObjectItemsProxy *self)
 Compute a string representation of the JSObjectItemsProxy.
 
static PyObject * JSObjectItemsProxy_iter_reverse (JSObjectItemsProxy *self)
 reverse iterator method
 
static PyObject * JSObjectItemsProxy_mapping (PyObject *self, void *Py_UNUSED(ignored))
 mapping method
 

Detailed Description

This struct is a bundle of methods used by the JSObjectItemsProxy type.

Member Function Documentation

◆ JSObjectItemsProxy_clear()

int JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_clear ( JSObjectItemsProxy self)
static

.tp_clear method

Parameters
self- The JSObjectItemsProxy
Returns
0 on success

◆ JSObjectItemsProxy_dealloc()

void JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_dealloc ( JSObjectItemsProxy self)
static

Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSObjectItemsProxy.

Parameters
self- The JSObjectItemsProxy to be free'd

◆ JSObjectItemsProxy_iter()

PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_iter ( JSObjectItemsProxy self)
static

Return an iterator object to make JSObjectItemsProxy iterable, emitting (key, value) tuples.

Parameters
self- The JSObjectItemsProxy
Returns
PyObject* - iterator object

◆ JSObjectItemsProxy_iter_reverse()

PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_iter_reverse ( JSObjectItemsProxy self)
static

reverse iterator method

Parameters
self- The JSObjectItemsProxy
Returns
PyObject* The resulting new dict

◆ JSObjectItemsProxy_length()

Py_ssize_t JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_length ( JSObjectItemsProxy self)
static

Length method (.sq_length), returns the number of key-value pairs in the JSObject, used by the python len() method.

Parameters
self- The JSObjectProxy
Returns
Py_ssize_t The length of the JSObjectProxy

◆ JSObjectItemsProxy_mapping()

PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_mapping ( PyObject *  self,
void *  Py_UNUSEDignored 
)
static

mapping method

Parameters
self- The JSObjectItemsProxy
Py_UNUSED
Returns
PyObject* The resulting new dict

◆ JSObjectItemsProxy_repr()

PyObject * JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_repr ( JSObjectItemsProxy self)
static

Compute a string representation of the JSObjectItemsProxy.

Parameters
self- The JSObjectItemsProxy
Returns
the string representation (a PyUnicodeObject) on success, NULL on failure

◆ JSObjectItemsProxy_traverse()

int JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_traverse ( JSObjectItemsProxy self,
visitproc  visit,
void *  arg 
)
static

.tp_traverse method

Parameters
self- The JSObjectItemsProxy
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: