Evas_List_Traverse_Group (3) - Linux Manuals
Evas_List_Traverse_Group: Functions that you can use to traverse a linked list.
NAME
Linked List Traverse Functions - Functions that you can use to traverse a linked list.
Functions
EAPI Evas_List * evas_list_last (const Evas_List *list)
Get the last list node in the list.
EAPI Evas_List * evas_list_next (const Evas_List *list)
Get the next list node after the specified list node.
EAPI Evas_List * evas_list_prev (const Evas_List *list)
Get the previous list node before the specified list node.
Detailed Description
Functions that you can use to traverse a linked list.
Function Documentation
EAPI Evas_List* evas_list_last (const Evas_List * list)
Get the last list node in the list.
Parameters:
- list The list to get the last list node from
Returns:
- The last list node in the list list
This function will return the last list node in the list (or NULL if the list is empty).
NB: This is a order-1 operation (it takes the same short time regardless of the length of the list).
Example:
extern Evas_List *list; Evas_List *last, *l; last = evas_list_last(list); printf('The list in reverse:); for (l = last; l; l = l->prev) { printf('%p, l->data); }
References _Evas_List::accounting.
Get the next list node after the specified list node.
Parameters:
Returns:
This function returns the next list node after the current one. It is equivalent to list->next.
Example:
References _Evas_List::next.
Referenced by evas_list_sort().
Get the previous list node before the specified list node.
Parameters:
Returns:
This function returns the previous list node before the current one. It is equivalent to list->prev.
Example:
References _Evas_List::prev.
Referenced by evas_list_sort().
Generated automatically by Doxygen for Evas from the source code.
EAPI Evas_List* evas_list_next (const Evas_List * list)
extern Evas_List *list;
Evas_List *l;
printf('The list:);
for (l = list; l; l = evas_list_next(l))
{
printf('%p, l->data);
}
EAPI Evas_List* evas_list_prev (const Evas_List * list)
extern Evas_List *list;
Evas_List *last, *l;
last = evas_list_last(list);
printf('The list in reverse:);
for (l = last; l; l = evas_list_prev(l))
{
printf('%p, l->data);
}
Author