26 #include "phasePairKey.H" 45 Pair<word>(name1, name2),
69 word::hash()(key.second())
75 word::hash()(key.first())
76 + word::hash()(key.second());
92 (a.ordered_ ==
b.ordered_)
94 (a.ordered_ && (c == 1))
95 || (!a.ordered_ && (c != 0))
100 bool Foam::operator!=
114 const FixedList<word, 3> temp(is);
116 key.first() = temp[0];
118 if (temp[1] ==
"and")
120 key.ordered_ =
false;
122 else if(temp[1] ==
"in")
129 <<
"Phase pair type is not recognised. " 131 <<
"Use (phaseDispersed in phaseContinuous) for an ordered" 132 <<
"pair, or (phase1 and pase2) for an unordered pair." 136 key.second() = temp[2];
149 << (key.ordered_ ?
"in" :
"and")
bool ordered() const
Return the ordered flag.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static int compare(const Pair< Type > &a, const Pair< Type > &b)
Compare Pairs.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & operator<<(Ostream &, const ensightPart &)
phasePairKey()
Construct null.