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.
|
inline |
Construct null.
Definition at line 33 of file KeyedI.H.
Referenced by Keyed< T >::createList().
|
inlinestatic |
Add labels to a list of values.
Definition at line 79 of file KeyedI.H.
References forAll, Keyed< T >::Keyed(), and List< T >::size().
|
inlinestatic |
Add labels to a list of values.
Definition at line 93 of file KeyedI.H.
References Foam::abort(), token::BEGIN_LIST, IOstream::check(), token::END_LIST, Foam::FatalError, FatalErrorInFunction, forAll, Keyed< T >::Keyed(), Foam::nl, Foam::operator>>(), Istream::readBegin(), Istream::readEnd(), List< T >::size(), UList< T >::size(), token::SPACE, and Foam::T().
|
inline |
|
inline |