sc::StateOutBin(3)
πΎ sc::StateOutBin β aka "save ur state to a binary file, bestie" πΎ
Okay so picture this: you're deep in MPQC land, you've got state, and you need to save it to a binary file β that's literally this whole class. It's giving "persistence but make it binary." No cap.
It inherits from sc::StateOutFile, so it's got that whole family tree going on. Iykyk. π«Ά
β¨ SYNOPSIS β¨
Like, just include the header and you're in:
#include <state_bin.h>
And it inherits from sc::StateOutFile β main character energy inherited, periodt. π
πΈ Public Member Functions πΈ
StateOutBin (std::ostream &)β constructor that takes anstd::ostream &, slayStateOutBin (const char *)β constructor that takes aconst char *, also slayint open (const char *name)β state information will be written to name, iconicvoid close ()β closes the output stream, bye bestie πint use_directory ()β returns true if this object uses a directory, no capint tell ()β returns the current position in the file, very demurevoid seek (int loc)β sets the current position in the file, lowkey usefulint seekable ()β returns non-zero iftellandseekdo anything sensible, vibe check fr fr
π¦ Additional Inherited Members π¦
Yeah there's more stuff inherited from the parent class, but that's above my pay grade for this page β check sc::StateOutFile if you're curious, bestie π
π Detailed Description π
Save state to a binary file.
That's it. That's the whole vibe. You're saving state. To a binary file. Simple as. β¨
π Member Function Documentation π
π
void sc::StateOutBin::seek (int loc) [virtual]
Sets the current position in the file. The way this works β the default implementation does nothing. Yup, literally nothing. It's a no-op, bestie, it's giving "I'm just here for the vibes." π
Reimplemented from sc::StateOut.
π
int sc::StateOutBin::seekable () [virtual]
Returns non-zero if tell and seek do anything sensible. The default implementation returns 0 β so like, by default, nope, not seekable, don't @ me.
Reimplemented from sc::StateOut.
π
int sc::StateOutBin::tell () [virtual]
Returns the current position in the file. The default implementation returns 0 β so it always says you're at position zero, which is a whole mood ngl.
Reimplemented from sc::StateOut.
π Author π
Generated automatically by Doxygen for MPQC from the source code. Not me writing it by hand, the robots did it. Respect the robots. π€π
So yeah, that's sc::StateOutBin(3) β this very demure, very mindful manual page is brought to you by MPQC Version 2.3.1, dated Sun Oct 4 2020. Byeee bestie, go save some binary state! ππβ¨π
π¦ 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