Input inter-processor communications stream. More...
#include <OpenFOAM/IPstream.H>
Input inter-processor communications stream.
Definition at line 53 of file IPstream.H.
Public Member Functions | |
IPstream (const commsTypes commsType, 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 | |
static label | read (const commsTypes commsType, const int fromProcNo, char *buf, const std::streamsize bufSize) |
Read into given buffer from given processor and return the.
| |
static void | waitRequests () |
Non-blocking receives: wait until all have finished.
| |
static bool | finishedRequest (const label i) |
Non-blocking receives: has request i finished?
|
IPstream | ( | const commsTypes | commsType, |
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
Definition at line 39 of file IPstream.C.
~IPstream | ( | ) |
Definition at line 105 of file IPstream.C.
ios_base::fmtflags flags | ( | ) | const [inline, virtual]
|
static label read | ( | const commsTypes | commsType, |
const int | fromProcNo, | ||
char * | buf, | ||
const std::streamsize | bufSize | ||
) | [inline, static]
|
Read into given buffer from given processor and return the.
message size
Definition at line 125 of file IPstream.H.
Referenced by Pstream::combineGather(), Pstream::combineScatter(), mapDistribute::compact(), Pstream::gather(), Pstream::gatherList(), Pstream::listCombineGather(), Pstream::listCombineScatter(), Pstream::scatter(), Pstream::scatterList(), LUscalarMatrix::solve(), processorPointPatchField< Type >::swapAdd(), and syncTools::syncBoundaryFaceList().
static void waitRequests | ( | ) | [inline, static]
|
Non-blocking receives: wait until all have finished.
Definition at line 136 of file IPstream.H.
Referenced by mapDistribute::compact(), and GeometricField< Type, PatchField, GeoMesh >::GeometricBoundaryField::evaluate().
static bool finishedRequest | ( | const label | i ) | [inline, static]
|
Non-blocking receives: has request i finished?
Definition at line 142 of file IPstream.H.
Foam::Istream & read | ( | token & | t ) | [virtual]
|
Return next token from stream.
Implements Istream.
Definition at line 112 of file IPstream.C.
References token::ADD, token::ASSIGN, token::BEGIN_BLOCK, token::BEGIN_LIST, token::BEGIN_SQR, token::COLON, token::COMMA, token::DIVIDE, token::DOUBLE_SCALAR, token::END_BLOCK, token::END_LIST, token::END_SQR, token::END_STATEMENT, token::FLOAT_SCALAR, Istream::getBack(), token::compound::isCompound(), token::LABEL, token::lineNumber(), token::MULTIPLY, token::compound::New(), token::setBad(), token::STRING, token::SUBTRACT, and token::WORD.
Foam::Istream & read | ( | char & | c ) | [virtual]
|
Foam::Istream & read | ( | word & | str ) | [virtual]
|
Foam::Istream & read | ( | string & | str ) | [virtual]
|
Implements Istream.
Definition at line 278 of file IPstream.C.
Foam::Istream & read | ( | label & | val ) | [virtual]
|
Foam::Istream & read | ( | floatScalar & | val ) | [virtual]
|
Foam::Istream & read | ( | doubleScalar & | val ) | [virtual]
|
Foam::Istream & read | ( | char * | data, |
std::streamsize | count | ||
) | [virtual]
|
Read binary block.
Implements Istream.
Definition at line 310 of file IPstream.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and format().
Foam::Istream & rewind | ( | ) | [virtual]
|
Rewind and return the stream so that it may be read again.
Implements Istream.
Definition at line 324 of file IPstream.C.
ios_base::fmtflags flags | ( | const ios_base::fmtflags | ) | [inline]
|
Set flags of stream.
Definition at line 178 of file IPstream.H.
void print | ( | Ostream & | os ) | const [virtual]
|
Print description of IOstream to Ostream.
Reimplemented from IOstream.
Definition at line 34 of file PstreamsPrint.C.
References Foam::endl(), and Pstream::myProcNo().