Go to the documentation of this file.
73 const bool sendAtDestruct_;
79 inline void prepareBuffer(
const size_t count,
const size_t align);
83 inline void writeToBuffer(
const T& val);
86 inline void writeToBuffer(
const char&
c);
90 inline void writeToBuffer
99 inline void writeStringToBuffer(
const std::string& str);
115 const bool sendAtDestruct =
true,
133 virtual ios_base::fmtflags
flags()
const
135 return ios_base::fmtflags(0);
147 const std::streamsize bufSize,
149 const label communicator = 0
173 const std::string& str,
174 const bool quoted=
true
223 virtual char fill()
const
229 virtual char fill(
const char)
235 virtual int width()
const
242 virtual int width(
const int)
264 ios_base::fmtflags
flags(
const ios_base::fmtflags)
266 return ios_base::fmtflags(0);
UOPstream(const commsTypes commsType, const int toProcNo, DynamicList< char > &sendBuf, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm, const bool sendAtDestruct=true, streamFormat format=BINARY, versionNumber version=currentVersion)
Construct given process index to send to and optional buffer size,.
double doubleScalar
A typedef for double.
virtual void flush()
Flush stream.
A class for handling words, derived from Foam::string.
Output inter-processor communications stream operating on external buffer.
float floatScalar
A typedef for float.
void print(Ostream &os) const
Print stream description to Ostream.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number (2.0)
A token holds an item read from Istream.
virtual void endl()
Add newline and flush stream.
static bool write(const commsTypes commsType, const int toProcNo, const char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label communicator=0)
Write given buffer to given processor.
virtual bool endRawWrite()
End marker for low-level raw binary output.
Inter-processor communications stream.
Representation of a major/minor version number.
ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual char fill(const char)
Set padding character for formatted field up to field width.
commsTypes commsType() const
Get the communications type of the stream.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
virtual int width() const
Get width of output field.
virtual int precision() const
Get precision of output field.
static int & msgType()
Message tag of standard messages.
commsTypes
Types of communications.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
static label worldComm
Default communicator (all processors)
virtual char fill() const
Get the current padding character.
const dimensionedScalar c
Speed of light in a vacuum.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
Database for solution data, solver performance and other reduced data.
virtual void indent()
Add indentation characters.