65 label& externalBufPosition_;
71 const bool clearAtEnd_;
79 inline void checkEof();
83 inline void readFromBuffer(
T&);
86 inline void readFromBuffer(
void* data,
size_t count,
size_t align);
100 label& externalBufPosition,
103 const bool clearAtEnd =
false,
121 ios_base::fmtflags
flags()
const
123 return ios_base::fmtflags(0);
134 const int fromProcNo,
136 const std::streamsize bufSize,
138 const label communicator = 0
184 ios_base::fmtflags
flags(
const ios_base::fmtflags)
186 return ios_base::fmtflags(0);
static const versionNumber currentVersion
Current version number.
streamFormat format() const
Return current stream format.
streamFormat
Enumeration for the format of data in the stream.
versionNumber version() const
Return the stream version.
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).
Input inter-processor communications stream operating on external buffer.
ios_base::fmtflags flags() const
Return flags of output stream.
Istream & rewind()
Rewind and return the stream so that it may be read again.
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,.
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.
void print(Ostream &) const
Print description of IOstream to Ostream.
Inter-processor communications stream.
commsTypes
Types of communications.
static label worldComm
Default communicator (all processors)
commsTypes commsType() const
Get the communications type of the stream.
static int & msgType()
Message tag of standard messages.
A token holds items read from Istream.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
double doubleScalar
Double precision floating point scalar type.
float floatScalar
Float precision floating point scalar type.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
long double longDoubleScalar
Lang double precision floating point scalar type.