Go to the documentation of this file.
83 void reserveCapacity(
const label nElem,
const bool lazy);
153 const std::string& input,
187 const std::string& input,
231 return size() - tokenIndex_;
235 ios_base::fmtflags
flags()
const
237 return ios_base::fmtflags(0);
320 ios_base::fmtflags
flags(
const ios_base::fmtflags)
322 return ios_base::fmtflags(0);
virtual bool beginRawRead()
Start of low-level raw binary read.
void append(const token &t, const bool lazy)
label tokenIndex() const
The current token index when reading, or the insertion point.
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.
Istream(const Istream &)=default
Copy construct.
label nRemainingTokens() const
The number of remaining tokens.
float floatScalar
A typedef for float.
virtual fileName & name()
Return non-const access to the name of the stream.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number (2.0)
Generic input stream using a standard (STL) stream.
A token holds an item read from Istream.
virtual Istream & read(token &tok)
Return next token from stream.
void setOpened()
Set stream opened.
virtual const fileName & name() const
Return the name of the stream.
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.
ios_base::fmtflags flags() const
Return flags of output stream.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
static tokenList parse(const UList< char > &input, streamFormat format=ASCII)
label & tokenIndex()
Non-const access to the current token index.
void seek(label pos)
Move the tokenIndex to the specified position.
List< token > tokenList
List of tokens, used for a IOdictionary entry.
void setGood()
Set stream to be good.
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...
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Database for solution data, solver performance and other reduced data.
dimensionedScalar pos(const dimensionedScalar &ds)