void * RaveList_removeLast(RaveList_t *list)
Removes the last item.
Definition rave_list.c:177
int RaveList_insert(RaveList_t *list, int index, void *ob)
Inserts the object at the specified index, if index < 0 or index > size, then this function will add ...
Definition rave_list.c:111
int RaveList_add(RaveList_t *list, void *ob)
Add one instance to the list.
Definition rave_list.c:105
int RaveList_size(RaveList_t *list)
Returns the number of items in this list.
Definition rave_list.c:137
void * RaveList_get(RaveList_t *list, int index)
Returns the item at the specified position.
Definition rave_list.c:143
void * RaveList_find(RaveList_t *list, void *expected, int(*findfunc)(void *, void *))
Finds the object in the list.
Definition rave_list.c:203
void * RaveList_remove(RaveList_t *list, int index)
Removes the item at the specified position and returns it.
Definition rave_list.c:161
RaveCoreObjectType RaveList_TYPE
Type definition to use when creating a rave object.
Definition rave_list.c:237
void * RaveList_getLast(RaveList_t *list)
Returns the item at the end.
Definition rave_list.c:152
void RaveList_sort(RaveList_t *list, int(*sortfun)(const void *, const void *))
Sorts the list according to the provided sort function.
Definition rave_list.c:218
void RaveList_removeObject(RaveList_t *list, void *object)
Removes the object that is equal to the provided object.
Definition rave_list.c:187
void RaveList_freeAndDestroy(RaveList_t **list)
This is a specialized version that can be used to destroy the list when it contains single pointers a...
Definition rave_list.c:224
Generic implementation of an object that is used within rave.
Represents a list.
Definition rave_list.c:36
RAVE_OBJECT_HEAD void ** list
Always on top.
Definition rave_list.c:38
The rave object type definition.
Definition rave_object.h:52