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>
140 unsigned operator()(
const std::pair<T1, T2>& obj,
unsigned seed=0)
const 148 template<
class T1,
class T2>
161 template<
class T1,
class T2>
170 template<
class T1,
class T2>
173 return (a.first() ==
b.first() && a.second() ==
b.second());
177 template<
class T1,
class T2>
184 template<
class T1,
class T2>
189 a.first() <
b.first()
190 || (!(
b.first() < a.first()) && a.second() <
b.second())
195 template<
class T1,
class T2>
196 inline bool operator<=(const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
202 template<
class T1,
class T2>
209 template<
class T1,
class T2>
227 return (
b.first() < a.
first()) ?
b : a;
232 operator()(
const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
const 234 return (
b.first() < a.first()) ?
b : a;
245 if (
y.first() <
x.first())
x =
y;
251 if (
y.first() <
x.first())
x =
y;
263 return (a.
first() <
b.first()) ?
b : a;
270 return (a.first() <
b.first()) ?
b : a;
281 if (
x.first() <
y.first())
x =
y;
287 if (
x.first() <
y.first())
x =
y;
295 template<
class T1,
class T2>
299 is >> t.first >> t.second;
308 template<
class T1,
class T2>
312 is >> t.first() >> t.second();
321 template<
class T1,
class T2>
322 inline Ostream& operator<<(Ostream& os, const std::pair<T1,T2>& t)
332 template<
class T1,
class T2>
333 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.