Go to the documentation of this file.
46 is.
fatalCheck(
"PtrList::readIstream : reading first token");
63 if (delimiter == token::BEGIN_LIST)
65 for (label i=0; i<len; ++i)
67 T*
p = inew(is).ptr();
72 "PtrList::readIstream : "
79 T*
p = inew(is).ptr();
84 "PtrList::readIstream : "
85 "reading the single entry"
88 for (label i=1; i<len; ++i)
107 while (!tok.isPunctuation(token::END_LIST))
114 <<
"Premature EOF after reading " << tok.info() <<
nl
118 slList.
append(inew(is).ptr());
126 for (
T* ptr : slList)
134 <<
"incorrect first token, expected <int> or '(', found "
147 this->readIstream(is, inew);
154 this->readIstream(is,
INew<T>());
void append(const T &item)
Add copy at tail of list.
label labelToken() const
Return label value.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
bool isLabel() const noexcept
Token is LABEL.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
Template class for non-intrusive linked lists.
A helper class when constructing from an Istream or dictionary.
patchWriters resize(patchIds.size())
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool eof() const noexcept
True if end of input seen.
constexpr PtrList() noexcept
Default construct.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
void readIstream(Istream &is, const INew &inew)
Read from Istream using Istream constructor class.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
errorManipArg< error, int > exit(error &err, const int errNo=1)
Non-intrusive singly-linked list.
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.