57template<
class T1,
class T2 = T1>
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))
147template<
class T1,
class T2>
157template<
class T1,
class T2>
158struct Hash<std::pair<T1, T2>>
160 unsigned operator()(
const std::pair<T1, T2>& obj,
unsigned seed=0)
const
170template<
class T1,
class T2>
179template<
class T1,
class T2>
186template<
class T1,
class T2>
193template<
class T1,
class T2>
204template<
class T1,
class T2>
211template<
class T1,
class T2>
218template<
class T1,
class T2>
254 if (
y.first() <
x.first())
x =
y;
260 if (
y.first() <
x.first())
x =
y;
290 if (
x.first() <
y.first())
x =
y;
296 if (
x.first() <
y.first())
x =
y;
304template<
class T1,
class T2>
317template<
class T1,
class T2>
321 is >> t.first >> t.second;
330template<
class T1,
class T2>
342template<
class T1,
class T2>
T & first() noexcept
The first element of the list, position [0].
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.
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.
T1 first_type
Type of member first, the first template parameter (T1)
Tuple2(std::pair< T1, T2 > &&vals)
Move construct from std::pair.
Tuple2(Istream &is)
Construct from Istream.
const T1 & first() const noexcept
Return first.
Tuple2(T1 &&f, T2 &&s)
Move construct from components.
T2 second_type
Type of member second, the second template parameter (T2)
T2 & second() noexcept
Return second.
Tuple2()=default
Default construct.
Tuple2(const std::pair< T1, T2 > &vals)
Copy construct from std::pair.
T1 & first() noexcept
Return first.
const T2 & second() const noexcept
Return second.
T & first()
Return the first element of the list.
@ 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
unsigned operator()(const std::pair< 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