42#ifndef Foam_LabelledItem_H
43#define Foam_LabelledItem_H
128 void setIndex(
const label idx)
noexcept
142 &&
static_cast<const T&
>(*
this) ==
static_cast<const T&
>(
rhs)
149 return !(*
this ==
rhs);
173 is.readBegin(
"LabelledItem");
174 is >>
static_cast<T&
>(item) >> item.index();
175 is.readEnd(
"LabelledItem");
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A container with an integer index that can be attached to any item. The index may be useful for sorti...
bool operator==(const LabelledItem< T > &rhs) const
Test for equality of components.
LabelledItem(Istream &is)
Construct from Istream.
bool operator!=(const LabelledItem< T > &rhs) const
Test for inequality of components.
LabelledItem(const T &item)
Copy construct item, with index = -1.
LabelledItem(T &&item)
Move construct item, with index = -1.
LabelledItem()
Default construct item, with index = -1.
void setIndex(const label idx) noexcept
Set the index.
label & index() noexcept
Non-const access to the index.
label index() const noexcept
Return the index.
LabelledItem(const T &item, label idx)
Construct from components.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)