43 #ifndef Foam_LabelledItem_H 44 #define Foam_LabelledItem_H 57 template<
class T>
Ostream& operator<<(Ostream&, const LabelledItem<T>&);
143 && static_cast<const T&>(*
this) == static_cast<const T&>(rhs)
150 return !(*
this == rhs);
175 is >>
static_cast<T&
>(item) >> item.index();
176 is.readEnd(
"LabelledItem");
191 os << token::BEGIN_LIST
192 <<
static_cast<const T&
>(item) << token::SPACE
label index() const noexcept
Return the index.
void setIndex(const label idx) noexcept
Set the index.
LabelledItem()
Default construct item, with index = -1.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
bool operator==(const LabelledItem< T > &rhs) const
Test for equality of components.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
A container with an integer index that can be attached to any item. The index may be useful for sorti...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool operator!=(const LabelledItem< T > &rhs) const
Test for inequality of components.