Go to the documentation of this file.
57 template<
class T1,
class T2>
82 inline Tuple2(
const T1&
f,
const T2&
s)
96 inline Tuple2(
const std::pair<T1,T2>& vals)
103 inline Tuple2(std::pair<T1,T2>&& vals)
105 f_(std::move(vals.
first)),
106 s_(std::move(vals.
second))
119 inline const T1&
first() const noexcept
125 inline T1&
first() noexcept
131 inline const T2&
second() const noexcept
137 inline T2&
second() noexcept
147 template<
class T1,
class T2>
156 template<
class T1,
class T2>
163 template<
class T1,
class T2>
170 template<
class T1,
class T2>
181 template<
class T1,
class T2>
188 template<
class T1,
class T2>
195 template<
class T1,
class T2>
213 return (
b.first() < a.first()) ?
b : a;
220 return (
b.first() < a.
first()) ?
b : a;
231 if (
y.first() <
x.first())
x =
y;
237 if (
y.first() <
x.first())
x =
y;
249 return (a.first() <
b.first()) ?
b : a;
256 return (a.
first() <
b.first()) ?
b : a;
267 if (
x.first() <
y.first())
x =
y;
273 if (
x.first() <
y.first())
x =
y;
281 template<
class T1,
class T2>
294 template<
class T1,
class T2>
298 is >> t.first >> t.second;
307 template<
class T1,
class T2>
319 template<
class T1,
class T2>
Tuple2(T1 &&f, T2 &&s)
Move construct from components.
void reverse(UList< T > &list, const label n)
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const
T2 & second() noexcept
Return second.
Tuple2(const T1 &f, const T2 &s)
Copy construct from components.
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))
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
Istream & operator>>(Istream &, directionInfo &)
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
Compare tuple-like containers.
const Tuple2< T1, T2 > & operator()(const Tuple2< T1, T2 > &a, const Tuple2< T1, T2 > &b) const
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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)....
Assign tuple-like container to use the one with the smaller value of first.
Tuple2(const std::pair< T1, T2 > &vals)
Copy construct from std::pair.
void operator()(Tuple2< T1, T2 > &x, const Tuple2< T1, T2 > &y) const
T1 & first() noexcept
Return first.
T2 second_type
Type of member second, the second template parameter (T2)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Compare tuple-like containers.
bool operator>=(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A same or newer than B.
An ordered pair of two objects of type <T> with first() and second() elements.
Tuple2(Istream &is)
Construct from Istream.
const T2 & second() const noexcept
Return second.
void operator()(Tuple2< T1, T2 > &x, const Tuple2< T1, T2 > &y) const
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
Tuple2(std::pair< T1, T2 > &&vals)
Move construct from std::pair.
const Tuple2< T1, T2 > & operator()(const Tuple2< T1, T2 > &a, const Tuple2< T1, T2 > &b) const
Begin list [isseparator].
const T1 & first() const noexcept
Return first.
T1 first_type
Type of member first, the first template parameter (T1)
Assign tuple-like container to use the one with the larger value of first.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
Tuple2()=default
Default construct.