40 Pair<word>(name1, name2),
49 const phasePairKey& a,
53 const int cmp = Pair<word>::compare(a,
b);
56 (a.ordered() ==
b.ordered())
57 && (a.ordered() ? (cmp == 1) : cmp)
64 const phasePairKey& a,
76 const FixedList<word, 3> toks(is);
78 key.first() = toks[0];
79 key.second() = toks[2];
80 const word& order = toks[1];
86 else if (order ==
"and")
93 <<
"Phase pair type is not recognised. " << toks
94 <<
"Use (phaseDispersed in phaseContinuous) for an ordered pair,"
95 " or (phase1 and phase2) for an unordered pair.\n"
107 os << token::BEGIN_LIST
110 << (
key.ordered() ?
"in" :
"and")
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
phasePairKey()=default
Default construct.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
errorManipArg< error, int > exit(error &err, const int errNo=1)