Go to the documentation of this file.
68 Foam::label Foam::phasePairKey::hash::operator()
102 (a.ordered_ ==
b.ordered_)
104 (a.ordered_ && (
c == 1))
105 || (!a.ordered_ && (
c != 0))
110 bool Foam::operator!=
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."
159 << (key.ordered_ ?
"in" :
"and")
const T & second() const noexcept
Return second element, which is also the last element.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
phasePairKey()
Construct null.
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)....
Hashing function for string and derived string classes.
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.
A 1D vector of objects of type <T> with a fixed length <N>.
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].