sc::MsgStateBufRecv(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

🌸 sc::MsgStateBufRecv(3) β€” the manual page, but make it bestie πŸ’…

okay so this is the <cyan>MPQC</cyan> manual, section 3, and we're talking about sc::MsgStateBufRecv β€” literally the abstract base class that buffers objects sent through a MessageGrp. no cap, it's giving communication-queue realness. 🫢


✨ NAME ✨

sc::MsgStateBufRecv β€” the abstract base class that buffers objects sent through a MessageGrp. it's the vibe, it's the blueprint, it's not something you instantiate directly. periodt. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <mstate.h>

Inherits sc::StateIn.

Inherited by sc::BcastStateInBin, and sc::MsgStateRecv.

πŸ’… Public Member Functions πŸ’…

  • MsgStateBufRecv (const Ref< MessageGrp > &) β€” constructor that lets you initialize this bad boy with a MessageGrp. like, you're handing it its squad to chat with. πŸ¦‹
  • MsgStateBufRecv () β€” the no-argument constructor. uses the default MessageGrp, iykyk. 🧚
  • void set_buffer_size (int) β€” sets the buffer size. important: the buffer size of statein and stateout objects that communicate with each other must match. literally, they have to be twins. no mismatched energy allowed. 😭

πŸ“ Protected Member Functions πŸ“

  • int get_array_void (void *, int) β€” protected helper, does its little array thing. you don't touch this unless you're a subclass. πŸ™ˆ
  • virtual void next_buffer ()=0 β€” pure virtual. specializations must implement next_buffer(). like, it's literally required, bestie. no skipping. πŸ’€

🌈 Protected Attributes 🌈

  • Ref< MessageGrp > grp β€” the group chat reference, fr fr.
  • int nbuf β€” number of buffers, keeping count.
  • int ibuf β€” current buffer index, living in the moment.
  • int bufsize β€” the size of the buffer, obviously.
  • char * buffer β€” the main buffer pointer, iconic.
  • char * send_buffer β€” the send buffer pointer, doing its own thing.
  • int nheader β€” header count, slay.
  • int * nbuf_buffer β€” pointer to buffer counts, living its best life.

πŸ”₯ Detailed Description πŸ”₯

MsgStateBufRecv is an abstract base class that buffers objects sent through a MessageGrp. that's the whole vibe: it's not here to be instantiated directly, it's here to be inherited. it handles the buffering so your derived classes can focus on the actual communication. highkey useful. πŸ‘‘

⚠️ heads up: since it's abstract, you can't just new one of these. you gotta subclass it and implement next_buffer(). that's the rule. ⭐

πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for MPQC from the source code. not a human, just a doc generator doing its thing. πŸ€–βœ¨


okay that's the whole page, bestie. now go forth and buffer responsibly. πŸŽ€πŸ’–

β€” with love, from MPQC version 2.3.1, dated Sun Oct 4 2020. you're welcome. 🫢🌸

πŸ“¦ where this page comes from