Aller au code source de ce fichier.
|
| #define | LIST_INTERFACE_BASE(type) |
| #define | LIST_INTERFACE(type) |
| #define | LIST_ANCHOR_INTERFACE_BASE(type) |
| #define | LIST_ANCHOR_INTERFACE(type) |
| #define | LIST_ANCHOR(type) |
| #define | LIST_CAST(expr) |
| #define | LIST_CAST_2(expr) |
| #define | LIST_ANCHOR_CAST(expr) |
| #define | LIST_CAST_RETURN(typekey, e_return) |
| #define | list_insert(dest, elem) |
| #define | alist_insert(list, ref, elem) |
| #define | list_push(dest, elem) |
| #define | alist_push(list, elem) |
| #define | list_append(dest, elem) |
| #define | alist_append(list, elem) |
| #define | list_unlink(dest, elem) |
| #define | alist_unlink(list, elem) |
| #define | list_pop(dest) |
| #define | alist_pop(list) |
| #define | alist_merge_tail(dst, src) |
|
| List * | list_insert (List **dest, List *elem) |
| | Insere elem apres dest.
|
| List * | list_push (List **dest, List *elem) |
| | Insere elem en tête de dest. *dest pointe sur la nouvelle tete.
|
| List * | list_append (List **dest, List *elem) |
| | Insere elem a la fin de dest.
|
| List * | list_unlink (List **dest, List *elem) |
| | Detache elem de dest.
|
| List * | list_pop (List **list) |
| | Retire de list son premier element.
|
| List * | alist_insert (ListAnchor *list, List *ref, List *elem) |
| | Insere elem apres ref, un element de list.
|
| List * | alist_push (ListAnchor *list, List *elem) |
| | Insere elem en tête de list (avant list->first).
|
| List * | alist_append (ListAnchor *list, List *elem) |
| | Insere elem a la fin de list (apres list->last).
|
| List * | alist_unlink (ListAnchor *list, List *elem) |
| | Detache elem de list.
|
| List * | alist_pop (ListAnchor *list) |
| | Retire le premier element de list.
|
| void | alist_merge_tail (ListAnchor *dst, ListAnchor *src) |
| | Accroche src a la fin de dest.
|
◆ alist_append
| #define alist_append |
( |
| list, |
|
|
| elem ) |
Valeur :
#define LIST_CAST_RETURN(typekey, e_return)
Definition list.h:167
#define LIST_CAST(expr)
Definition list.h:164
#define alist_append(list, elem)
Definition list.h:188
#define LIST_ANCHOR_CAST(expr)
Definition list.h:166
◆ alist_insert
| #define alist_insert |
( |
| list, |
|
|
| ref, |
|
|
| elem ) |
Valeur :
#define alist_insert(list, ref, elem)
Definition list.h:176
◆ alist_merge_tail
| #define alist_merge_tail |
( |
| dst, |
|
|
| src ) |
Valeur :
#define alist_merge_tail(dst, src)
Definition list.h:203
◆ alist_pop
| #define alist_pop |
( |
| list | ) |
|
Valeur :
#define alist_pop(list)
Definition list.h:200
◆ alist_push
| #define alist_push |
( |
| list, |
|
|
| elem ) |
Valeur :
#define alist_push(list, elem)
Definition list.h:182
◆ alist_unlink
| #define alist_unlink |
( |
| list, |
|
|
| elem ) |
Valeur :
#define alist_unlink(list, elem)
Definition list.h:194
◆ LIST_ANCHOR
| #define LIST_ANCHOR |
( |
| type | ) |
|
Valeur : struct { \
LIST_ANCHOR_INTERFACE(type); \
}
◆ LIST_ANCHOR_CAST
| #define LIST_ANCHOR_CAST |
( |
| expr | ) |
|
◆ LIST_ANCHOR_INTERFACE
| #define LIST_ANCHOR_INTERFACE |
( |
| type | ) |
|
Valeur : union { \
LIST_ANCHOR_INTERFACE_BASE(type); \
}
◆ LIST_ANCHOR_INTERFACE_BASE
| #define LIST_ANCHOR_INTERFACE_BASE |
( |
| type | ) |
|
Valeur : struct { \
type *first; \
type *last; \
}
◆ list_append
| #define list_append |
( |
| dest, |
|
|
| elem ) |
Valeur :
#define LIST_CAST_2(expr)
Definition list.h:165
#define list_append(dest, elem)
Definition list.h:185
◆ LIST_CAST
| #define LIST_CAST |
( |
| expr | ) |
|
◆ LIST_CAST_2
| #define LIST_CAST_2 |
( |
| expr | ) |
|
◆ LIST_CAST_RETURN
| #define LIST_CAST_RETURN |
( |
| typekey, |
|
|
| e_return ) |
Valeur :(__typeof__(*(typekey)) *)(e_return)
◆ list_insert
| #define list_insert |
( |
| dest, |
|
|
| elem ) |
Valeur :
#define list_insert(dest, elem)
Definition list.h:173
◆ LIST_INTERFACE
| #define LIST_INTERFACE |
( |
| type | ) |
|
Valeur : union { \
LIST_INTERFACE_BASE(type); \
}
◆ LIST_INTERFACE_BASE
| #define LIST_INTERFACE_BASE |
( |
| type | ) |
|
Valeur : struct { \
type *next; \
type *prev; \
}
◆ list_pop
Valeur :
#define list_pop(dest)
Definition list.h:197
◆ list_push
| #define list_push |
( |
| dest, |
|
|
| elem ) |
Valeur :
#define list_push(dest, elem)
Definition list.h:179
◆ list_unlink
| #define list_unlink |
( |
| dest, |
|
|
| elem ) |
Valeur :
#define list_unlink(dest, elem)
Definition list.h:191
◆ List
◆ ListAnchor
| typedef struct ListAnchor ListAnchor |
◆ ListAnchorInterface
| typedef struct ListAnchorInterface ListAnchorInterface |
◆ ListContainer
| typedef struct ListContainer ListContainer |
◆ ListInterface
| typedef struct ListInterface ListInterface |
◆ alist_append()
Insere elem a la fin de list (apres list->last).
- Paramètres
-
- Renvoie
- List*
◆ alist_insert()
Insere elem apres ref, un element de list.
Si ref = NULL => list vide donc elem devient le seul elem de la list
- Paramètres
-
- Renvoie
- List* : elem
◆ alist_merge_tail()
Accroche src a la fin de dest.
- Paramètres
-
◆ alist_pop()
Retire le premier element de list.
- Paramètres
-
- Renvoie
- List* : le premier élément détaché
◆ alist_push()
Insere elem en tête de list (avant list->first).
- Paramètres
-
- Renvoie
- List* : elem
◆ alist_unlink()
Detache elem de list.
- Paramètres
-
- Renvoie
- List* : element détaché
◆ list_append()
Insere elem a la fin de dest.
- Paramètres
-
- Renvoie
- List*
◆ list_insert()
Insere elem apres dest.
- Paramètres
-
- Renvoie
- List* : elem
◆ list_pop()
Retire de list son premier element.
- Paramètres
-
- Renvoie
- List* : Premier élément détaché
◆ list_push()
Insere elem en tête de dest. *dest pointe sur la nouvelle tete.
- Paramètres
-
- Renvoie
- List* : elem
◆ list_unlink()
Detache elem de dest.
- Paramètres
-
- Renvoie
- List* : elem