A container with an integer index that can be attached to any item. The index may be useful for sorting or storing additional information. More...
Public Member Functions | |
LabelledItem () | |
Default construct item, with index = -1. More... | |
LabelledItem (const T &item) | |
Copy construct item, with index = -1. More... | |
LabelledItem (T &&item) | |
Move construct item, with index = -1. More... | |
LabelledItem (const T &item, label idx) | |
Construct from components. More... | |
LabelledItem (Istream &is) | |
Construct from Istream. More... | |
label | index () const noexcept |
Return the index. More... | |
label & | index () noexcept |
Non-const access to the index. More... | |
void | setIndex (const label idx) noexcept |
Set the index. More... | |
bool | operator== (const LabelledItem< T > &rhs) const |
Test for equality of components. More... | |
bool | operator!= (const LabelledItem< T > &rhs) const |
Test for inequality of components. More... | |
Friends | |
Istream & | operator>> (Istream &, LabelledItem< T > &) |
Ostream & | operator (Ostream &, const LabelledItem< T > &) |
A container with an integer index that can be attached to any item. The index may be useful for sorting or storing additional information.
Definition at line 50 of file LabelledItem.H.
|
inline |
Default construct item, with index = -1.
Definition at line 79 of file LabelledItem.H.
|
inlineexplicit |
Copy construct item, with index = -1.
Definition at line 88 of file LabelledItem.H.
|
inlineexplicit |
Move construct item, with index = -1.
Definition at line 97 of file LabelledItem.H.
|
inline |
Construct from components.
Definition at line 106 of file LabelledItem.H.
|
inlineexplicit |
Construct from Istream.
Definition at line 115 of file LabelledItem.H.
|
inlinenoexcept |
Return the index.
Definition at line 126 of file LabelledItem.H.
|
inlinenoexcept |
Non-const access to the index.
Definition at line 134 of file LabelledItem.H.
|
inlinenoexcept |
Set the index.
Definition at line 142 of file LabelledItem.H.
|
inline |
Test for equality of components.
Definition at line 153 of file LabelledItem.H.
|
inline |
Test for inequality of components.
Definition at line 165 of file LabelledItem.H.
|
friend |
|
friend |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.