sc::RangeLockItem(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in fedora 43, ubuntu noble

✨ 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 item p, the next item n, and the three ints s, f, and v, 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 a Pool * and hands you back memory. not your regular new, this one's got a pool plug. πŸ”₯
  • static void operator delete (void *, Pool *) β€” the matching deallocation. takes a void * and a Pool * 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 change prev, next, start, fence, or value whenever. 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