Go to the documentation of this file.
74 const bool clearAtEnd_;
82 inline void checkEof();
85 inline void prepareBuffer(
const size_t align);
89 inline void readFromBuffer(
T& val);
93 inline void readFromBuffer(
void*
data,
const size_t count);
96 inline Istream& readString(std::string& str);
109 const int fromProcNo,
111 label& receiveBufPosition,
114 const bool clearAtEnd =
false,
131 ios_base::fmtflags
flags()
const
133 return ios_base::fmtflags(0);
144 const int fromProcNo,
146 const std::streamsize bufSize,
194 ios_base::fmtflags
flags(
const ios_base::fmtflags)
196 return ios_base::fmtflags(0);
ios_base::fmtflags flags() const
Return flags of output stream.
double doubleScalar
A typedef for double.
commsTypes commsType() const noexcept
Get the communications type of the stream.
A class for handling words, derived from Foam::string.
float floatScalar
A typedef for float.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void rewind()
Rewind the stream so that it may be read again.
A token holds an item read from Istream.
static label read(const commsTypes commsType, const int fromProcNo, char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label communicator=UPstream::worldComm)
Read into given buffer from given processor.
UIPstream(const commsTypes commsType, const int fromProcNo, DynamicList< char > &receiveBuf, label &receiveBufPosition, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, const bool clearAtEnd=false, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
Inter-processor communications stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void print(Ostream &os) const
Print stream description to Ostream.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
commsTypes
Types of communications.
Istream & readRaw(char *data, std::streamsize count)
Low-level raw binary read.
static int & msgType() noexcept
Message tag of standard messages.
bool endRawRead()
End of low-level raw binary read.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
static label worldComm
Default communicator (all processors)
ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Input inter-processor communications stream operating on external buffer.
bool beginRawRead()
Start of low-level raw binary read.
Database for solution data, solver performance and other reduced data.