Go to the documentation of this file.
54 public FixedList<Type, 2>
66 inline Pair(
const Type&
f,
const Type&
s)
88 inline const Type&
first()
const
90 return this->operator[](0);
96 return this->operator[](0);
100 inline const Type&
second()
const
102 return this->operator[](1);
108 return this->operator[](1);
112 inline const Type&
other(
const Type& a)
const
117 <<
"Call to other only valid for Pair with differing"
120 else if (
first() == a)
170 return (a.first() ==
b.first() && a.second() ==
b.second());
186 a.first() <
b.first()
189 !(
b.first() < a.first())
190 && a.second() <
b.second()
bool operator<=(const Pair< Type > &a, const Pair< Type > &b)
bool operator<(const dimensioned< Type > &, const dimensioned< Type > &)
bool operator>=(const Pair< Type > &a, const Pair< Type > &b)
Pair(const Type &f, const Type &s)
Construct from components.
const Type & first() const
Return first.
Type & first()
Return first.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Pair(Istream &is)
Construct from Istream.
bool operator>(const dimensioned< Type > &, const dimensioned< Type > &)
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)....
const Type & second() const
Return second.
Type & second()
Return second.
bool operator!=(const particle &, const particle &)
errorManip< error > abort(error &err)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An ordered pair of two objects of type <T> with first() and second() elements.
Pair(const FixedList< Type, 2 > &fl)
Construct from FixedList.
A 1D vector of objects of type <T> with a fixed size <Size>.
const Type & other(const Type &a) const
Return other.
static int compare(const Pair< Type > &a, const Pair< Type > &b)
Compare Pairs.
void reverse(UList< T > &, const label n)