56 template<
class T1,
class T2 = T1>
95 Tuple2(
const std::pair<T1,T2>& vals)
102 Tuple2(std::pair<T1,T2>&& vals)
137 template<
class T1,
class T2>
150 template<
class T1,
class T2>
159 template<
class T1,
class T2>
162 return (a.first() ==
b.first() && a.second() ==
b.second());
166 template<
class T1,
class T2>
173 template<
class T1,
class T2>
174 inline bool operator<(const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
178 a.first() <
b.first()
179 || (!(
b.first() < a.first()) && a.second() <
b.second())
184 template<
class T1,
class T2>
185 inline bool operator<=(const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
191 template<
class T1,
class T2>
192 inline bool operator>(
const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
198 template<
class T1,
class T2>
199 inline bool operator>=(
const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
216 return (
b.first() < a.
first()) ?
b : a;
223 return (
b.first() < a.first()) ?
b : a;
234 if (
y.first() <
x.first())
x =
y;
240 if (
y.first() <
x.first())
x =
y;
252 return (a.
first() <
b.first()) ?
b : a;
259 return (a.first() <
b.first()) ?
b : a;
270 if (
x.first() <
y.first())
x =
y;
276 if (
x.first() <
y.first())
x =
y;
284 template<
class T1,
class T2>
288 is >> t.first() >> t.second();
297 template<
class T1,
class T2>
298 inline Ostream& operator<<(Ostream& os, const Tuple2<T1,T2>& t)
const T & first() const noexcept
Access the first element.
T1 first_type
Type of member first, the first template parameter (T1)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Compare tuple-like containers.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
Begin list [isseparator].
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
An ordered pair of two objects of type <T> with first() and second() elements.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
void reverse(UList< T > &list, const label n)
Reverse the first n elements of the list.
unsigned operator()(const T &obj, unsigned seed=0) const
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
OBJstream os(runTime.globalPath()/outputName)
Compare tuple-like containers.
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
const T2 & second() const noexcept
Access the second element.
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const
bool operator!=(const eddy &a, const eddy &b)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
const T1 & first() const noexcept
Access the first element.
Tuple2(std::pair< T1, T2 > &&vals)
Move construct from std::pair.
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))
Assign tuple-like container to use the one with the larger value of first.
T2 second_type
Type of member second, the second template parameter (T2)
Tuple2()=default
Default construct.