Go to the documentation of this file.
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]);
120 is >>
static_cast<T&
>(item) >> item.key_;
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.
A container with an integer key attached to any item.
Istream & operator>>(Istream &, directionInfo &)
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
#define forAll(list, i)
Loop across all elements in list.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
static List< Keyed< T > > createList(const UList< T > &lst, const label key=0)
Add labels to a list of values.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].