42#ifndef Foam_UIPstream_H
43#define Foam_UIPstream_H
67 inline void checkEof();
70 inline void prepareBuffer(
const size_t align);
74 inline void readFromBuffer(
T& val);
78 inline void readFromBuffer(
void*
data,
const size_t count);
81 inline Istream& readString(std::string& str);
111 const int fromProcNo,
113 label& receiveBufPosition,
116 const bool clearAtEnd =
false,
136 virtual ios_base::fmtflags
flags()
const
138 return ios_base::fmtflags(0);
190 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags)
192 return ios_base::fmtflags(0);
216 void bufferIPCrecv();
229 const int fromProcNo,
231 label& receiveBufPosition,
234 const bool clearAtEnd =
false,
259 const int fromProcNo,
261 const std::streamsize bufSize,
281 void bufferIPCrecv();
294 const int rootProcNo,
296 label& receiveBufPosition,
299 const bool clearAtEnd =
false,
321 const int rootProcNo,
323 const std::streamsize bufSize,
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
streamFormat
Data format (ascii | binary)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual bool read()
Re-read model coefficients if they have changed.
static label read(const commsTypes commsTypes, const int rootProcNo, char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Wrapped version of UPstream::broadcast.
virtual ~UIPBstream()=default
Destructor.
Base class for input inter-processor communications stream (ie, parallel streams)....
virtual ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
bool endRawRead()
End of low-level raw binary read.
void print(Ostream &os) const
Print stream description to Ostream.
Istream & read(token &t)
Return next token from stream.
virtual void rewind()
Rewind the receive stream position so that it may be read again.
virtual ~UIPstreamBase()
Destructor. Optionally clears external receive buffer.
DynamicList< char > & recvBuf_
bool beginRawRead()
Start of low-level raw binary read.
Istream & readRaw(char *data, std::streamsize count)
Low-level raw binary read.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual ~UIPstream()=default
Destructor.
static label read(const commsTypes commsType, const int fromProcNo, char *buf, const std::streamsize bufSize, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Read buffer contents from given processor.
Inter-processor communications stream.
commsTypes
Types of communications.
static int & msgType() noexcept
Message tag of standard messages.
commsTypes commsType() const noexcept
Get the communications type of the stream.
static label worldComm
Default communicator (all processors)
Database for solution data, solver performance and other reduced data.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
double doubleScalar
A typedef for double.
float floatScalar
A typedef for float.