sc::BcastStateInBin(3)

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

✨ 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 the BcastStateRecv using the default MessageGrp. yes bestie, default vibe ✨
  • BcastStateInBin(const Ref< MessageGrp > &, const char *filename) β€” Create the BcastStateRecv. 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 wherever loc is πŸ¦‹
  • int seekable() β€” Return non-zero if seek does 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 implement next_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