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==
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>
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)
Istream & operator>>(Istream &, directionInfo &)
Ostream & operator<<(Ostream &, const ensightPart &)