Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

BcastStateInBin Class Reference

BcastStateBin reads a file in written by StateInBin on node 0 and broadcasts it to all nodes so state can be simultaneously restored on all nodes. More...

#include <mstate.h>

Inheritance diagram for BcastStateInBin

Inheritance graph
[legend]
Collaboration diagram for BcastStateInBin:

Collaboration graph
[legend]
List of all members.

Public Methods

 BcastStateInBin (const Ref< KeyVal > &)
 Create the BcastStateRecv using the default MessageGrp.

 BcastStateInBin (const Ref< MessageGrp > &, const char *filename)
 Create the BcastStateRecv.

 ~BcastStateInBin ()
virtual int open (const char *name)
virtual void close ()
void seek (int loc)
 Set the current position in the file. More...

int seekable ()
 Return non-zero if seek does anything sensible. More...

int tell ()
 Return the current position in the file.

int use_directory ()
 Returns true of this object uses a directory.


Protected Methods

void next_buffer ()
 Specializations must implement next_buffer().

int get_array_void (void *, int)

Protected Attributes

int opened_
int file_position_
std::streambuf* buf_

Detailed Description

BcastStateBin reads a file in written by StateInBin on node 0 and broadcasts it to all nodes so state can be simultaneously restored on all nodes.


Member Function Documentation

void BcastStateInBin::seek ( int loc ) [virtual]
 

Set the current position in the file.

The default implementation does nothing.

Reimplemented from StateIn.

int BcastStateInBin::seekable ( ) [virtual]
 

Return non-zero if seek does anything sensible.

The default implementation returns 0.

Reimplemented from StateIn.


The documentation for this class was generated from the following file:
Generated at Thu Oct 4 18:08:52 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.