55template<
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);
120 inline const
T&
other(const
T& a) const;
126 inline
bool sorted() const;
154 unsigned operator()(
const Pair<T>& obj,
unsigned seed=0)
const
A 1D vector of objects of type <T> with a fixed length <N>.
T & first() noexcept
The first element of the list, position [0].
T & last() noexcept
The last element of the list, position [N-1].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An ordered pair of two objects of type <T> with first() and second() elements.
Pair()=default
Default construct.
void flip()
Flip the Pair in-place.
bool sorted() const
True if first() is less-than second()
void sort()
Sort so that first() is less-than second()
const T & other(const T &a) const
Return other element.
T & second() noexcept
Return second element, which is also the last element.
static int compare(const Pair< T > &a, const Pair< T > &b)
Compare Pairs.
const T & second() const noexcept
Return second element, which is also the last element.
T & first()
Return the first element of the list.
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))
bool operator!=(const eddy &a, const eddy &b)
Pair< label > labelPair
A pair of labels.
bool operator<=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or older than B.
void reverse(UList< T > &list, const label n)
Reverse the first n elements of the list.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
Pair< word > wordPair
A pair of words.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
Symmetric hashing functor for Pair, hashes lower value first.
unsigned operator()(const Pair< T > &obj, unsigned seed=0) const
A template class to specify if a data type is composed solely of Foam::label elements.
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.