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>
79 inline Tuple2(
const Type1&
f,
const Type2&
s)
95 inline const Type1&
first()
const 101 inline Type1&
first()
107 inline const Type2&
second()
const 122 friend Istream&
operator>> <Type1, Type2>
129 friend Ostream& operator<< <Type1, Type2>
138 template<
class Type1,
class Type2>
145 template<
class Type1,
class Type2>
146 inline bool operator==
152 return (a.first() ==
b.first() && a.second() ==
b.second());
156 template<
class Type1,
class Type2>
157 inline bool operator!=
167 template<
class Type1,
class Type2>
171 is >> t2.f_ >> t2.s_;
175 is.
check(
"operator>>(Istream&, Tuple2<Type1, Type2>&)");
181 template<
class Type1,
class Type2>
182 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.