A container with an integer key attached to any item. More...
Public Member Functions | |
| Keyed () | |
| Construct null. More... | |
| Keyed (const T &item, const label key=0) | |
| Copy construct item, with a key. More... | |
| Keyed (T &&item, const label key=0) | |
| Move construct item, with a key. More... | |
| Keyed (Istream &is) | |
| Construct from Istream. More... | |
| label | key () const |
| Return const access to the integer key. More... | |
| label & | key () |
| Return non-const access to the integer key. More... | |
Static Public Member Functions | |
| static List< Keyed< T > > | createList (const UList< T > &lst, const label key=0) |
| Add labels to a list of values. More... | |
| static List< Keyed< T > > | createList (const UList< T > &lst, const labelUList &keys) |
| Add labels to a list of values. More... | |
Friends | |
| Istream & | operator>> (Istream &, Keyed< T > &) |
| Ostream & | operator (Ostream &, const Keyed< T > &) |
A container with an integer key attached to any item.
|
inlinestatic |
Add labels to a list of values.
Definition at line 79 of file KeyedI.H.
References forAll, and UList< T >::size().
|
inlinestatic |
Add labels to a list of values.
Definition at line 93 of file KeyedI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, and UList< T >::size().
|
inline |
|
inline |