sc::StateInText(3)

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

✨ NAME ✨

okay bestie, welcome to sc::StateInText(3) β€” the page for sc::StateInText, which reads state information written with StateOutText. That's the whole main-character job: it's the reader for that text state. πŸŽ€


🌸 SYNOPSIS 🌸

#include <state_text.h>

Inherits sc::StateInFile.

πŸ’… Public Member Functions

  • StateInText (std::istream &s) β€” one constructor, taking a std::istream &s.
  • StateInText (const char *) β€” another constructor, taking a const char *.
  • StateInText (const Ref< KeyVal > &) β€” and a constructor taking a const Ref< KeyVal > &.
  • int getstring (char *&) β€” this restores strings saved with StateOut::putstring.
  • int get_array_char (char *, int) β€” these restore data saved with StateOut's put. members. The data must be preallocated by the user, per the member docs below.
  • int get_array_uint (unsigned int *, int) β€” array-restore business, same StateOut's put. members note.
  • int get_array_int (int *, int) β€” yep, restores data saved with StateOut's put. members.
  • int get_array_float (float *, int) β€” same array-restore energy: data saved with StateOut's put. members.
  • int get_array_double (double *, int) β€” restores data saved with StateOut's put. members.
  • int get (const ClassDesc **) β€” this restores ClassDesc's.
  • int get (char &r, const char *key=0) β€” these restore data saved with StateOut's put. members.
  • int get (unsigned int &r, const char *key=0) β€” scalar-restore crew, same StateOut's put. members note.
  • int get (int &r, const char *key=0) β€” restores data saved with StateOut's put. members.
  • int get (float &r, const char *key=0) β€” restores data saved with StateOut's put. members.
  • int get (double &r, const char *key=0) β€” restores data saved with StateOut's put. members.
  • int get (char *&) β€” these restore data saved with StateOut's put. The data is allocated by StateIn, as the member docs say.
  • int get (unsigned int *&) β€” restores data saved with StateOut's put.
  • int get (int *&) β€” restores data saved with StateOut's put.
  • int get (float *&) β€” restores data saved with StateOut's put.
  • int get (double *&) β€” restores data saved with StateOut's put.

πŸ¦‹ Protected Member Functions

  • void no_newline () β€” protected member function.
  • void no_array () β€” protected member function.
  • int read (char *) β€” protected read helper.
  • int read (unsigned int &) β€” protected read helper.
  • int read (int &) β€” protected read helper.
  • int read (float &) β€” protected read helper.
  • int read (double &) β€” protected read helper.
  • void newline () β€” protected member function.
  • void start_array () β€” protected member function.
  • void end_array () β€” protected member function.
  • int getobject (Ref< SavableState > &) β€” this is used to restore an object.
  • void abort () β€” protected member function.

πŸŽ€ Protected Attributes

  • int newlines_ β€” protected attribute.
  • int no_newline_ β€” protected attribute.
  • int no_array_ β€” protected attribute.

πŸ¦‹ DETAILED DESCRIPTION πŸ¦‹

Reads state information written with StateOutText. That's it, that's the whole mood. πŸ¦‹


🧚 MEMBER FUNCTION DOCUMENTATION 🧚

πŸ’œ int sc::StateInText::get (char *&) [virtual]

These restore data saved with StateOut's put. members. The data is allocated by StateIn.

Reimplemented from sc::StateIn.

πŸ”₯ int sc::StateInText::get (const ClassDesc **) [virtual]

This restores ClassDesc's. It will set the pointer to the address of the static ClassDesc for the class which has the same name as the class that had the ClassDesc that was saved by put(const ClassDesc*).

Reimplemented from sc::StateIn.

πŸŽ€ int sc::StateInText::get_array_char (char * p, int size) [virtual]

These restore data saved with StateOut's put. members. The data must be preallocated by the user.

Reimplemented from sc::StateIn.

🌈 int sc::StateInText::getobject (Ref< SavableState > &) [protected], [virtual]

This is used to restore an object. It is called with the reference to the reference being restored. If the data being restored has previously been restored, then the pointer being restored is set to a reference to the previously restored object.

Reimplemented from sc::StateIn.


🌟 AUTHOR 🌟

Generated automatically by Doxygen for MPQC from the source code.


okay bye bestie 🫢 β€” this was sc::StateInText(3), Version 2.3.1, dated Sun Oct 4 2020. πŸ’–βœ¨

πŸ“¦ where this page comes from