Go to the documentation of this file.
68 label& externalBufPosition_;
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& readStringFromBuffer(std::string& str);
108 const int fromProcNo,
110 label& externalBufPosition,
113 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,
148 const label communicator = 0
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.
label ListType::const_reference val
double doubleScalar
Floating-point double precision scalar type.
A class for handling words, derived from Foam::string.
float floatScalar
Floating-point single precision scalar type.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void rewind()
Rewind the stream so that it may be read again.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number.
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=0)
Read into given buffer from given processor and return the.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Inter-processor communications stream.
Representation of a major/minor version number.
void print(Ostream &) const
Print description of IOstream to Ostream.
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)
commsTypes commsType() const
Get the communications type of the stream.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
Istream & readRaw(char *data, std::streamsize count)
Low-level raw binary read.
static int & msgType()
Message tag of standard messages.
commsTypes
Types of communications.
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.
UIPstream(const commsTypes commsType, const int fromProcNo, DynamicList< char > &externalBuf, label &externalBufPosition, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, const bool clearAtEnd=false, streamFormat format=BINARY, versionNumber version=currentVersion)
Construct given process index to read from and optional buffer size,.
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.