48 template<
class Type1,
class Type2>
51 template<
class Type1,
class Type2>
52 inline Istream&
operator>>(Istream&, Tuple2<Type1, Type2>&);
54 template<
class Type1,
class Type2>
55 inline Ostream& operator<<(Ostream&, const Tuple2<Type1, Type2>&);
62 template<
class Type1,
class Type2>
74 template<
class HashT1=Hash<Type1>,
class HashT2=Hash<Type2>>
101 inline Tuple2(
const Type1&
f,
const Type2&
s)
117 inline const Type1&
first()
const 123 inline Type1&
first()
129 inline const Type2&
second()
const 144 friend Istream&
operator>> <Type1, Type2>
151 friend Ostream& operator<< <Type1, Type2>
159 template<
class Type1,
class Type2>
160 template<
class HashT1,
class HashT2>
169 val = HashT1()(t.first(), val);
170 val = HashT2()(t.second(), val);
176 template<
class Type1,
class Type2>
183 template<
class Type1,
class Type2>
184 inline bool operator==
190 return (a.first() ==
b.first() && a.second() ==
b.second());
194 template<
class Type1,
class Type2>
195 inline bool operator!=
205 template<
class Type1,
class Type2>
209 is >> t2.f_ >> t2.s_;
213 is.
check(
"operator>>(Istream&, Tuple2<Type1, Type2>&)");
219 template<
class Type1,
class Type2>
220 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)...
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
friend Ostream & operator(Ostream &os, const Tuple2< Type1, Type2 > &t2)
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.
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