60 is.
fatalCheck(
"List<T>::readList(Istream&) : reading first token");
89 Detail::readContiguous<T>
98 "List<T>::readList(Istream&) : "
99 "reading the binary block"
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 "
Non-intrusive singly-linked list.
streamFormat format() const noexcept
Get the current stream format.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
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. Only a single put back is permitted.
Template class for non-intrusive linked lists.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &list)
constexpr List() noexcept
Default construct.
void resize(const label len)
Adjust allocated size of list.
void clear()
Clear the list, i.e. set size to zero.
Istream & readList(Istream &is)
Read List from Istream, discarding contents of existing List.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
char * data_bytes() noexcept
Return pointer to the underlying array serving as data storage,.
std::streamsize size_bytes() const noexcept
Number of contiguous bytes for the List data.
A templated class for holding compound tokens.
A token holds an item read from Istream.
compound & transferCompoundToken()
Return reference to compound and mark internally as released.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
@ BEGIN_LIST
Begin list [isseparator].
bool isLabel() const noexcept
Token is LABEL.
label labelToken() const
Return label value.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
bool isCompound() const noexcept
Token is COMPOUND.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
To & dynamicCast(From &r)
A template class to specify that a data type can be considered as being contiguous in memory.