45 is.
fatalCheck(
"PtrList::readIstream : reading first token");
64 for (label i=0; i<len; ++i)
66 T*
p = inew(is).ptr();
71 "PtrList::readIstream : "
78 T*
p = inew(is).ptr();
83 "PtrList::readIstream : "
84 "reading the single entry"
87 for (label i=1; i<len; ++i)
105 while (!tok.isPunctuation(token::END_LIST))
112 <<
"Premature EOF after reading " << tok.info() <<
nl
113 <<
exit(FatalIOError);
121 else if (len == this->size())
126 T*
p = inew(is).ptr();
139 <<
"incorrect first token, expected <int> or '(', found "
141 <<
exit(FatalIOError);
159 this->readIstream(is,
INew<T>());
168 list.readIstream(is, INew<T>());
A helper class when constructing from an Istream or dictionary.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
bool eof() const noexcept
True if end of input seen.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
void putBack(const token &tok)
Put back a token (copy). Only a single put back is permitted.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie,...
void readIstream(Istream &is, const INew &inew)
Read from Istream using Istream constructor class.
constexpr PtrList() noexcept
Default construct.
A token holds an item read from Istream.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
bool isLabel() const noexcept
Integral token is convertible to Foam::label.
label labelToken() const
Return integer type as label value or Error.
InfoProxy< token > info() const noexcept
Return info proxy, for printing token information to a stream.
patchWriters resize(patchIds.size())
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
Istream & operator>>(Istream &, directionInfo &)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
constexpr char nl
The newline '\n' character (0x0a).