Go to the documentation of this file.
60 is.
fatalCheck(
"List<T>::readList(Istream&) : reading first token");
89 Detail::readContiguous<T>
98 "List<T>::readList(Istream&) : "
99 "reading the binary block"
110 if (delimiter == token::BEGIN_LIST)
112 for (label i=0; i<len; ++i)
118 "List<T>::readList(Istream&) : "
132 "List<T>::readList(Istream&) : "
133 "reading the single entry"
136 for (label i=0; i<len; ++i)
155 list = std::move(sll);
160 <<
"incorrect first token, expected <int> or '(', found "
label labelToken() const
Return label value.
bool isLabel() const noexcept
Token is LABEL.
A templated class for holding compound tokens.
void resize(const label len)
Adjust allocated size of list.
Istream & readList(Istream &is)
Read List from Istream, discarding contents of existing List.
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.
streamFormat format() const noexcept
Get the current stream format.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
A token holds an item read from Istream.
Template class for non-intrusive linked lists.
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)....
void transfer(List< T > &list)
bool isPunctuation() const noexcept
Token is PUNCTUATION.
constexpr List() noexcept
Default construct.
compound & transferCompoundToken()
Return reference to compound and mark internally as released.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Non-intrusive singly-linked list.
To & dynamicCast(From &r)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void clear()
Clear the list, i.e. set size to zero.
bool isCompound() const noexcept
Token is COMPOUND.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A template class to specify that a data type can be considered as being contiguous in memory.