PythonMonkey   v0.8.2 (dev)
Loading...
Searching...
No Matches
JSArrayIterProxyMethodDefinitions Struct Reference

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

#include <JSArrayIterProxy.hh>

Static Public Member Functions

static void JSArrayIterProxy_dealloc (JSArrayIterProxy *self)
 Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSArrayProxy.
 
static int JSArrayIterProxy_traverse (JSArrayIterProxy *self, visitproc visit, void *arg)
 .tp_traverse method
 
static int JSArrayIterProxy_clear (JSArrayIterProxy *self)
 .tp_clear method
 
static PyObject * JSArrayIterProxy_iter (JSArrayIterProxy *self)
 .tp_iter method
 
static PyObject * JSArrayIterProxy_next (JSArrayIterProxy *self)
 .tp_next method
 
static PyObject * JSArrayIterProxy_len (JSArrayIterProxy *self)
 length method
 

Detailed Description

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

Member Function Documentation

◆ JSArrayIterProxy_clear()

int JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_clear ( JSArrayIterProxy self)
static

.tp_clear method

Parameters
self- The JSArrayIterProxy
Returns
0 on success

◆ JSArrayIterProxy_dealloc()

void JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_dealloc ( JSArrayIterProxy self)
static

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

Parameters
self- The JSArrayIterProxy to be free'd

◆ JSArrayIterProxy_iter()

PyObject * JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_iter ( JSArrayIterProxy self)
static

.tp_iter method

Parameters
self- The JSArrayIterProxy
Returns
PyObject* - an interator over the iterator

◆ JSArrayIterProxy_len()

PyObject * JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_len ( JSArrayIterProxy self)
static

length method

Parameters
self- The JSArrayIterProxy
Returns
PyObject* - number of objects left to iterate over in iteration

◆ JSArrayIterProxy_next()

PyObject * JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_next ( JSArrayIterProxy self)
static

.tp_next method

Parameters
self- The JSArrayIterProxy
Returns
PyObject* - next object in iteration

◆ JSArrayIterProxy_traverse()

int JSArrayIterProxyMethodDefinitions::JSArrayIterProxy_traverse ( JSArrayIterProxy self,
visitproc  visit,
void *  arg 
)
static

.tp_traverse method

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