56template<
class T1,
class T2 = T1>
95 Tuple2(
const std::pair<T1,T2>& vals)
102 Tuple2(std::pair<T1,T2>&& vals)
104 f_(std::move(vals.
first)),
105 s_(std::move(vals.
second))
137template<
class T1,
class T2>
150template<
class T1,
class T2>
159template<
class T1,
class T2>
166template<
class T1,
class T2>
173template<
class T1,
class T2>
184template<
class T1,
class T2>
185inline bool operator<=(
const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
191template<
class T1,
class T2>
192inline bool operator>(
const Tuple2<T1,T2>& a,
const Tuple2<T1,T2>&
b)
198template<
class T1,
class T2>
199inline 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;
284template<
class T1,
class T2>
297template<
class T1,
class T2>
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An ordered pair of two objects of type <T> with first() and second() elements.
const T & first() const noexcept
Access the first element.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
Tuple2(const T1 &f, const T2 &s)
Copy construct from components.
Tuple2(std::pair< T1, T2 > &&vals)
Move construct from std::pair.
Tuple2(Istream &is)
Construct from Istream.
const scalar & first() const noexcept
Tuple2(T1 &&f, T2 &&s)
Move construct from components.
T2 & second() noexcept
Access the second element.
Tuple2()=default
Default construct.
Tuple2(const std::pair< T1, T2 > &vals)
Copy construct from std::pair.
T1 & first() noexcept
Access the first element.
const vector & second() const noexcept
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
OBJstream os(runTime.globalPath()/outputName)
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)
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.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
bool operator<(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A older than B.
bool operator>(const IOstreamOption::versionNumber &a, const IOstreamOption::versionNumber &b) noexcept
Version A newer than B.
unsigned operator()(const Tuple2< T1, T2 > &obj, unsigned seed=0) const
Hash function class. The default definition is for primitives. Non-primitives used to hash entries on...
unsigned operator()(const T &obj, unsigned seed=0) const
Assign tuple-like container to use the one with the larger value of first.
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
void operator()(Tuple2< T1, T2 > &x, const Tuple2< T1, T2 > &y) const
Compare tuple-like containers.
const Tuple2< T1, T2 > & operator()(const Tuple2< T1, T2 > &a, const Tuple2< T1, T2 > &b) const
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const
Assign tuple-like container to use the one with the smaller value of first.
void operator()(Pair< T1 > &x, const Pair< T1 > &y) const
void operator()(Tuple2< T1, T2 > &x, const Tuple2< T1, T2 > &y) const
Compare tuple-like containers.
const Tuple2< T1, T2 > & operator()(const Tuple2< T1, T2 > &a, const Tuple2< T1, T2 > &b) const
const Pair< T1 > & operator()(const Pair< T1 > &a, const Pair< T1 > &b) const