SbHeapFuncs(3)
π SbHeapFuncs β NAME π
okay so SbHeapFuncs is this little struct, and its whole personality is: it holds the functions you use to tell a heap how to deal with its elements. that's it, that's the vibe. β¨
π¦ SYNOPSIS π¦
#include <Inventor/SbHeap.h>
πΈ Public Attributes πΈ
float(* eval_func )(void *)
int(* get_index_func )(void *)
void(* set_index_func )(void *, int)
π Detailed Description π
bestie, the SbHeapFuncs struct is literally just there to let you specify the functions that operate on heap elements. like, it's a little bundle of callbacks and it serves cunt. π
π Member Data Documentation π
β float(* SbHeapFuncs::eval_func) (void *)
so eval_func is a pointer to a function that's supposed to hand back a weight-value for a heap element. and the way this works? the smaller elements get extracted from the heap first. smallest first, periodt. π
π₯ int(* SbHeapFuncs::get_index_func) (void *)
get_index_func is a pointer to a function that should return the element's heap index. now listen, this one's important: if you wanna remove an element from the heap (and not just the first element, like a coward), or if you wanna change the weight of a heap element, then you must supply both of the index functions. and every single element has to store its own heap index inside its own data structures. no shortcuts, iykyk. π
π void(* SbHeapFuncs::set_index_func) (void *, int)
set_index_func is the one that actually sets that index value, and it gets called every time the element gets moved around in the heap. so like, it's keeping the receipts updated in real time. obsessed. π«Ά
β¨ Author β¨
generated automatically by Doxygen for Coin, straight from the source code. not me writing my own bio, it literally did that itself π
okay that's the whole page, bestie, you're welcome π
Coin, Version 3.1.3 β mwah, that's the version and the source, catch you on the next manpage, slay πβ¨π
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms