Go to the documentation of this file.
55 template<
class T>
class Pair;
85 inline Pair(
const std::pair<T,T>& vals);
88 inline Pair(std::pair<T,T>&& vals);
94 inline Pair(
const T&
f,
const T&
s,
const bool doSort);
114 inline const T&
second()
const noexcept;
120 inline const T&
other(
const T& a)
const;
126 inline bool sorted()
const;
157 if (obj.
second() < obj.first())
159 return op(obj.first(), op(obj.
second(), seed));
163 return op(obj.
second(), op(obj.first(), seed));
204 return (a.first() ==
b.first() && a.
second() ==
b.second());
220 a.first() <
b.first()
221 || (!(
b.first() < a.first()) && a.
second() <
b.second())
const T & second() const noexcept
Return second element, which is also the last element.
void reverse(UList< T > &list, const label n)
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
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))
A template class to specify if a data type is composed solely of Foam::label elements.
bool sorted() const
True if first() is less-than second()
Pair< label > labelPair
A pair of labels.
Pair< word > wordPair
A pair of words.
bool operator!=(const eddy &a, const eddy &b)
void sort()
Sort so that first() is less-than second()
Symmetric hashing functor for Pair, hashes lower value first.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
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].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Pair()=default
Default construct.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
unsigned operator()(const Pair< T > &obj, unsigned seed=0) const
const T & other(const T &a) const
Return other element.
void flip()
Flip the Pair in-place.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
A template class to specify if a data type is composed solely of Foam::scalar elements.
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>.
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
A template class to specify that a data type can be considered as being contiguous in memory.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.