59 first() = std::move(
f);
60 second() = std::move(
s);
68 second() = vals.second;
75 first() = std::move(vals.first);
76 second() = std::move(vals.second);
106 Pair<
T>(list.template
get<0>(), list.template
get<1>(), doSort)
122 if (first() == second())
125 <<
"Call to other only valid for Pair with differing elements:" 128 else if (val == first())
132 else if (val != second())
153 return !(second() < first());
160 if (second() < first())
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
bool is_sorted() const
True if first() is less-than-equal second()
const T & first() const noexcept
Access the first element.
void sort()
Sort so that first() is less-than second()
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void flip()
Flip the Pair in-place.
const T & other(const T &a) const
Return other element.
Pair()=default
Default construct.
An ordered pair of two objects of type <T> with first() and second() elements.
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].
errorManip< error > abort(error &err)
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)
Exchange contents of lists - see DynamicList::swap().
const T & second() const noexcept
Access the second 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))