globus_has..._iterators(3)
β¨ NAME β¨
globus_hashtable_iterators β Iterators π«
...yeah bestie, it's just Iterators. That's the whole vibe. Iterators. π
πΈ SYNOPSIS πΈ
Functions π
void * globus_hashtable_first (globus_hashtable_t *table)β sets the iterator to the very first hash table entry π₯void * globus_hashtable_next (globus_hashtable_t *table)β bumps the hash table iterator forward β©void * globus_hashtable_last (globus_hashtable_t *table)β sets the iterator to the very last hash table entry πvoid * globus_hashtable_prev (globus_hashtable_t *table)β walks the hash table iterator backwards βͺ
π¦ Detailed Description π¦
Iterators.
okay so here's the tea β β at the start the iterator is literally NULL until you call either globus_hashtable_first() or globus_hashtable_last(). Like, it's not gonna just know where to go, you have to tell it. π
Every other call leaves the iterator completely unbothered, except for globus_hashtable_remove(). And if the iterator happens to be pointing right at the entry that's getting removed? It gets moved to the next entry. no cap. π
β οΈ Also super important: once you've hit an 'end' viaglobus_hashtable_next()orglobus_hashtable_prev(), the iterator is done. You have to reset it withglobus_hashtable_first()orglobus_hashtable_last()before you can use it again. No skipping this step bestie, it's giving mandatory. π
π Function Documentation π
void * globus_hashtable_first (globus_hashtable_t * table)
Initialize iterator to first hash table entry. It sets the iterator to the first entry and returns the datum, or NULL if it's empty. NULL if empty!! π
void * globus_hashtable_last (globus_hashtable_t * table)
Initialize iterator to last hash table entry. It sets the iterator to the last entry and returns the datum, or NULL if it's empty. π
void * globus_hashtable_next (globus_hashtable_t * table)
Increment hash table iterator. It sets the iterator to the next entry and returns the datum, or NULL if you're at the end. β¨
void * globus_hashtable_prev (globus_hashtable_t * table)
Decrement hash table iterator. It sets the iterator to the previous entry and returns the datum, or NULL if you're at the end. βͺπ
π Author π
Generated automatically by Doxygen for globus_common from the source code. (not a human, just a robot doing its lil thing π«Ά)
globus_common, Version 18.15 β that's the globus_has..._iterators(3) era, mwah π slay, go iterate something iconic bestie β¨π
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms