47 template<
class Type1,
class Type2>
50 template<
class Type1,
class Type2>
51 inline Istream&
operator>>(Istream&, Tuple2<Type1, Type2>&);
53 template<
class Type1,
class Type2>
54 inline Ostream& operator<<(Ostream&, const Tuple2<Type1, Type2>&);
61 template<
class Type1,
class Type2>
84 inline Tuple2(
const Type1&
f,
const Type2&
s)
100 inline const Type1&
first()
const 106 inline Type1&
first()
112 inline const Type2&
second()
const 127 friend Istream&
operator>> <Type1, Type2>
134 friend Ostream& operator<< <Type1, Type2>
143 template<
class Type1,
class Type2>
150 template<
class Type1,
class Type2>
151 inline bool operator==
157 return (a.first() ==
b.first() && a.second() ==
b.second());
161 template<
class Type1,
class Type2>
162 inline bool operator!=
172 template<
class Type1,
class Type2>
176 is >> t2.f_ >> t2.s_;
180 is.
check(
"operator>>(Istream&, Tuple2<Type1, Type2>&)");
186 template<
class Type1,
class Type2>
187 inline Ostream& operator<<(Ostream& os, const Tuple2<Type1, Type2>& t2)
Istream & readBegin(const char *funcName)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A 2-tuple for storing two objects of different types.
const Type1 & first() const
Return first.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Istream & readEnd(const char *funcName)
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
friend Istream & operator>>(Istream &is, Tuple2< Type1, Type2 > &t2)
Read Tuple2 from Istream, discarding contents of existing Tuple2.
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void reverse(UList< T > &, const label n)
Tuple2()
Null constructor for lists.
const Type2 & second() const
Return second.
static const char *const typeName