![]() |
torcs - 1.2.0 | ![]() |
The list pointer is on the tail, so the access to the head is list->next.
The first field of the elements is always next.
Files | |
file | ringlist.cpp |
Ring list management. | |
Functions | |
void | GfRlstInit (tRingListHead *head) |
Initialize the ring list head. | |
void | GfRlstAddFirst (tRingListHead *head, tRingList *elt) |
Add an element in first position of a double link ring list. | |
void | GfRlstAddLast (tRingListHead *head, tRingList *elt) |
Add an element in last position of a double link ring list. | |
tRingList * | GfRlstUnlinkFirst (tRingListHead *head) |
Unlink the first element of a ring list. | |
tRingList * | GfRlstUnlinkLast (tRingListHead *head) |
Unlink the last element of a ring list. | |
tRingList * | GfRlstUnlinkElt (tRingList *elt) |
Unlink an element of a double link ring list. | |
tRingList * | GfRlstGetFirst (tRingListHead *head) |
Get the first element of a ring list without unlinking it. | |
tRingList * | GfRlstGetLast (tRingListHead *head) |
Get the last element of a ring list without unlinking it. | |
tRingList * | GfRlstGetNext (tRingListHead *head, tRingList *elt) |
Get the next element of a ring list without unlinking it. | |
tRingList * | GfRlstGetPrev (tRingListHead *head, tRingList *elt) |
Get the previous element of a ring list without unlinking it. | |
void | GfRlstSeekElt (tRingListHead *head, tRingList *elt) |
Set the head before the specified element. |
|
Add an element in first position of a double link ring list.
|
|
Add an element in last position of a double link ring list.
|
|
Get the first element of a ring list without unlinking it.
|
|
Get the last element of a ring list without unlinking it.
|
|
Get the next element of a ring list without unlinking it.
|
|
Get the previous element of a ring list without unlinking it.
|
|
Initialize the ring list head.
|
|
Set the head before the specified element.
|
|
Unlink an element of a double link ring list.
|
|
Unlink the first element of a ring list.
|
|
Unlink the last element of a ring list.
|