|
PythonMonkey v1.3.0 (dev)
|
This struct is a bundle of methods used by the JSArrayProxy type. More...
#include <JSArrayProxy.hh>
Static Public Member Functions | |
| static void | JSArrayProxy_dealloc (JSArrayProxy *self) |
| Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSArrayProxy. | |
| static Py_ssize_t | JSArrayProxy_length (JSArrayProxy *self) |
| Length method (.mp_length and .sq_length), returns the number of keys in the JSObject, used by the python len() method. | |
| static PyObject * | JSArrayProxy_get (JSArrayProxy *self, PyObject *key) |
| returns a value from the JSArrayProxy given a key, or dispatches to the given key method if such method is found | |
| static PyObject * | JSArrayProxy_get_subscript (JSArrayProxy *self, PyObject *key) |
| Getter method (.mp_subscript), returns a value from the JSArrayProxy given a key which can be a slice, used by several built-in python methods as well as the [] and operator. | |
| static int | JSArrayProxy_assign_key (JSArrayProxy *self, PyObject *key, PyObject *value) |
| Assign method (.mp_ass_subscript), assigns a key-value pair if value is non-NULL, or deletes a key-value pair if value is NULL. | |
| static PyObject * | JSArrayProxy_richcompare (JSArrayProxy *self, PyObject *other, int op) |
| Comparison method (.tp_richcompare), returns appropriate boolean given a comparison operator and other pyObject. | |
| static PyObject * | JSArrayProxy_iter (JSArrayProxy *self) |
| Return an iterator object to make JSArrayProxy iterable. | |
| static PyObject * | JSArrayProxy_iter_reverse (JSArrayProxy *self) |
| Return a reverse iterator object to make JSArrayProxy backwards iterable. | |
| static PyObject * | JSArrayProxy_repr (JSArrayProxy *self) |
| Compute a string representation of the JSArrayProxy. | |
| static PyObject * | JSArrayProxy_concat (JSArrayProxy *self, PyObject *value) |
| concat method (.sq_concat), concatenates | |
| static PyObject * | JSArrayProxy_repeat (JSArrayProxy *self, Py_ssize_t n) |
| repeat method (.sq_repeat), repeat self n number of time | |
| static int | JSArrayProxy_contains (JSArrayProxy *self, PyObject *element) |
| Test contains method (.sq_contains) | |
| static PyObject * | JSArrayProxy_inplace_concat (JSArrayProxy *self, PyObject *value) |
| inplace_concat method (.sq_inplace_concat), concatenates in_place | |
| static PyObject * | JSArrayProxy_inplace_repeat (JSArrayProxy *self, Py_ssize_t n) |
| inplace_repeat method (.sq_inplace_repeat), repeats in_place | |
| static PyObject * | JSArrayProxy_clear_method (JSArrayProxy *self) |
| clear method, empties the array | |
| static PyObject * | JSArrayProxy_copy (JSArrayProxy *self) |
| copy method | |
| static PyObject * | JSArrayProxy_append (JSArrayProxy *self, PyObject *value) |
| append method | |
| static PyObject * | JSArrayProxy_insert (JSArrayProxy *self, PyObject *const *args, Py_ssize_t nargs) |
| insert method | |
| static PyObject * | JSArrayProxy_extend (JSArrayProxy *self, PyObject *iterable) |
| extend method | |
| static PyObject * | JSArrayProxy_pop (JSArrayProxy *self, PyObject *const *args, Py_ssize_t nargs) |
| pop method | |
| static PyObject * | JSArrayProxy_remove (JSArrayProxy *self, PyObject *value) |
| remove method Remove first occurrence of value | |
| static PyObject * | JSArrayProxy_index (JSArrayProxy *self, PyObject *const *args, Py_ssize_t nargs) |
| index method | |
| static PyObject * | JSArrayProxy_count (JSArrayProxy *self, PyObject *value) |
| count method | |
| static PyObject * | JSArrayProxy_reverse (JSArrayProxy *self) |
| reverse method Reverse list in place | |
| static PyObject * | JSArrayProxy_sort (JSArrayProxy *self, PyObject *args, PyObject *kwargs) |
| sort method sort in place | |
| static int | JSArrayProxy_traverse (JSArrayProxy *self, visitproc visit, void *arg) |
| tp_traverse | |
| static int | JSArrayProxy_clear (JSArrayProxy *self) |
| tp_clear | |
This struct is a bundle of methods used by the JSArrayProxy type.
|
static |
append method
| self | - The JSArrayProxy |
| value | - The value to be appended |
|
static |
Assign method (.mp_ass_subscript), assigns a key-value pair if value is non-NULL, or deletes a key-value pair if value is NULL.
| self | - The JSArrayProxy |
| key | - The key to be set or deleted |
| value | If NULL, the key-value pair is deleted, if not NULL then a key-value pair is assigned |
|
static |
|
static |
|
static |
concat method (.sq_concat), concatenates
| self | - The JSArrayProxy |
| value | - The value to be concatenated |
|
static |
Test contains method (.sq_contains)
| self | - The JSObjectProxy |
| element | - The element in the JSArrayProxy |
|
static |
|
static |
count method
| self | - The JSArrayProxy |
| value | - The value to be appended |
|
static |
Deallocation method (.tp_dealloc), removes the reference to the underlying JSObject before freeing the JSArrayProxy.
| self | - The JSArrayProxy to be free'd |
|
static |
extend method
| self | - The JSArrayProxy |
| iterable | - The value to be appended |
|
static |
returns a value from the JSArrayProxy given a key, or dispatches to the given key method if such method is found
| self | - The JSArrayProxy |
| key | - The key for the value in the JSArrayProxy |
|
static |
Getter method (.mp_subscript), returns a value from the JSArrayProxy given a key which can be a slice, used by several built-in python methods as well as the [] and operator.
| self | - The JSArrayProxy |
| key | - The key for the value in the JSArrayProxy |
|
static |
index method
| self | - The JSArrayProxy |
| args | - arguments to the index method |
| nargs | - number of arguments to the index method |
|
static |
inplace_concat method (.sq_inplace_concat), concatenates in_place
| self | - The JSArrayProxy |
| value | - The value to be concatenated |
|
static |
inplace_repeat method (.sq_inplace_repeat), repeats in_place
| self | - The JSArrayProxy |
| n | The number of times to repeat |
|
static |
insert method
| self | - The JSArrayProxy |
| args | - arguments to the insert method |
| nargs | - number of arguments to the insert method |
|
static |
Return an iterator object to make JSArrayProxy iterable.
| self | - The JSArrayProxy |
|
static |
Return a reverse iterator object to make JSArrayProxy backwards iterable.
| self | - The JSArrayProxy |
|
static |
Length method (.mp_length and .sq_length), returns the number of keys in the JSObject, used by the python len() method.
| self | - The JSArrayProxy |
|
static |
pop method
| self | - The JSArrayProxy |
| args | - arguments to the pop method |
| nargs | - number of arguments to the pop method |
|
static |
remove method Remove first occurrence of value
| self | - The JSArrayProxy |
| value | - The value to be appended |
|
static |
repeat method (.sq_repeat), repeat self n number of time
| self | - The JSArrayProxy |
| n | The number of times to repeat |
|
static |
Compute a string representation of the JSArrayProxy.
| self | - The JSArrayProxy |
|
static |
reverse method Reverse list in place
| self | - The JSArrayProxy |
|
static |
Comparison method (.tp_richcompare), returns appropriate boolean given a comparison operator and other pyObject.
| self | - The JSArrayProxy |
| other | - Any other PyObject |
| op | - Which boolean operator is being performed (Py_EQ for equality, Py_NE for inequality, all other operators are not implemented) |
|
static |
sort method sort in place
| self | - The JSArrayProxy |
| args | - arguments to the sort method (not used) |
| kwargs | - keyword arguments to the sort method (reverse=True|False, key=keyfunction) |
|
static |
tp_traverse
| self | - The JSArrayProxy |
| visit | - The function to be applied on each element of the list |
| arg | - The argument to the visit function |