35#ifndef Foam_functionObjects_fieldInfo_H
36#define Foam_functionObjects_fieldInfo_H
117 void found(
bool on)
const noexcept { found_ = on; }
126 && a.
name() ==
b.name()
140 is >> fi.name_ >> fi.component_ >> fi.found_;
145 os << fi.name_ <<
' '
146 << fi.component_ <<
' '
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const char * name(bool b) noexcept
A string representation of bool as "false" / "true".
Helper class to store a wordRe and label used by Foam::functionObjects::fieldSelection.
friend bool operator==(const fieldInfo &a, const fieldInfo &b)
fieldInfo(Istream &is)
Construct from stream.
friend Ostream & operator<<(Ostream &os, const fieldInfo &fi)
bool found() const noexcept
Return the found state.
label component() const noexcept
Return the component.
friend bool operator!=(const fieldInfo &a, const fieldInfo &b)
~fieldInfo()=default
Destructor.
void found(bool on) const noexcept
Set the found state to be 'on'.
fieldInfo(const wordRe &name, const label component=-1)
Construct from components.
friend Istream & operator>>(Istream &is, fieldInfo &fi)
fieldInfo()
Default construct.
const wordRe & name() const noexcept
Return the selector pattern for the field name(s).
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
OBJstream os(runTime.globalPath()/outputName)
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Ostream & operator<<(Ostream &, const fieldInfo &)
Istream & operator>>(Istream &, fieldInfo &)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.