|
Max API
8.2.0
|
Collaboration diagram for Linked List Module:Functions | |
| void * | jit_linklist_new (void) |
| Constructs instance of t_jit_linklist. More... | |
| t_atom_long | jit_linklist_getsize (t_jit_linklist *x) |
| Retrieves the linked list size. More... | |
| void * | jit_linklist_getindex (t_jit_linklist *x, long index) |
| Retrieves the object at the specified list index. More... | |
| t_atom_long | jit_linklist_objptr2index (t_jit_linklist *x, void *p) |
| Retrieves the list index for an object pointer. More... | |
| t_atom_long | jit_linklist_makearray (t_jit_linklist *x, void **a, long max) |
| Flatten the linked list into an array. More... | |
| t_atom_long | jit_linklist_insertindex (t_jit_linklist *x, void *o, long index) |
| Insert object at specified index. More... | |
| t_atom_long | jit_linklist_append (t_jit_linklist *x, void *o) |
| Append object to the end of the linked list. More... | |
| t_atom_long | jit_linklist_deleteindex (t_jit_linklist *x, long index) |
| Delete object at specified index, freeing the object. More... | |
| t_atom_long | jit_linklist_chuckindex (t_jit_linklist *x, long index) |
| Remove object at specified index, without freeing the object. More... | |
| void | jit_linklist_clear (t_jit_linklist *x) |
| Clears the linked list, freeing all objects in list. More... | |
| void | jit_linklist_chuck (t_jit_linklist *x) |
| Removes all objects from the linked list, without freeing any objects in list. More... | |
| void | jit_linklist_reverse (t_jit_linklist *x) |
| Reverses the order of objects in the linked list. More... | |
| void | jit_linklist_rotate (t_jit_linklist *x, long i) |
| Rotates the order of objects in the linked list, by the specified number of indeces. More... | |
| void | jit_linklist_shuffle (t_jit_linklist *x) |
| Randomizes the order of objects in the linked list. More... | |
| void | jit_linklist_swap (t_jit_linklist *x, long a, long b) |
| Swap list location of the indeces specified. More... | |
| void | jit_linklist_findfirst (t_jit_linklist *x, void **o, long cmpfn(void *, void *), void *cmpdata) |
| Retrieves the first object that satisfies the comparison function. More... | |
| void | jit_linklist_findall (t_jit_linklist *x, t_jit_linklist **out, long cmpfn(void *, void *), void *cmpdata) |
| Retrieves a linked list of all objects that satisfy the comparison function. More... | |
| t_atom_long | jit_linklist_findcount (t_jit_linklist *x, long cmpfn(void *, void *), void *cmpdata) |
| Retrieves the number of objects that satisfy the comparison function. More... | |
| void | jit_linklist_methodall (t_jit_linklist *x, t_symbol *s,...) |
| Calls a method on all objects in linked list. More... | |
| void * | jit_linklist_methodindex (t_jit_linklist *x, long i, t_symbol *s,...) |
| Calls a method on the object at the specified index. More... | |
| void | jit_linklist_sort (t_jit_linklist *x, long cmpfn(void *, void *)) |
| Sorts linked list based on the provided comparison function. More... | |
| t_atom_long jit_linklist_append | ( | t_jit_linklist * | x, |
| void * | o | ||
| ) |
Append object to the end of the linked list.
| x | t_jit_linklist object pointer |
| o | object pointer |
References linklist_append().
Referenced by jit_matrix_op(), max_jit_classex_addattr(), and max_jit_obex_proxy_new().
Here is the call graph for this function:| void jit_linklist_chuck | ( | t_jit_linklist * | x | ) |
Removes all objects from the linked list, without freeing any objects in list.
To remove all objects from the linked list, freeing the objects, use the jit_linklist_clear method.
| x | t_jit_linklist object pointer |
References linklist_chuck().
Referenced by jit_matrix_op(), and jit_object_importattrs().
Here is the call graph for this function:| t_atom_long jit_linklist_chuckindex | ( | t_jit_linklist * | x, |
| long | index | ||
| ) |
Remove object at specified index, without freeing the object.
This method will not free the object. To remove from the linked list and free the object, use the jit_linklist_deleteindex method.
| x | t_jit_linklist object pointer |
| index | index to remove (zero based) |
References linklist_chuckindex().
Here is the call graph for this function:| void jit_linklist_clear | ( | t_jit_linklist * | x | ) |
Clears the linked list, freeing all objects in list.
To remove all elements from the linked list without freeing the objects, use the jit_linklist_chuck method.
| x | t_jit_linklist object pointer |
References linklist_clear().
Here is the call graph for this function:| t_atom_long jit_linklist_deleteindex | ( | t_jit_linklist * | x, |
| long | index | ||
| ) |
Delete object at specified index, freeing the object.
To remove from the linked list without freeing the object, use the jit_linklist_chuckindex method.
| x | t_jit_linklist object pointer |
| index | index to delete (zero based) |
References linklist_deleteindex().
Here is the call graph for this function:| void jit_linklist_findall | ( | t_jit_linklist * | x, |
| t_jit_linklist ** | out, | ||
| long | cmpfnvoid *, void *, | ||
| void * | cmpdata | ||
| ) |
Retrieves a linked list of all objects that satisfy the comparison function.
| x | t_jit_linklist object pointer |
| out | pointer to linked list containing all objects found found (set to NULL, if not found) |
| cmpfn | comparison function pointer (should returns 1 if object matches data, otherwise 0) |
| cmpdata | opaque data used in comparison function |
References linklist_findall().
Here is the call graph for this function:| t_atom_long jit_linklist_findcount | ( | t_jit_linklist * | x, |
| long | cmpfnvoid *, void *, | ||
| void * | cmpdata | ||
| ) |
Retrieves the number of objects that satisfy the comparison function.
| x | t_jit_linklist object pointer |
| cmpfn | comparison function pointer (should returns 1 if object matches data, otherwise 0) |
| cmpdata | opaque data used in comparison function |
References linklist_chuck(), linklist_findall(), and linklist_getsize().
Here is the call graph for this function:| void jit_linklist_findfirst | ( | t_jit_linklist * | x, |
| void ** | o, | ||
| long | cmpfnvoid *, void *, | ||
| void * | cmpdata | ||
| ) |
Retrieves the first object that satisfies the comparison function.
| x | t_jit_linklist object pointer |
| o | pointer to object pointer found (set to NULL, if not found) |
| cmpfn | comparison function pointer (should returns 1 if object matches data, otherwise 0) |
| cmpdata | opaque data used in comparison function |
References linklist_findfirst().
Referenced by max_jit_obex_attr_get(), and max_jit_obex_attr_set().
Here is the call graph for this function:| void* jit_linklist_getindex | ( | t_jit_linklist * | x, |
| long | index | ||
| ) |
Retrieves the object at the specified list index.
| x | t_jit_linklist object pointer |
| index | list index () |
References linklist_getindex().
Referenced by jit_object_importattrs().
Here is the call graph for this function:| t_atom_long jit_linklist_getsize | ( | t_jit_linklist * | x | ) |
Retrieves the linked list size.
| x | t_jit_linklist object pointer |
References linklist_getsize().
Referenced by jit_object_importattrs().
Here is the call graph for this function:| t_atom_long jit_linklist_insertindex | ( | t_jit_linklist * | x, |
| void * | o, | ||
| long | index | ||
| ) |
Insert object at specified index.
| x | t_jit_linklist object pointer |
| o | object pointer |
| index | index (zero based) |
References linklist_insertindex().
Here is the call graph for this function:| t_atom_long jit_linklist_makearray | ( | t_jit_linklist * | x, |
| void ** | a, | ||
| long | max | ||
| ) |
Flatten the linked list into an array.
| x | t_jit_linklist object pointer |
| a | array pointer |
| max | maximum array size |
References linklist_makearray().
Here is the call graph for this function:| void jit_linklist_methodall | ( | t_jit_linklist * | x, |
| t_symbol * | s, | ||
| ... | |||
| ) |
Calls a method on all objects in linked list.
Equivalent to calling jit_object_method on the object at each index.
| x | t_jit_linklist object pointer |
| s | method name |
| ... | untyped arguments |
References linklist_methodall().
Here is the call graph for this function:| void* jit_linklist_methodindex | ( | t_jit_linklist * | x, |
| long | i, | ||
| t_symbol * | s, | ||
| ... | |||
| ) |
Calls a method on the object at the specified index.
Equivalent to calling jit_object_method on the object.
| x | t_jit_linklist object pointer |
| i | index |
| s | method name |
| ... | untyped arguments |
References linklist_methodindex().
Here is the call graph for this function:| void* jit_linklist_new | ( | void | ) |
Constructs instance of t_jit_linklist.
References linklist_new().
Referenced by jit_matrix_op(), max_jit_classex_addattr(), and max_jit_obex_proxy_new().
Here is the call graph for this function:| t_atom_long jit_linklist_objptr2index | ( | t_jit_linklist * | x, |
| void * | p | ||
| ) |
Retrieves the list index for an object pointer.
| x | t_jit_linklist object pointer |
| p | object pointer |
References linklist_objptr2index().
Here is the call graph for this function:| void jit_linklist_reverse | ( | t_jit_linklist * | x | ) |
Reverses the order of objects in the linked list.
| x | t_jit_linklist object pointer |
References linklist_reverse().
Here is the call graph for this function:| void jit_linklist_rotate | ( | t_jit_linklist * | x, |
| long | i | ||
| ) |
Rotates the order of objects in the linked list, by the specified number of indeces.
| x | t_jit_linklist object pointer |
| i | rotation index count |
References linklist_rotate().
Here is the call graph for this function:| void jit_linklist_shuffle | ( | t_jit_linklist * | x | ) |
Randomizes the order of objects in the linked list.
| x | t_jit_linklist object pointer |
References linklist_shuffle().
Here is the call graph for this function:| void jit_linklist_sort | ( | t_jit_linklist * | x, |
| long | cmpfnvoid *, void * | ||
| ) |
Sorts linked list based on the provided comparison function.
| x | t_jit_linklist object pointer |
| cmpfn | comparison function pointer (returns 0 if a>b, otherwise 1) |
References linklist_sort().
Here is the call graph for this function:| void jit_linklist_swap | ( | t_jit_linklist * | x, |
| long | a, | ||
| long | b | ||
| ) |
Swap list location of the indeces specified.
| x | t_jit_linklist object pointer |
| a | index a |
| b | index b |
References linklist_swap().
Here is the call graph for this function: