PythonMonkey   v0.9.1 (dev)
Loading...
Searching...
No Matches
JSObjectIterProxyMethodDefinitions Struct Reference

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

#include <JSObjectIterProxy.hh>

Static Public Member Functions

static void JSObjectIterProxy_dealloc (JSObjectIterProxy *self)
 Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSArrayProxy.
 
static int JSObjectIterProxy_traverse (JSObjectIterProxy *self, visitproc visit, void *arg)
 .tp_traverse method
 
static int JSObjectIterProxy_clear (JSObjectIterProxy *self)
 .tp_clear method
 
static PyObject * JSObjectIterProxy_iter (JSObjectIterProxy *self)
 .tp_iter method
 
static PyObject * JSObjectIterProxy_nextkey (JSObjectIterProxy *self)
 .tp_next method
 
static PyObject * JSObjectIterProxy_len (JSObjectIterProxy *self)
 length method
 

Detailed Description

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

Member Function Documentation

◆ JSObjectIterProxy_clear()

int JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_clear ( JSObjectIterProxy self)
static

.tp_clear method

Parameters
self- The JSObjectIterProxy
Returns
0 on success

◆ JSObjectIterProxy_dealloc()

void JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_dealloc ( JSObjectIterProxy self)
static

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

Parameters
self- The JSObjectIterProxy to be free'd

◆ JSObjectIterProxy_iter()

PyObject * JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_iter ( JSObjectIterProxy self)
static

.tp_iter method

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

◆ JSObjectIterProxy_len()

PyObject * JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_len ( JSObjectIterProxy self)
static

length method

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

◆ JSObjectIterProxy_nextkey()

PyObject * JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_nextkey ( JSObjectIterProxy self)
static

.tp_next method

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

◆ JSObjectIterProxy_traverse()

int JSObjectIterProxyMethodDefinitions::JSObjectIterProxy_traverse ( JSObjectIterProxy self,
visitproc  visit,
void *  arg 
)
static

.tp_traverse method

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