Go to the documentation of this file.
85 newList[elemI] =
Keyed(lst[elemI], key);
95 if (lst.
size() != keys.size())
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);
126 is.readEnd(
"Keyed<T>");
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...
label key() const
Return const access to the integer key.
#define forAll(list, i)
Loop across all elements in list.
A container with an integer key attached to any item.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Ostream & operator<<(Ostream &, const edgeMesh &)
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Istream & operator>>(Istream &, edgeMesh &)
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,...
Istream & readBegin(const char *funcName)
UList< label > labelUList
static List< Keyed< T > > createList(const List< T > &, const label key=0)
Add labels to a list of values.