A container with an integer key attached to any item. More...
#include <OpenFOAM/Keyed.H>
A container with an integer key attached to any item.
The key can useful for sorting.
Definition at line 59 of file Keyed.H.
Public Member Functions | |
| Keyed () | |
| Construct null.
| |
| Keyed (const T &item, const label key=0) | |
| Construct as a copy of item, with a key.
| |
| Keyed (const Xfer< T > &item, const label key=0) | |
| Construct by transferring the item, with a key.
| |
| Keyed (Istream &) | |
| Construct from Istream.
| |
| label | key () const |
| Return const access to the integer key.
| |
| label & | key () |
| Return non-const access to the integer key.
| |
Static Public Member Functions | |
| static List< Keyed< T > > | createList (const List< T > &, const label key=0) |
| Add labels to a list of values.
| |
| static List< Keyed< T > > | createList (const List< T > &, const List< label > &keys) |
| Add labels to a list of values.
| |
Friends | |
| Istream & | operator>> (Istream &, Keyed< T > &) |
| Ostream & | operator (Ostream &, const Keyed< T > &) |
| Keyed | ( | const T & | item, |
| const label | key = 0
|
||
| ) | [inline]
|
| Foam::List< Foam::Keyed< T > > createList | ( | const List< T > & | lst, |
| const label | key = 0
|
||
| ) | [inline, static]
|
Add labels to a list of values.
Definition at line 79 of file KeyedI.H.
References forAll, and List< T >::size().
| Foam::List< Foam::Keyed< T > > createList | ( | const List< T > & | lst, |
| const List< label > & | keys | ||
| ) | [inline, static]
|
Add labels to a list of values.
Definition at line 93 of file KeyedI.H.
References Foam::abort(), Foam::FatalError, FatalErrorIn, forAll, Foam::nl, and List< T >::size().
| Foam::label key | ( | ) | const [inline]
|
| Foam::label & key | ( | ) | [inline]
|