Max 5 API Reference
The symobject class is a simple object that wraps a t_symbol* together with a couple of additional fields. More...
![]() |
Data Structures | |
struct | t_symobject |
The symobject data structure. More... | |
Functions | |
void * | symobject_new (t_symbol *sym) |
The symobject data structure. | |
long | symobject_linklist_match (void *a, void *b) |
Utility for searching a linklist containing symobjects. |
The symobject class is a simple object that wraps a t_symbol* together with a couple of additional fields.
It is useful for storing symbols, possibly with additional flags or pointers, into a Hash Table or Linked List.
long symobject_linklist_match | ( | void * | a, | |
void * | b | |||
) |
Utility for searching a linklist containing symobjects.
a | (opaque) | |
b | (opaque) |
t_symobject *item = NULL; long index; t_symbol *textsym; textsym = gensym("something to look for"); // search for a symobject with the symbol 'something to look for' index = linklist_findfirst(s_ll_history, (void **)&item, symobject_linklist_match, textsym); if(index == -1){ // symobject not found. } else{ do something with the symobject, or with the index of the symbobject in the linklist }
void* symobject_new | ( | t_symbol * | sym | ) |
The symobject data structure.
sym | A symbol with which to initialize the new symobject. |