Go to the documentation of this file.
48 "PtrList::readIstream : "
67 if (delimiter == token::BEGIN_LIST)
69 for (label i=0; i<len; ++i)
71 T*
p = inew(is).ptr();
76 "PtrList::readIstream : "
83 T*
p = inew(is).ptr();
88 "PtrList::readIstream : "
89 "reading the single entry"
92 for (label i=1; i<len; ++i)
111 if (firstToken.
pToken() != token::BEGIN_LIST)
114 <<
"incorrect first token, '(', found " << firstToken.
info()
125 && lastToken.
pToken() == token::END_LIST
134 <<
"Premature EOF after reading " << lastToken.
info()
138 slList.
append(inew(is).ptr());
146 for (
T* ptr : slList)
155 <<
"incorrect first token, expected <int> or '(', found "
167 this->readIstream(is, inew);
174 this->readIstream(is,
INew<T>());
void append(const T &item)
Add copy at tail of list.
label labelToken() const
Return label value.
bool eof() const
Return true if end of input seen.
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.
punctuationToken pToken() const
Return punctuation character.
bool isLabel() const
Token is LABEL.
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)....
constexpr PtrList() noexcept
Construct null.
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 token.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool isPunctuation() const
Token is PUNCTUATION.