26 #include "phasePairKey.H" 45 Pair<word>(name1, name2),
77 word::hash()(key.second())
83 word::hash()(key.first())
84 + word::hash()(key.second());
100 (a.ordered_ ==
b.ordered_)
102 (a.ordered_ && (c == 1))
103 || (!a.ordered_ && (c != 0))
108 bool Foam::operator!=
122 const FixedList<word, 3> temp(is);
124 key.first() = temp[0];
126 if (temp[1] ==
"and")
128 key.ordered_ =
false;
130 else if (temp[1] ==
"in")
137 <<
"Phase pair type is not recognised. " 139 <<
"Use (phaseDispersed in phaseContinuous) for an ordered" 140 <<
"pair, or (phase1 and pase2) for an unordered pair." 144 key.second() = temp[2];
157 << (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.