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&)");
139 <<
static_cast<const T&
>(item)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
virtual bool check(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)....
Istream & readEnd(const char *funcName)
Istream & readBegin(const char *funcName)
A container with an integer key attached to any item.
label key() const
Return const access to the integer key.
static List< Keyed< T > > createList(const List< T > &, const label key=0)
Add labels to a list of values.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label size() const
Return the number of elements in the UList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)