Loading...
Searching...
No Matches
fieldInfo Class Reference

Helper class to store a wordRe and label used by Foam::functionObjects::fieldSelection. More...

#include <fieldInfo.H>

Public Member Functions

 fieldInfo ()
 Default construct.
 fieldInfo (const wordRe &name, const label component=-1)
 Construct from components.
 fieldInfo (Istream &is)
 Construct from stream.
 ~fieldInfo ()=default
 Destructor.
const wordRename () const noexcept
 Return the selector pattern for the field name(s).
label component () const noexcept
 Return the component.
bool found () const noexcept
 Return the found state.
void found (bool on) const noexcept
 Set the found state to be 'on'.

Friends

bool operator== (const fieldInfo &a, const fieldInfo &b)
bool operator!= (const fieldInfo &a, const fieldInfo &b)
Istreamoperator>> (Istream &is, fieldInfo &fi)
Ostreamoperator<< (Ostream &os, const fieldInfo &fi)

Detailed Description

Helper class to store a wordRe and label used by Foam::functionObjects::fieldSelection.

Definition at line 51 of file fieldInfo.H.

Constructor & Destructor Documentation

◆ fieldInfo() [1/3]

fieldInfo ( )
inline

Default construct.

Definition at line 78 of file fieldInfo.H.

Referenced by operator!=, operator<<, operator==, and operator>>.

Here is the caller graph for this function:

◆ fieldInfo() [2/3]

fieldInfo ( const wordRe & name,
const label component = -1 )
inlineexplicit

Construct from components.

Definition at line 88 of file fieldInfo.H.

References component(), and name().

Here is the call graph for this function:

◆ fieldInfo() [3/3]

fieldInfo ( Istream & is)
inlineexplicit

Construct from stream.

Definition at line 98 of file fieldInfo.H.

References Foam::readLabel().

Here is the call graph for this function:

◆ ~fieldInfo()

~fieldInfo ( )
default

Destructor.

Member Function Documentation

◆ name()

const wordRe & name ( ) const
inlinenoexcept

◆ component()

label component ( ) const
inlinenoexcept

Return the component.

Definition at line 122 of file fieldInfo.H.

References Foam::noexcept.

Referenced by fieldSelection::addRegistered(), equationInitialResidualCondition::apply(), fieldInfo(), operator==, and solverFieldSelection::updateSelection().

Here is the caller graph for this function:

◆ found() [1/2]

bool found ( ) const
inlinenoexcept

Return the found state.

Definition at line 127 of file fieldInfo.H.

References Foam::noexcept.

Referenced by fieldSelection::addRegistered(), fieldSelection::checkSelection(), operator==, and solverFieldSelection::updateSelection().

Here is the caller graph for this function:

◆ found() [2/2]

void found ( bool on) const
inlinenoexcept

Set the found state to be 'on'.

Definition at line 132 of file fieldInfo.H.

◆ operator==

bool operator== ( const fieldInfo & a,
const fieldInfo & b )
friend

Definition at line 135 of file fieldInfo.H.

References b, component(), fieldInfo(), found(), and name().

◆ operator!=

bool operator!= ( const fieldInfo & a,
const fieldInfo & b )
friend

Definition at line 145 of file fieldInfo.H.

References b, and fieldInfo().

◆ operator>>

Istream & operator>> ( Istream & is,
fieldInfo & fi )
friend

Definition at line 153 of file fieldInfo.H.

References fieldInfo().

◆ operator<<

Ostream & operator<< ( Ostream & os,
const fieldInfo & fi )
friend

Definition at line 158 of file fieldInfo.H.

References fieldInfo(), Switch::name(), and os().


The documentation for this class was generated from the following file:
  • src/finiteVolume/functionObjects/fieldSelections/fieldSelection/fieldInfo.H