sc::RangeLockItem(3)
β¨ sc::RangeLockItem β¨
okay bestie, so sc::RangeLockItem is a lil struct-ish class in MPQC and it's literally just vibes: a doubly-linked-list node that holds a range and a value. that's it. that's the whole girl. π
she knows her prev, she knows her next, she holds a start, a fence, and a value, and she does it flawlessly. no cap.
πΈ SYNOPSIS πΈ
π Public Member Functions π
RangeLockItem (RangeLockItem *p, RangeLockItem *n, int s, int f, int v)
π¦ Static Public Member Functions π¦
static void * operator new (size_t, Pool *)
static void operator delete (void *, Pool *)
π Public Attributes π
RangeLockItem * prev
RangeLockItem * next
int start
int fence
int value
π DESCRIPTION π
ok so picture this: a linked list node, but make it β¨range-lockingβ¨. sc::RangeLockItem holds pointers to the items before and after it β prev and next β plus three ints that describe the actual range and payload: start, fence, and value.
it's giving "tiny but essential". it's giving "main character energy in a data structure". the whole point of the class is to be one link in a chain, and she does not overcomplicate it. obsessed. π«Ά
π Public Member Functions π
RangeLockItem (RangeLockItem *p, RangeLockItem *n, int s, int f, int v)β the glow-up constructor π. you hand it the previous itemp, the next itemn, and the three intss,f, andv, and boom, you've got a freshly-built node. slay.
β Static Public Member Functions β
static void * operator new (size_t, Pool *)β custom allocation, bestie. takes a size and aPool *and hands you back memory. not your regularnew, this one's got a pool plug. π₯static void operator delete (void *, Pool *)β the matching deallocation. takes avoid *and aPool *and gives that memory back to the pool. they're a matched set, don't separate them. π
π Public Attributes π
RangeLockItem * prevβ the item that comes before this one in the list. your past. your history. your ex. πRangeLockItem * nextβ the item that comes after. the future. the sequel. the next chapter. β¨int startβ where the range starts. the beginning of the story. πΈint fenceβ the fence of the range. the boundary. the "do not cross" line, but make it an int. π§int valueβ the actual payload, the whole reason we're here. the moment. the icon. π
no cap: these are public attributes, so anyone with a pointer can just reach in and changeprev,next,start,fence, orvaluewhenever. powerful? yes. chaotic if you're careless? also yes. handle with care, bestie. π
π§ Author π§
this page was generated automatically by Doxygen for MPQC straight from the source code β so nobody hand-wrote this one, it just manifested. β¨
anyway bestie that's the whole page π stay locked, stay ranged, and remember: prev and next are forever. periodt.
MPQC, Version 2.3.1 π¦ β sc::RangeLockItem(3), signing off π
π¦ where this page comes from
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms