Max 5 API Reference
![]() |
Functions | |
void * | jit_class_new (char *name, method mnew, method mfree, long size,...) |
Creates a new class with the name specified by the name argument. | |
t_jit_err | jit_class_addmethod (void *c, method m, char *name,...) |
Adds a named method to a class. | |
t_jit_err | jit_class_addattr (void *c, t_jit_object *attr) |
Adds an attribute to a class. | |
t_jit_err | jit_class_addadornment (void *c, t_jit_object *o) |
Adds an adornment to a class. | |
void * | jit_class_adornment_get (void *c, t_symbol *classname) |
Retrieves an adornment from a class. | |
t_jit_err | jit_class_free (void *c) |
Frees a class. | |
t_symbol * | jit_class_nameget (void *c) |
Retrieves the name of a class. | |
long | jit_class_symcompare (void *c, t_symbol *name) |
Compares name of class with the name provided. | |
t_jit_err | jit_class_register (void *c) |
Registers class in the class registry. | |
method | jit_class_method (void *c, t_symbol *methodname) |
Retrieves method function pointer for named method. | |
t_messlist * | jit_class_mess (t_jit_class *c, t_symbol *methodname) |
Retrieves messlist entry for named method. | |
void * | jit_class_attr_get (void *c, t_symbol *attrname) |
Retrieves attribute pointer associated with name provided. | |
void * | jit_class_findbyname (t_symbol *classname) |
Retrieves class pointer associated with name provided. | |
t_jit_err | jit_class_addtypedwrapper (void *c, method m, char *name,...) |
Adds a typed wrapper method to a class. | |
t_messlist * | jit_class_typedwrapper_get (void *c, t_symbol *s) |
Retrieves typed wrapper messlist pointer associated with name provided. | |
t_jit_err | jit_class_method_addargsafe (void *c, char *argname, char *methodname) |
Marks a method as safe to call as an attribute style argument. | |
t_symbol * | jit_class_method_argsafe_get (void *c, t_symbol *s) |
Checks to see if symbol is safe to call as an attribute style argument. |
t_jit_err jit_class_addadornment | ( | void * | c, | |
t_jit_object * | o | |||
) |
Adds an adornment to a class.
Adornments provide additional state and behavior to a class. This is most commonly used for the jit_mop adornment.
c | class pointer | |
o | object to use as adornment |
Definition at line 1098 of file jit.foundation.c.
References jit_err_from_max_err().
t_jit_err jit_class_addattr | ( | void * | c, | |
t_jit_object * | attr | |||
) |
Adds an attribute to a class.
c | class pointer | |
attr | attribute object |
Definition at line 1077 of file jit.foundation.c.
References class_addattr(), and jit_err_from_max_err().
Referenced by jit_ob3d_setup().
t_jit_err jit_class_addmethod | ( | void * | c, | |
method | m, | |||
char * | name, | |||
... | ||||
) |
Adds a named method to a class.
c | class pointer | |
m | function called when method is invoked | |
name | method name | |
... | type signature for the method in the standard Max type list format (see Chapter 3 of the Writing Externals in Max document for more information) |
Definition at line 1059 of file jit.foundation.c.
References class_addmethod(), and jit_err_from_max_err().
Referenced by jit_ob3d_setup().
t_jit_err jit_class_addtypedwrapper | ( | void * | c, | |
method | m, | |||
char * | name, | |||
... | ||||
) |
Adds a typed wrapper method to a class.
Typed wrappers typically are used when there is an existing private, untyped method defined for a Jitter class, but it is desirable to expose the method to language bindings which require a typed interface--e.g. Java or JavaScript.
c | class pointer | |
m | function called when method is invoked | |
name | method name | |
... | type signature for the method in the standard Max type list format (see Chapter 3 of the Writing Externals in Max document for more information) |
Definition at line 1311 of file jit.foundation.c.
References jit_err_from_max_err().
void* jit_class_adornment_get | ( | void * | c, | |
t_symbol * | classname | |||
) |
Retrieves an adornment from a class.
Adornments provide additional state and behavior to a class. This is most commonly used for the jit_mop adornment.
c | class pointer | |
classname | classname of adornment to retrieve |
Definition at line 1135 of file jit.foundation.c.
Referenced by max_jit_classex_mop_mproc(), max_jit_classex_mop_wrap(), and max_jit_mop_setup().
void* jit_class_attr_get | ( | void * | c, | |
t_symbol * | attrname | |||
) |
Retrieves attribute pointer associated with name provided.
c | class pointer | |
attrname | attribute name |
Definition at line 1272 of file jit.foundation.c.
void* jit_class_findbyname | ( | t_symbol * | classname | ) |
Retrieves class pointer associated with name provided.
classname | class name |
Definition at line 1287 of file jit.foundation.c.
References class_findbyname().
t_jit_err jit_class_free | ( | void * | c | ) |
Frees a class.
c | class pointer |
Definition at line 1152 of file jit.foundation.c.
References class_free(), and jit_err_from_max_err().
t_messlist* jit_class_mess | ( | t_jit_class * | c, | |
t_symbol * | methodname | |||
) |
Retrieves messlist entry for named method.
c | class pointer | |
methodname | method name |
Definition at line 1234 of file jit.foundation.c.
Retrieves method function pointer for named method.
c | class pointer | |
methodname | method name |
Definition at line 1218 of file jit.foundation.c.
t_jit_err jit_class_method_addargsafe | ( | void * | c, | |
char * | argname, | |||
char * | methodname | |||
) |
Marks a method as safe to call as an attribute style argument.
c | class pointer | |
argname | name as used via argument | |
methodname | name of method to map the argument name to |
Definition at line 1353 of file jit.foundation.c.
References gensym(), and jit_err_from_max_err().
Checks to see if symbol is safe to call as an attribute style argument.
c | class pointer | |
s | name as used via argument |
Definition at line 1374 of file jit.foundation.c.
References gensym(), and t_symbol::s_name.
Referenced by jit_object_method_argsafe_get().
t_symbol* jit_class_nameget | ( | void * | c | ) |
Retrieves the name of a class.
c | class pointer |
Definition at line 1169 of file jit.foundation.c.
References class_nameget().
Referenced by jit_class_symcompare().
Creates a new class with the name specified by the name argument.
name | class name | |
mnew | class constructor | |
mfree | class destructor | |
size | object struct size in bytes | |
... | type signature for the constructor in the standard Max type list format (see Chapter 3 of the Writing Externals in Max document for more information) |
Definition at line 1022 of file jit.foundation.c.
References A_CANT, A_GIMME, class_addmethod(), class_new(), gensym(), jit_object_exportattrs(), and jit_object_importattrs().
t_jit_err jit_class_register | ( | void * | c | ) |
Registers class in the class registry.
c | class pointer |
Definition at line 1200 of file jit.foundation.c.
References class_register(), and jit_err_from_max_err().
long jit_class_symcompare | ( | void * | c, | |
t_symbol * | name | |||
) |
Compares name of class with the name provided.
c | class pointer | |
name | name to compare with class name |
Definition at line 1185 of file jit.foundation.c.
References jit_class_nameget().
t_messlist* jit_class_typedwrapper_get | ( | void * | c, | |
t_symbol * | s | |||
) |
Retrieves typed wrapper messlist pointer associated with name provided.
c | class pointer | |
s | name |
Definition at line 1329 of file jit.foundation.c.