Go to the documentation of this file.
68 Foam::label Foam::phasePairKey::hash::operator()
79 word::hash()(key.second())
85 word::hash()(key.first())
86 + word::hash()(key.second());
102 (a.ordered_ ==
b.ordered_)
104 (a.ordered_ && (
c == 1))
105 || (!a.ordered_ && (
c != 0))
110 bool Foam::operator!=
124 const FixedList<word, 3> temp(is);
126 key.first() = temp[0];
128 if (temp[1] ==
"and")
130 key.ordered_ =
false;
132 else if (temp[1] ==
"in")
139 <<
"Phase pair type is not recognised. "
141 <<
"Use (phaseDispersed in phaseContinuous) for an ordered"
142 <<
"pair, or (phase1 and pase2) for an unordered pair."
146 key.second() = temp[2];
159 << (key.ordered_ ?
"in" :
"and")
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
phasePairKey()
Construct null.
virtual ~phasePairKey()=default
Destructor.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
static int compare(const Pair< T > &a, const Pair< T > &b)
Compare Pairs.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool ordered() const
Return the ordered flag.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An ordered pair of two objects of type <T> with first() and second() elements.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].