SbHeapFuncs(3)
π SbHeapFuncs π
okay bestie, welcome to SbHeapFuncs(3) β yes it's a Coin page, yes it's a struct, no it's not boring, sit down π«Ά
β¨ NAME β¨
SbHeapFuncs β the SbHeapFuncs struct is used to specify functions on heap elements. that's literally its whole job and it does it slayfully π
πΈ SYNOPSIS πΈ
#include <Inventor/SbHeap.h>
π Public Attributes π
float(* eval_func )(void *)
int(* get_index_func )(void *)
void(* set_index_func )(void *, int)
π¦ Detailed Description π¦
The SbHeapFuncs struct is used to specify functions on heap elements. fr fr that's the vibe β it's the lil plug-in bundle that tells the heap how to look at your elements. no cap. β¨
π Member Data Documentation π
β float(* SbHeapFuncs::eval_func) (void *)
The eval_func member is a pointer to a function that should return a weight-value for a heap element. and listen β smaller elements are extracted first from the heap. so like, lowest weight = first out the door. main character behavior honestly π
β int(* SbHeapFuncs::get_index_func) (void *)
get_index_func is a pointer to a function which should return the element's heap index.
bestie this is the important part so read it twice: if you want to remove an element from the heap (other than the first element), or change the weight for a heap element, you must supply the two index functions. Each element must then store its heap index in its own data structures. like, it's not optional, it's giving mandatory π
β void(* SbHeapFuncs::set_index_func) (void *, int)
set_index_func is used to set this index value, and it will be called whenever the element is moved in the heap. so the heap moves your element, this function goes "noted π
" and updates the index for you. iconic teamwork π«Ά
π Author π
Generated automatically by Doxygen for Coin from the source code. yeah the robots wrote the OG version, we just gave it a glow-up β¨
aaaand that's the page bestie!! π Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β that's the Coin energy, that's the date, that's the whole manual page, periodt. go forth and heap responsibly πππ¦πΈπ
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms