33 os <<
"ITstream : " << name_.c_str();
39 os <<
", line " <<
begin()->lineNumber() <<
", ";
43 os <<
", lines " <<
begin()->lineNumber()
44 <<
'-' <<
rbegin()->lineNumber() <<
", ";
65 if (tokenIndex_ < size())
67 t = operator[](tokenIndex_++);
70 if (tokenIndex_ == size())
82 ) <<
"attempt to read beyond EOF"
label lineNumber() const
Return current stream line number.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
virtual Istream & rewind()
Rewind and return the stream so that it may be read again.
virtual Istream & read(token &)
Return next token from stream.
void print(Ostream &) const
Print description of IOstream to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool getBack(token &)
Get the put back token if there is one and return true.
label size() const
Return the number of elements in the UList.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
T & first()
Return the first element of the list.
reverse_iterator rbegin()
Return reverse_iterator to begin reverse traversing the UList.
iterator begin()
Return an iterator to begin traversing the UList.
T & last()
Return the last element of the list.
A token holds items read from Istream.
static token undefinedToken
Static undefined token.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
double doubleScalar
Double precision floating point scalar type.
float floatScalar
Float precision floating point scalar type.
long double longDoubleScalar
Lang double precision floating point scalar type.