sc::MsgStateBufRecv(3)
πΈ 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 aMessageGrp. like, you're handing it its squad to chat with. π¦MsgStateBufRecv ()β the no-argument constructor. uses the defaultMessageGrp, iykyk. π§void set_buffer_size (int)β sets the buffer size. important: the buffer size ofstateinandstateoutobjects 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 implementnext_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 justnewone of these. you gotta subclass it and implementnext_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
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms