sc::BcastStateInBin(3)
β¨ sc::BcastStateInBin(3) β¨
okay so bestie, welcome to the MPQC manpage corner π
this one's all about sc::BcastStateInBin, and i promise it's less scary than the name looks π«Ά
πΈ NAME πΈ
sc::BcastStateInBin β so like, BcastStateBin reads a file in written by StateInBin on node 0 and broadcasts it to all nodes so state can be simultaneously restored on all nodes. literally the group-chat forward of file data, no cap π
π¦ SYNOPSIS π¦
#include <mstate.h>
Inherits sc::MsgStateBufRecv. the way it just inherits that, main character energy fr π
π Public Member Functions π
BcastStateInBin(const Ref< KeyVal > &)β Create theBcastStateRecvusing the defaultMessageGrp. yes bestie, default vibe β¨BcastStateInBin(const Ref< MessageGrp > &, const char *filename)β Create theBcastStateRecv. this one lets you pass the group and the filename yourself πvirtual int open(const char *name)β opens it up, iconic behaviour π«virtual void close()β and closes it, we love a clean exit πvoid seek(int loc)β Set the current position in the file. scoot to whereverlocis π¦int seekable()β Return non-zero ifseekdoes anything sensible. a little vibe check for your seek πint tell()β Return the current position in the file. where are we rn bestie πint use_directory()β Returns true of this object uses a directory. (yes that's exactly what the original says, keep it π)
π§ Protected Member Functions π§
void next_buffer()β Specializations must implementnext_buffer(). it's giving "you gotta do your part" π«Άint get_array_void(void *, int)β protected lil helper, living its best quiet life π
π Protected Attributes π
int opened_β is it open or not, the eternal question πint file_position_β where in the file we're at πstd::streambuf * buf_β the streambuf pointer, doing streambuf things β
π Detailed Description π
BcastStateBin reads a file in written by StateInBin on node 0 and broadcasts it to all nodes so state can be simultaneously restored on all nodes. so node 0 reads it, everybody gets it, everybody restores together β synchronized slay π
β¨
π Member Function Documentation π
π void sc::BcastStateInBin::seek(int) [virtual] π
Set the current position in the file. The default implementation does nothing. like, literally nothing, it just sits there being default π
Reimplemented from sc::StateIn.
π int sc::BcastStateInBin::seekable() [virtual] π
Return non-zero if seek does anything sensible. The default implementation returns 0. so by default it's a no, ngl π
ββοΈ
Reimplemented from sc::StateIn.
π Author π
Generated automatically by Doxygen for MPQC from the source code. not me being auto-generated ππ
okay bestie that's the whole page, you ate that π«Ά one last cute sign-off: this is Version 2.3.1, dated Sun Oct 4 2020 πΈπβ¨
π¦ 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