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) | |
| Construct as a copy of item, with a key. More... | |
| Keyed (T &&item, const label key=0) | |
| Move constructor transferring the item, with a key. More... | |
| Keyed (Istream &) | |
| 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 List< T > &, const label key=0) |
| Add labels to a list of values. More... | |
| static List< Keyed< T > > | createList (const List< T > &, 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.
The key can useful for sorting.
|
inlinestatic |
Add labels to a list of values.
Definition at line 79 of file KeyedI.H.
References forAll, and List< 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, UList< T >::size(), and List< T >::size().

|
inline |
|
inline |