![]() |
![]()
| ![]() |
![]()
NAMEsc::StateOut - Serializes objects that derive from SavableState. SYNOPSIS#include <stateout.h> Inherits sc::DescribedClass. Inherited by sc::MsgStateSend, and sc::StateOutFile. Public Member Functionsvirtual void put_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 put_array_void (const void *, int)
Protected Member Functions inherited from sc::RefCount
Protected Attributesint dir_loc_loc_
Friendsclass SavableState
Detailed DescriptionSerializes objects that derive from SavableState. StateOut keeps track of pointers to data so that two references to the same piece of data do not result in that data being sent to the output device two times. Member Function Documentationvoid sc::StateOut::copy_references ()If a reference to an object that has already been written is encountered, copy it instead of generating a reference to the first object. The directory will not be updated with new objects. virtual void sc::StateOut::flush () [virtual]Flush out any remaining data. Reimplemented in sc::StateSend, sc::BcastStateSend, sc::StateOutFile, and sc::MsgStateSend. void sc::StateOut::forget_references ()Don't keep track of pointers to objects. Calling this causes duplicated references to objects to be copied. The directory will not contain the forgotten objects. int sc::StateOut::node_to_node () const [inline]True if this is a node to node save/restore. This is necessary 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 int sc::StateOut::put (char r) [virtual]Write the given datum. Reimplemented in sc::MsgStateSend, and sc::StateOutText. virtual int sc::StateOut::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 in sc::MsgStateSend, and sc::StateOutText. virtual int sc::StateOut::put (const ClassDesc *) [protected], [virtual]Write out information about the given ClassDesc. Reimplemented in sc::MsgStateSend, and sc::StateOutText. Referenced by put(). virtual int sc::StateOut::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 in sc::StateOutText. virtual int sc::StateOut::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 in sc::StateOutText. virtual int sc::StateOut::putstring (const char *) [virtual]This is like put except the length of the char array is determined by interpreting the character array as a character string. Reimplemented in sc::StateOutText. virtual void sc::StateOut::seek (int loc) [virtual]Set the current position in the file. The default implementation does nothing. Reimplemented in sc::StateOutBin. virtual int sc::StateOut::seekable () [virtual]Return non-zero if tell and seek do anything sensible. The default implementation returns 0. Reimplemented in sc::StateOutBin. virtual int sc::StateOut::tell () [virtual]Returns the current position in the file. The default implementation returns 0. Reimplemented in sc::StateOutBin. virtual int sc::StateOut::use_directory () [virtual]Returns true if this object uses a directory. Reimplemented in sc::StateOutBin. AuthorGenerated automatically by Doxygen for MPQC from the source code.
|