![]() |
![]()
| ![]() |
![]()
NAMEsc::StateIn - Restores objects that derive from SavableState. SYNOPSIS#include <statein.h> Inherits sc::DescribedClass. Inherited by sc::MsgStateBufRecv, and sc::StateInFile. Public Member Functionsvirtual void get_header ()
Public Member Functions inherited from sc::DescribedClass
Public Member Functions inherited from sc::RefCount
Public Member Functions inherited from sc::Identity
Protected Member Functionsvirtual int get_array_void (void *, int)
Protected Member Functions inherited from sc::RefCount
Protected AttributesRef< KeyVal > override_
Friendsclass SavableState
Detailed DescriptionRestores objects that derive from SavableState. Member Function Documentationvirtual int sc::StateIn::get (char & r, const char * keyword = 0) [virtual]These restore data saved with StateOut's put. members. Reimplemented in sc::MsgStateRecv, and sc::StateInText. virtual int sc::StateIn::get (char *&) [virtual]These restore data saved with StateOut's put. members. The data is allocated by StateIn. Reimplemented in sc::MsgStateRecv, and sc::StateInText. virtual int sc::StateIn::get (const ClassDesc **) [protected], [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 in sc::MsgStateRecv, and sc::StateInText. Referenced by get(). virtual int sc::StateIn::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 in sc::StateInText. virtual void sc::StateIn::get_header () [virtual]Read in the header information. Changes the translation scheme if necessary. virtual int sc::StateIn::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 in sc::StateInText. virtual int sc::StateIn::getstring (char *&) [virtual]This restores strings saved with StateOut::putstring. Reimplemented in sc::StateInText. virtual void sc::StateIn::list_objects (std::ostream & = ExEnv::out0()) [virtual]List all the objects to the stream. Only StateIn specializations with directories can list objects. int sc::StateIn::node_to_node () const [inline]True if this is a node to node save/restore. This is for classes that try to avoid saving databases to files that can otherwise be read in, but want to avoid reading the database from disk on all nodes. virtual void sc::StateIn::seek (int) [virtual]Set the current position in the file. The default implementation does nothing. Reimplemented in sc::BcastStateInBin, and sc::StateInBin. virtual int sc::StateIn::seekable () [virtual]Return non-zero if seek does anything sensible. The default implementation returns 0. Reimplemented in sc::BcastStateInBin, and sc::StateInBin. virtual int sc::StateIn::tell () [virtual]Return the current position in the file. Reimplemented in sc::BcastStateInBin, and sc::StateInBin. virtual int sc::StateIn::use_directory () [virtual]Returns true of this object uses a directory. Reimplemented in sc::BcastStateInBin, and sc::StateInBin. virtual int sc::StateIn::version (const ClassDesc *) [virtual]Returns the version of the ClassDesc in the persistent object or -1 if info on the ClassDesc doesn't exist. Reimplemented in sc::MsgStateRecv. AuthorGenerated automatically by Doxygen for MPQC from the source code.
|