Go to the documentation of this file.
76 void reserveCapacity(
const label nElem,
const bool lazy);
93 const string&
name =
"input"
100 const string&
name =
"input",
126 const string&
name =
"input"
133 const std::string&
input,
135 const string&
name =
"input"
144 const string&
name =
"input"
166 const std::string&
input,
217 return size() - tokenIndex_;
230 void skip(label
n = 1);
278 virtual ios_base::fmtflags
flags()
const
280 return ios_base::fmtflags(0);
284 ios_base::fmtflags
flags(
const ios_base::fmtflags)
286 return ios_base::fmtflags(0);
360 #ifdef Foam_IOstream_extras
378 List<token>&& tokens,
virtual bool beginRawRead()
Start of low-level raw binary read.
void append(const token &t, const bool lazy)
double doubleScalar
A typedef for double.
virtual void rewind()
Rewind the stream so that it may be read again.
virtual Istream & readRaw(char *data, std::streamsize count)
Low-level raw binary read.
A class for handling words, derived from Foam::string.
A class for handling file names.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
float floatScalar
A typedef for float.
virtual fileName & name()
Return stream name for modification.
static const versionNumber currentVersion
The current version number (2.0)
A token holds an item read from Istream.
virtual ios_base::fmtflags flags() const
Get stream flags - always 0.
virtual Istream & read(token &tok)
Return next token from stream.
virtual const fileName & name() const
Get the name of the stream.
label & tokenIndex() noexcept
Non-const access to the current token index.
void operator=(const ITstream &is)
Copy assignment, with rewind()
virtual ~ITstream()=default
Destructor.
ITstream(const ITstream &is)
Copy construct.
Representation of a major/minor version number.
An input stream of tokens.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void print(Ostream &os) const
Print stream description to Ostream.
ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream - ignored.
const token & peekFirst() const
Failsafe peek at the first token in the list.
The IOstreamOption is a simple container for options an IOstream can normally have.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
void seek(label pos)
Move tokenIndex to the specified position.
void skip(label n=1)
Move tokenIndex relative to the current position.
bool hasPutback() const noexcept
True if putback token is in use.
std::string toString() const
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const token & peekLast() const
Failsafe peek at the last token in the list.
label tokenIndex() const noexcept
The current token index when reading, or the insertion point.
virtual bool endRawRead()
End of low-level raw binary read.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static Istream & input(Istream &is, IntRange< T > &range)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label nRemainingTokens() const noexcept
Number of tokens remaining.
const token & peek() const
Failsafe peek at what the next read would return,.
static tokenList parse(const UList< char > &input, IOstreamOption streamOpt=IOstreamOption())
Database for solution data, solver performance and other reduced data.
bool hasPutback() const noexcept
True if putback token is in use.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
dimensionedScalar pos(const dimensionedScalar &ds)