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 (const Xfer< T > &item, const label key=0) | |
Construct by 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... | |
Private Attributes | |
label | key_ |
Friends | |
Istream & | operator>> (Istream &, Keyed< T > &) |
Ostream & | operator (Ostream &, const Keyed< T > &) |
Construct by transferring the item, with a key.
Add labels to a list of values.
Add labels to a list of values.
|
inline |
|
inline |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.