Go to the documentation of this file.
35 if (a.first() ==
b.first() && a.
second() ==
b.second())
39 if (a.first() ==
b.second() && a.
second() ==
b.first())
61 first() = std::move(
f);
62 second() = std::move(
s);
70 second() = vals.second;
77 first() = std::move(vals.first);
78 second() = std::move(vals.second);
108 Pair<
T>(list.first(), list.last(), doSort)
138 if (first() == second())
141 <<
"Call to other only valid for Pair with differing elements:"
144 else if (a == first())
148 else if (a != second())
169 return !(second() < first());
176 if (second() < first())
const T & second() const noexcept
Return second element, which is also the last element.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
void Swap(DynamicList< T, SizeMin1 > &a, DynamicList< T, SizeMin2 > &b)
Swap arguments as per std::swap, but in Foam namespace.
bool sorted() const
True if first() is less-than second()
void sort()
Sort so that first() is less-than second()
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)....
Pair()=default
Construct null.
const T & other(const T &a) const
Return other element.
void flip()
Flip the Pair in-place.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An ordered pair of two objects of type <T> with first() and second() elements.
A 1D vector of objects of type <T> with a fixed length <N>.