Go to the documentation of this file.
73 const bool sendAtDestruct_;
80 inline void prepareBuffer(
const size_t count,
const size_t align);
84 inline void writeToBuffer(
const T& val);
88 inline void writeToBuffer
96 inline void putChar(
const char c);
100 inline void putString(
const std::string& str);
117 const bool sendAtDestruct =
true,
134 virtual ios_base::fmtflags
flags()
const
136 return ios_base::fmtflags(0);
148 const std::streamsize bufSize,
174 const std::string& str,
175 const bool quoted=
true
224 virtual char fill()
const
230 virtual char fill(
const char)
236 virtual int width()
const
243 virtual int width(
const int)
265 ios_base::fmtflags
flags(
const ios_base::fmtflags)
267 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, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
double doubleScalar
A typedef for double.
commsTypes commsType() const noexcept
Get the communications type of the stream.
virtual void flush()
Flush stream.
A class for handling words, derived from Foam::string.
static bool write(const commsTypes commsType, const int toProcNo, const char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label communicator=UPstream::worldComm)
Write given buffer to given processor.
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).
A token holds an item read from Istream.
virtual void endl()
Add newline and flush stream.
virtual bool endRawWrite()
End marker for low-level raw binary output.
Inter-processor communications stream.
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.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
streamFormat
Data format (ascii | binary)
virtual int width() const
Get width of output field.
OBJstream os(runTime.globalPath()/outputName)
virtual int precision() const
Get precision of output field.
commsTypes
Types of communications.
static int & msgType() noexcept
Message tag of standard messages.
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.