85 newList[elemI] =
Keyed(lst[elemI], key);
98 <<
"size mismatch adding keys to a list:" <<
nl 99 <<
"List has size " << lst.
size()
100 <<
" and keys has size " << keys.
size() <<
nl 108 newList[elemI] =
Keyed(lst[elemI], keys[elemI]);
122 is >>
static_cast<T&
>(item);
129 is.
check(
"Istream& operator>>(Istream&, Keyed&)");
136 inline Foam::Ostream& Foam::operator<<(Ostream& os, const Keyed<T>& item)
139 <<
static_cast<const T&
>(item)
Istream & readBegin(const char *funcName)
A container with an integer key attached to any item.
#define forAll(list, i)
Loop across all elements in list.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
static List< Keyed< T > > createList(const List< T > &, const label key=0)
Add labels to a list of values.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Istream & readEnd(const char *funcName)
Istream & operator>>(Istream &, directionInfo &)
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
label key() const
Return const access to the integer key.
label size() const
Return the number of elements in the UList.