OpenFOAM logo
Open Source CFD Toolkit

IPstream Class Reference

Inheritance diagram for IPstream:

Inheritance graph
[legend]
Collaboration diagram for IPstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IPstream (const int fromProcNo, const label bufSize=0, streamFormat format=BINARY, versionNumber version=currentVersion)
 Construct given process index to read from and optional buffer size,.
 ~IPstream ()
ios_base::fmtflags flags () const
 Return flags of output stream.
Istream & read (token &)
 Return next token from stream.
Istream & read (char &)
 Read a character.
Istream & read (word &)
 Read a word.
Istream & read (string &)
Istream & read (label &)
 Read a label.
Istream & read (floatScalar &)
 Read a floatScalar.
Istream & read (doubleScalar &)
 Read a doubleScalar.
Istream & read (char *, std::streamsize)
 Read binary block.
Istream & rewind ()
 Rewind and return the stream so that it may be read again.
ios_base::fmtflags flags (const ios_base::fmtflags)
 Set flags of stream.
void print (Ostream &) const
 Print description of IOstream to Ostream.

Static Public Member Functions

bool read (const int fromProcNo, char *buf, const std::streamsize bufSize)
 Read into given buffer from given processor.

Constructor & Destructor Documentation

IPstream (  const int  fromProcNo,
const label  bufSize = 0,
streamFormat  format = BINARY,
versionNumber  version = currentVersion
) 
 

Construct given process index to read from and optional buffer size,.

read format and IO version

~IPstream (   ) 
 


Member Function Documentation

ios_base::fmtflags flags (  const ios_base::fmtflags   )  [inline]
 

Set flags of stream.

Definition at line 154 of file IPstream.H.

ios_base::fmtflags flags (   )  const [inline, virtual]
 

Return flags of output stream.

Implements IOstream.

Definition at line 107 of file IPstream.H.

void print (  Ostream &   )  const [virtual]
 

Print description of IOstream to Ostream.

Reimplemented from IOstream.

Istream& read (  char *  ,
std::streamsize 
)  [virtual]
 

Read binary block.

Implements Istream.

Istream& read (  doubleScalar &   )  [virtual]
 

Read a doubleScalar.

Implements Istream.

Istream& read (  floatScalar &   )  [virtual]
 

Read a floatScalar.

Implements Istream.

Istream& read (  label &   )  [virtual]
 

Read a label.

Implements Istream.

Istream& read (  string &   )  [virtual]
 

Implements Istream.

Istream& read (  word &   )  [virtual]
 

Read a word.

Implements Istream.

Istream& read (  char &   )  [virtual]
 

Read a character.

Implements Istream.

Istream& read (  token &   )  [virtual]
 

Return next token from stream.

Implements Istream.

bool read (  const int  fromProcNo,
char *  buf,
const std::streamsize  bufSize
)  [static]
 

Read into given buffer from given processor.

Istream& rewind (   )  [virtual]
 

Rewind and return the stream so that it may be read again.

Implements Istream.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org