Freeciv-3.2
|
Go to the source code of this file.
Typedefs | |
typedef genhash_val_t(*)(const SPECHASH_IKEY_TYPE | SPECHASH_FOO) (_hash_key_val_fn_t) |
Variables | |
SPECHASH_HASH | |
SPECHASH_ITER | |
#define FC__SPECHASH_H |
Definition at line 689 of file spechash.h.
#define HASH_DATA_ITERATE_END generic_iterate_end |
Definition at line 702 of file spechash.h.
#define HASH_ITERATE_END } genhash_iterate_end; |
Definition at line 732 of file spechash.h.
#define HASH_KEYS_ITERATE_END |
Definition at line 715 of file spechash.h.
#define SPECHASH_FOO | ( | suffix | ) | SPECHASH_PASTE(SPECHASH_TAG, suffix) |
Definition at line 290 of file spechash.h.
#define SPECHASH_HASH struct SPECHASH_PASTE(SPECHASH_TAG, _hash) |
Definition at line 288 of file spechash.h.
Definition at line 262 of file spechash.h.
Definition at line 265 of file spechash.h.
Definition at line 268 of file spechash.h.
#define SPECHASH_IDATA_TO_UDATA | ( | idata | ) | ((SPECHASH_UDATA_TYPE) (idata)) |
Definition at line 282 of file spechash.h.
Definition at line 253 of file spechash.h.
Definition at line 256 of file spechash.h.
Definition at line 259 of file spechash.h.
#define SPECHASH_IKEY_TO_UKEY | ( | ikey | ) | ((SPECHASH_UKEY_TYPE) (ikey)) |
Definition at line 276 of file spechash.h.
Definition at line 250 of file spechash.h.
#define SPECHASH_ITER struct SPECHASH_PASTE(SPECHASH_TAG, _hash_iter) |
Definition at line 289 of file spechash.h.
Definition at line 286 of file spechash.h.
#define SPECHASH_UDATA_TO_IDATA | ( | udata | ) | ((SPECHASH_IDATA_TYPE) (udata)) |
Definition at line 279 of file spechash.h.
#define SPECHASH_UDATA_TYPE SPECHASH_IDATA_TYPE |
Definition at line 245 of file spechash.h.
#define SPECHASH_UKEY_TO_IKEY | ( | ukey | ) | ((SPECHASH_IKEY_TYPE) (ukey)) |
Definition at line 273 of file spechash.h.
#define SPECHASH_UKEY_TYPE SPECHASH_IKEY_TYPE |
Definition at line 239 of file spechash.h.
#define SPECHASH_VPTR_TO_IDATA | ( | p | ) | ((SPECHASH_IDATA_TYPE)(p)) |
Definition at line 229 of file spechash.h.
#define SPECHASH_VPTR_TO_IKEY | ( | p | ) | ((SPECHASH_IKEY_TYPE)(p)) |
Definition at line 225 of file spechash.h.
Definition at line 696 of file spechash.h.
Definition at line 726 of file spechash.h.
Definition at line 709 of file spechash.h.
|
inline |
Create a new spechash.
Create a new spechash with a set of control functions.
Create a new spechash with n entries.
Create a new spechash with n entries and a set of control functions.
Definition at line 299 of file spechash.h.
|
inlinestatic |
Return the real number of buckets.
Definition at line 455 of file spechash.h.
|
inlinestatic |
Remove all elements of the spechash.
Definition at line 476 of file spechash.h.
|
inlinestatic |
Duplicate the spechash.
Definition at line 468 of file spechash.h.
|
inlinestatic |
Free a spechash.
Definition at line 429 of file spechash.h.
|
inlinestatic |
Insert an element into the spechash. Returns TRUE on success (if no collision).
Definition at line 486 of file spechash.h.
|
inlinestatic |
Initialize an iterator.
Definition at line 627 of file spechash.h.
|
inlinestatic |
Remove the size of the iterator type.
Definition at line 618 of file spechash.h.
|
inlinestatic |
Initialize a key iterator.
Definition at line 638 of file spechash.h.
|
inlinestatic |
Lookup an element. Returns TRUE if found.
Definition at line 540 of file spechash.h.
|
inlinestatic |
Create a new spechash.
Definition at line 349 of file spechash.h.
|
inlinestatic |
Create a new spechash with a set of control functions.
Definition at line 363 of file spechash.h.
Referenced by _hash_new().
|
inlinestatic |
Create a new spechash with n entries.
Definition at line 388 of file spechash.h.
|
inlinestatic |
Create a new spechash with n entries and a set of control functions.
Definition at line 403 of file spechash.h.
Referenced by _hash_new_nentries().
|
inlinestatic |
Remove an element. Returns TRUE on success.
Definition at line 559 of file spechash.h.
|
inlinestatic |
Remove an element. Returns TRUE on success.
Definition at line 570 of file spechash.h.
|
inlinestatic |
Replace an element into the spechash. Returns TRUE if it replaced an old element.
Definition at line 500 of file spechash.h.
|
inlinestatic |
Replace an element into the spechash. Returns TRUE if it replaced an old element.
Definition at line 514 of file spechash.h.
|
inlinestatic |
Enable/Disable shrinking.
Definition at line 437 of file spechash.h.
|
inlinestatic |
Return the number of elements.
Definition at line 446 of file spechash.h.
|
inlinestatic |
Initialize a value iterator.
Definition at line 649 of file spechash.h.
|
inlinestatic |
Compare the specific hash tables.
Definition at line 608 of file spechash.h.
|
inlinestatic |
Compare the specific hash tables.
Definition at line 594 of file spechash.h.
Referenced by _hashes_are_equal().
SPECHASH_HASH |
Definition at line 293 of file spechash.h.
SPECHASH_ITER |
Definition at line 296 of file spechash.h.