Go to the documentation of this file.
59 if (firstToken.isCompound())
65 firstToken.transferCompoundToken(is)
74 if (firstToken.isLabel())
76 const label len = firstToken.labelToken();
83 if (is.
format() == IOstream::ASCII || !is_contiguous<T>::value)
90 if (delimiter == token::BEGIN_LIST)
92 for (label i=0; i<len; ++i)
98 "operator>>(Istream&, List<T>&) : "
112 "operator>>(Istream&, List<T>&) : "
113 "reading the single entry"
116 for (label i=0; i<len; ++i)
130 Detail::readContiguous<T>
133 reinterpret_cast<char*
>(list.data()),
139 "operator>>(Istream&, List<T>&) : "
140 "reading the binary block"
149 if (firstToken.isPunctuation())
151 if (firstToken.pToken() != token::BEGIN_LIST)
154 <<
"incorrect first token, expected '(', found "
164 list = std::move(sll);
171 <<
"incorrect first token, expected <int> or '(', found "
A templated class for holding compound tokens.
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 '}'.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
void resize(const label newSize)
Adjust allocated size of list.
constexpr List() noexcept
Null constructor.
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 token.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.