globus_priority_q.h(3)

πŸ“¦
version 18.15 Β· 6 versions
, in epel 10, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay bestie, welcome to globus_priority_q.h β€” it's the Priority Queue πŸ’…. yes, the whole thing. a queue, but make it ranked. main character energy only, lowest-priority data can wait in line like everyone else πŸŽ€


✨ SYNOPSIS ✨

#include 'globus_types.h'
#include 'globus_memory.h'

πŸ¦‹ Data Structures πŸ¦‹

  • struct globus_priority_q_s β€” the Priority Queue Structure itself. iconic. the actual container πŸ’œ

🌸 Typedefs 🌸

  • typedef int(* globus_priority_q_cmp_func_t) (void *priority_1, void *priority_2) β€” the Priority Comparison Predicate. this is the lil function you hand over so the queue knows who beats who πŸ‘‘
  • typedef struct globus_priority_q_s globus_priority_q_t β€” the Priority Queue Structure, but as a typedef. same queen, shorter name ✨

πŸŽ€ Functions πŸŽ€

  • int globus_priority_q_init (globus_priority_q_t *priority_q, globus_priority_q_cmp_func_t cmp_func) β€” Initialize a priority queue.
  • int globus_priority_q_destroy (globus_priority_q_t *priority_q) β€” Destroy a Priority Queue.
  • globus_bool_t globus_priority_q_empty (globus_priority_q_t *priority_q) β€” Priority Queue Empty Predicate.
  • int globus_priority_q_size (globus_priority_q_t *priority_q) β€” Priority Queue Size.
  • int globus_priority_q_enqueue (globus_priority_q_t *priority_q, void *datum, void *priority) β€” Add a Datum to a Priority Queue.
  • void * globus_priority_q_remove (globus_priority_q_t *priority_q, void *datum) β€” Remove an Arbitrary Datum from a Priority Queue.
  • void * globus_priority_q_modify (globus_priority_q_t *priority_q, void *datum, void *new_priority) β€” Modify the Priority of Datum.
  • void * globus_priority_q_dequeue (globus_priority_q_t *priority_q) β€” Remove a Datum From A Priority Queue.
  • void * globus_priority_q_first (globus_priority_q_t *priority_q) β€” Get the Highest-Priority Datum From a Priority Queue.
  • void * globus_priority_q_first_priority (globus_priority_q_t *priority_q) β€” Get the Highest Priority in Priority Queue.

🌈 Detailed Description 🌈

Priority Queue. that's the vibe. fr fr, that's literally the whole description β€” a queue where the priorities matter and the ordering is the moment πŸ’«


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for globus_common from the source code. not me writing a whole personality for a header file 😭


and that's the tea πŸ“ this was globus_priority_q.h(3) from the Library Functions Manual, brought to you by globus_common, Version 18.15 β€” slay, go forth and enqueue responsibly πŸ«ΆπŸ’–