48 template<
class Type1,
class Type2>
51 template<
class Type1,
class Type2>
52 void writeEntry(Ostream& os,
const Tuple2<Type1, Type2>&);
54 template<
class Type1,
class Type2>
55 inline Istream&
operator>>(Istream&, Tuple2<Type1, Type2>&);
57 template<
class Type1,
class Type2>
58 inline Ostream&
operator<<(Ostream&,
const Tuple2<Type1, Type2>&);
65 template<
class Type1,
class Type2>
77 template<
class HashT1=Hash<Type1>,
class HashT2=Hash<Type2>>
104 inline Tuple2(
const Type1&
f,
const Type2&
s)
120 inline const Type1&
first()
const
126 inline Type1&
first()
132 inline const Type2&
second()
const
147 friend Istream&
operator>> <Type1, Type2>
154 friend Ostream& operator<< <Type1, Type2>
162 template<
class Type1,
class Type2>
163 template<
class HashT1,
class HashT2>
172 val = HashT1()(t.first(), val);
173 val = HashT2()(t.second(), val);
179 template<
class Type1,
class Type2>
186 template<
class Type1,
class Type2>
187 inline bool operator==
197 template<
class Type1,
class Type2>
198 inline bool operator!=
208 template<
class Type1,
class Type2>
212 is >> t2.f_ >> t2.s_;
216 is.
check(
"operator>>(Istream&, Tuple2<Type1, Type2>&)");
222 template<
class Type1,
class Type2>
233 template<
class Type1,
class Type2>
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)....
Istream & readEnd(const char *funcName)
Istream & readBegin(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of different types.
static const char *const typeName
const Type2 & second() const
Return second.
const Type1 & first() const
Return first.
friend Ostream & operator(Ostream &os, const Tuple2< Type1, Type2 > &t2)
Tuple2()
Null constructor for lists.
T & first()
Return the first element of the list.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void reverse(UList< T > &, const label n)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)