Functions | |
long | jit_object_classname_compare (void *x, t_symbol *name) |
Compares object's class name with the name provided. More... | |
t_symbol * | jit_object_method_argsafe_get (void *x, t_symbol *s) |
Checks to see if symbol is safe to call as an attribute style argument. More... | |
void * | jit_object_new_imp (void *cn, void *p1, void *p2, void *p3, void *p4, void *p5, void *p6, void *p7, void *p8, void *dummy) |
Instantiates an object specified by class name. More... | |
void * | jit_object_method_imp (void *x, void *s, void *p1, void *p2, void *p3, void *p4, void *p5, void *p6, void *p7, void *p8) |
Calls an object method specified by method name. More... | |
void * | jit_object_method_typed (void *x, t_symbol *s, long ac, t_atom *av, t_atom *rv) |
Calls a typed object method specified by method name. More... | |
method | jit_object_getmethod (void *x, t_symbol *s) |
Retrieves an object method specified by method name. More... | |
long | jit_object_attr_usercanset (void *x, t_symbol *s) |
Determines if an object attribute is user settable. More... | |
long | jit_object_attr_usercanget (void *x, t_symbol *s) |
Determines if an object attribute is user gettable. More... | |
void * | jit_object_attr_get (void *x, t_symbol *attrname) |
Retrieves an object's attribute pointer specified by attribute name. More... | |
t_jit_err | jit_object_free (void *x) |
Frees an object. More... | |
t_symbol * | jit_object_classname (void *x) |
Retrieves an object's class name. More... | |
void * | jit_object_class (void *x) |
Retrieves an object's class pointer. More... | |
void * | jit_object_register (void *x, t_symbol *s) |
Registers an object in the named object registry. More... | |
t_jit_err | jit_object_unregister (void *x) |
Unregisters an object from the named object registry. More... | |
void * | jit_object_findregistered (t_symbol *s) |
Retrieves a registered object associated with name. More... | |
t_symbol * | jit_object_findregisteredbyptr (void *x) |
Retrieves a registered object's name. More... | |
void * | jit_object_attach (t_symbol *s, void *x) |
Attaches an object as a client of a named server object for notification. More... | |
t_jit_err | jit_object_detach (t_symbol *s, void *x) |
Detaches a client object from a named server object. More... | |
t_jit_err | jit_object_notify (void *x, t_symbol *s, void *data) |
Notifies all client objects for a named server object. More... | |
t_jit_err | jit_object_importattrs (void *x, t_symbol *s, long argc, t_atom *argv) |
Imports object attributes from an XML file. More... | |
t_jit_err | jit_object_exportattrs (void *x, t_symbol *s, long argc, t_atom *argv) |
Exports object attributes to an XML file. More... | |
t_jit_err | jit_object_exportsummary (void *x, t_symbol *s, long argc, t_atom *argv) |
Exports object summary to an XML file. More... | |
void* jit_object_attach | ( | t_symbol * | s, |
void * | x | ||
) |
Attaches an object as a client of a named server object for notification.
s | name of server object |
x | client object pointer |
References object_attach().
Referenced by max_jit_mop_inputs(), max_jit_mop_notify(), max_jit_mop_outputs(), and max_jit_ob3d_attach().
void* jit_object_attr_get | ( | void * | x, |
t_symbol * | attrname | ||
) |
Retrieves an object's attribute pointer specified by attribute name.
x | object pointer |
attrname | attribute name |
References object_attr_get().
long jit_object_attr_usercanget | ( | void * | x, |
t_symbol * | s | ||
) |
Determines if an object attribute is user gettable.
x | object pointer |
s | attribute name |
References object_attr_usercanget().
long jit_object_attr_usercanset | ( | void * | x, |
t_symbol * | s | ||
) |
Determines if an object attribute is user settable.
x | object pointer |
s | attribute name |
References object_attr_usercanset().
Referenced by max_jit_attr_args().
void* jit_object_class | ( | void * | x | ) |
Retrieves an object's class pointer.
x | object pointer |
References object_class().
Referenced by jit_object_method_argsafe_get(), and max_jit_mop_setup().
t_symbol* jit_object_classname | ( | void * | x | ) |
Retrieves an object's class name.
x | object pointer |
References object_classname().
Referenced by jit_gl_begincapture(), jit_ob3d_free(), jit_ob3d_new(), jit_object_classname_compare(), and jit_object_exportattrs().
long jit_object_classname_compare | ( | void * | x, |
t_symbol * | name | ||
) |
Compares object's class name with the name provided.
x | object pointer |
name | name to compare with class name |
References jit_object_classname().
Referenced by max_jit_obex_adornment_get().
t_jit_err jit_object_detach | ( | t_symbol * | s, |
void * | x | ||
) |
Detaches a client object from a named server object.
s | name of server object |
x | client object pointer |
References jit_err_from_max_err(), and object_detach().
Referenced by max_jit_mop_free(), and max_jit_ob3d_detach().
Exports object attributes to an XML file.
x | object pointer |
s | ignored |
argc | argument count |
argv | argument vector |
References _jit_sym_getname, freebytes(), gensym(), jit_atom_setsym(), jit_object_classname(), jit_object_free(), object_attr_get(), t_symbol::s_name, and symbolarray_sort().
Referenced by jit_class_new(), and max_jit_classex_standard_wrap().
Exports object summary to an XML file.
x | object pointer |
s | ignored |
argc | argument count |
argv | argument vector |
Referenced by max_jit_classex_standard_wrap().
void * jit_object_findregistered | ( | t_symbol * | s | ) |
Retrieves a registered object associated with name.
s | registered name |
Referenced by jit_gl_begincapture(), jit_matrix_jit_gl_texture(), jit_matrix_op(), max_jit_mop_jit_matrix(), and max_jit_mop_notify().
t_symbol* jit_object_findregisteredbyptr | ( | void * | x | ) |
Retrieves a registered object's name.
x | object pointer |
References object_findregisteredbyptr().
t_jit_err jit_object_free | ( | void * | x | ) |
Frees an object.
x | object pointer |
References jit_err_from_max_err(), and object_free().
Referenced by jit_glchunk_delete(), jit_matrix_exprfill(), jit_matrix_new(), jit_matrix_newcopy(), jit_matrix_op(), jit_mop_free(), jit_mop_new(), jit_mop_newcopy(), jit_ob3d_free(), jit_object_exportattrs(), jit_object_importattrs(), max_jit_mop_adapt_matrix_all(), max_jit_mop_free(), and max_jit_obex_free().
Retrieves an object method specified by method name.
x | object pointer |
s | method name |
References object_getmethod().
Referenced by jit_attr_filterget(), jit_attr_filterset(), and jit_ob3d_new().
Imports object attributes from an XML file.
x | object pointer |
s | ignored |
argc | argument count |
argv | argument vector |
References _jit_sym_name, freebytes(), gensym(), jit_linklist_chuck(), jit_linklist_getindex(), jit_linklist_getsize(), jit_object_free(), and object_attr_setvalueof().
Referenced by jit_class_new(), and max_jit_classex_standard_wrap().
Checks to see if symbol is safe to call as an attribute style argument.
x | object pointer |
s | name as used via argument |
References jit_class_method_argsafe_get(), and jit_object_class().
Referenced by max_jit_attr_args().
void* jit_object_method_imp | ( | void * | x, |
void * | s, | ||
void * | p1, | ||
void * | p2, | ||
void * | p3, | ||
void * | p4, | ||
void * | p5, | ||
void * | p6, | ||
void * | p7, | ||
void * | p8 | ||
) |
Calls an object method specified by method name.
This operation is untyped, and the contents of the stack following the method name argument are blindly passed to the method called.
x | object pointer |
s | method name |
p1 | untyped arguments passed on to the method |
p2 | untyped arguments passed on to the method |
p3 | untyped arguments passed on to the method |
p4 | untyped arguments passed on to the method |
p5 | untyped arguments passed on to the method |
p6 | untyped arguments passed on to the method |
p7 | untyped arguments passed on to the method |
p8 | untyped arguments passed on to the method |
Calls a typed object method specified by method name.
This operation only supports methods which are typed–i.e. it cannot be used to call private, untyped A_CANT methods.
x | object pointer |
s | method name |
ac | argument count |
av | argument vector |
rv | return value for A_GIMMEBACK methods |
References object_method_typed().
void* jit_object_new_imp | ( | void * | cn, |
void * | p1, | ||
void * | p2, | ||
void * | p3, | ||
void * | p4, | ||
void * | p5, | ||
void * | p6, | ||
void * | p7, | ||
void * | p8, | ||
void * | dummy | ||
) |
Instantiates an object specified by class name.
This function may used to create instances of any Jitter object.
cn | class name |
p1 | untyped arguments passed on to the constructor |
p2 | untyped arguments passed on to the constructor |
p3 | untyped arguments passed on to the constructor |
p4 | untyped arguments passed on to the constructor |
p5 | untyped arguments passed on to the constructor |
p6 | untyped arguments passed on to the constructor |
p7 | untyped arguments passed on to the constructor |
p8 | untyped arguments passed on to the constructor |
dummy | unused |
t_jit_err jit_object_notify | ( | void * | x, |
t_symbol * | s, | ||
void * | data | ||
) |
Notifies all client objects for a named server object.
x | server object pointer |
s | notification message |
data | message specific data |
References object_notify().
Referenced by jit_matrix_setinfo(), jit_matrix_setinfo_ex(), and jit_ob3d_draw_chunk().
void* jit_object_register | ( | void * | x, |
t_symbol * | s | ||
) |
Registers an object in the named object registry.
x | object pointer |
s | object name |
References object_register().
Referenced by max_jit_mop_inputs(), max_jit_mop_notify(), and max_jit_mop_outputs().
t_jit_err jit_object_unregister | ( | void * | x | ) |
Unregisters an object from the named object registry.
x | object pointer |
References jit_err_from_max_err(), and object_unregister().