Freeciv-3.2
|
#include "genlist.h"
Go to the source code of this file.
Typedefs | |
typedef void(*)(SPECLIST_TYPE * | SPECLIST_FOO) (_list_free_fn_t) |
Variables | |
SPECLIST_LIST | |
SPECLIST_LINK | |
#define FC__SPECLIST_H |
Definition at line 556 of file speclist.h.
#define LIST_BOTH_ITERATE_END |
Definition at line 714 of file speclist.h.
#define LIST_BOTH_ITERATE_REV_END |
Definition at line 741 of file speclist.h.
#define LIST_ITERATE_END |
Definition at line 586 of file speclist.h.
#define LIST_ITERATE_REV_END |
Definition at line 639 of file speclist.h.
#define LIST_LINK_ITERATE_END |
Definition at line 663 of file speclist.h.
#define LIST_LINK_ITERATE_REV_END |
Definition at line 684 of file speclist.h.
Definition at line 618 of file speclist.h.
Definition at line 613 of file speclist.h.
Definition at line 601 of file speclist.h.
#define SPECLIST_FOO | ( | suffix | ) | SPECLIST_PASTE(SPECLIST_TAG, suffix) |
Definition at line 145 of file speclist.h.
#define SPECLIST_LINK struct SPECLIST_PASTE(SPECLIST_TAG, _list_link) |
Definition at line 144 of file speclist.h.
#define SPECLIST_LIST struct SPECLIST_PASTE(SPECLIST_TAG, _list) |
Definition at line 143 of file speclist.h.
Definition at line 141 of file speclist.h.
Definition at line 698 of file speclist.h.
Definition at line 725 of file speclist.h.
Definition at line 562 of file speclist.h.
Definition at line 575 of file speclist.h.
Definition at line 628 of file speclist.h.
Definition at line 651 of file speclist.h.
Definition at line 672 of file speclist.h.
|
inline |
Definition at line 154 of file speclist.h.
|
inlinestatic |
Allocate speclist mutex
Definition at line 496 of file speclist.h.
|
inlinestatic |
Push back an element into the speclist.
Definition at line 260 of file speclist.h.
|
inlinestatic |
Return the last element of the speclist.
Definition at line 409 of file speclist.h.
|
inlinestatic |
Remove all elements from the speclist.
Definition at line 232 of file speclist.h.
|
inlinestatic |
Duplicate a speclist.
Definition at line 203 of file speclist.h.
|
inlinestatic |
Duplicate a speclist with a free callback and a function to copy each element.
Definition at line 219 of file speclist.h.
|
inlinestatic |
Free a speclist.
Definition at line 190 of file speclist.h.
|
inlinestatic |
Remove the elements pointed by 'plink'. Returns the next element of the speclist.
NB: After calling this function 'plink' is no more usable. You should have saved the next or previous link before.
Definition at line 356 of file speclist.h.
|
inlinestatic |
Return the first element of the speclist.
Definition at line 400 of file speclist.h.
|
inlinestatic |
Return the element at position in the speclist.
Definition at line 390 of file speclist.h.
|
inlinestatic |
Return the head link of the speclist.
Definition at line 428 of file speclist.h.
|
inlinestatic |
Insert an element into the speclist at the given position.
Definition at line 278 of file speclist.h.
|
inlinestatic |
Insert an element after the specified link.
Definition at line 287 of file speclist.h.
|
inlinestatic |
Insert an element before the specified link.
Definition at line 298 of file speclist.h.
|
inlinestatic |
Return the data of the link.
Definition at line 513 of file speclist.h.
|
inlinestatic |
Return the element at position in the speclist.
Definition at line 418 of file speclist.h.
|
inlinestatic |
Return the next link.
Definition at line 541 of file speclist.h.
|
inlinestatic |
Return the previous link.
Definition at line 527 of file speclist.h.
|
inlinestatic |
Create a new speclist.
Definition at line 168 of file speclist.h.
|
inlinestatic |
Create a new speclist with a free callback.
Definition at line 181 of file speclist.h.
|
inlinestatic |
Remove the last element of the speclist.
Definition at line 373 of file speclist.h.
|
inlinestatic |
Remove the first element of the speclist.
Definition at line 365 of file speclist.h.
|
inlinestatic |
Push front an element into the speclist.
Definition at line 269 of file speclist.h.
|
inlinestatic |
Release speclist mutex
Definition at line 504 of file speclist.h.
|
inlinestatic |
Search 'pfoo' in the speclist, and remove it. Returns TRUE on success.
Definition at line 309 of file speclist.h.
|
inlinestatic |
Remove 'pfoo' of the whole list. Returns the number of removed elements.
Definition at line 330 of file speclist.h.
|
inlinestatic |
Remove all elements which fit the conditional function. Returns the number of removed elements.
Definition at line 341 of file speclist.h.
|
inlinestatic |
Remove the first element which fit the conditional function. Returns TRUE on success.
Definition at line 320 of file speclist.h.
|
inlinestatic |
Reverse the order of the elements of the speclist.
Definition at line 488 of file speclist.h.
|
inlinestatic |
Return the link of the first element which match the data 'pfoo'.
Definition at line 446 of file speclist.h.
|
inlinestatic |
Return the link of the first element which match the conditional function.
Definition at line 457 of file speclist.h.
|
inlinestatic |
Shuffle the speclist.
Definition at line 480 of file speclist.h.
|
inlinestatic |
Return the number of elements inside the speclist.
Definition at line 381 of file speclist.h.
|
inlinestatic |
Sort the speclist.
Definition at line 469 of file speclist.h.
|
inlinestatic |
Return the tail link of the speclist.
Definition at line 437 of file speclist.h.
|
inlinestatic |
Remove all element duplicates (the speclist must be sorted before).
Definition at line 240 of file speclist.h.
|
inlinestatic |
Remove all element duplicates (the speclist must be sorted before), using 'comp_data_func' to determine if the elements are equivalents.
Definition at line 250 of file speclist.h.
SPECLIST_LINK |
Definition at line 151 of file speclist.h.
SPECLIST_LIST |
Definition at line 148 of file speclist.h.