sc::StateOutText(3)
π NAME π
sc::StateOutText β MPQC manual, section 3 β writes out state information in an almost human readable format. slay.
π¦ SYNOPSIS π¦
#include <state_text.h>
Inherits sc::StateOutFile.
πΈ Public Member Functions πΈ
StateOutText (std::ostream &s)StateOutText (const char *)int putstring (const char *)β this is likeputexcept the length of the char array is determined by interpreting the character array as a character string.int put_array_char (const char *, int)β put arrays of data. No size information is stored. This data is read by theget_array_Troutines.int put_array_uint (const unsigned int *, int)int put_array_int (const int *, int)int put_array_float (const float *, int)int put_array_double (const double *, int)int put (const ClassDesc *)β write out information about the givenClassDesc.int put (char r)β write the given datum.int put (unsigned int r)int put (int r)int put (float r)int put (double r)int put (const char *, int)β write the given array data.int put (const unsigned int *, int)int put (const int *, int)int put (const float *, int)int put (const double *, int)
π§ Protected Member Functions π§
void no_newline ()void no_array ()void newline ()void start_array ()void end_array ()int putobject (const Ref< SavableState > &)β this will prepareStateOutto output a pointer to data.int putparents (const ClassDesc *)
π Protected Attributes π
int no_newline_int no_array_
π₯ DETAILED DESCRIPTION π₯
Writes out state information in an almost human readable format.
StateOutText is intended for debugging only. The state information can read in again with StateInText.
π¨ debugging only, bestie β StateOutText is intended for debugging only, periodt.
π MEMBER FUNCTION DOCUMENTATION π
π int sc::StateOutText::put (const char *, int) [virtual] π
Write the given array data. Size information is also saved. The data is allocated and read by the get(T*&) routines.
Reimplemented from sc::StateOut.
π¦ int sc::StateOutText::put_array_char (const char * p, int size) [virtual] π¦
Put arrays of data. No size information is stored. This data is read by the get_array_T routines.
Reimplemented from sc::StateOut.
π int sc::StateOutText::putobject (const Ref< SavableState > &) [protected], [virtual] π
This will prepare StateOut to output a pointer to data. It first checks to see if the data has already been saved. If it has, then a reference to this data is saved. Otherwise the object is written out.
Reimplemented from sc::StateOut.
π AUTHOR π
Generated automatically by Doxygen for MPQC from the source code. iykyk, autogenerated era.
catch u later, bestie β MPQC 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