52 inline Istream&
operator>>(Istream&, Pair<Type>&);
55 inline Ostream& operator<<(Ostream&, const Pair<Type>&);
65 public FixedList<Type, 2>
77 inline Pair(
const Type&
f,
const Type&
s)
99 inline const Type&
first()
const 111 inline const Type&
second()
const 123 inline const Type&
other(
const Type& a)
const 128 <<
"Call to other only valid for Pair with differing" 132 else if (
first() == a)
182 return (a.first() == b.first() && a.second() == b.second());
194 bool operator<(const Pair<Type>& a,
const Pair<Type>&
b)
198 a.first() <
b.first()
201 !(
b.first() < a.first())
202 && a.second() <
b.second()
209 bool operator<=(const Pair<Type>& a,
const Pair<Type>&
b)
233 is >> p.first() >> p.second();
237 is.
check(
"operator>>(Istream&, Pair<Type>&)");
244 inline Ostream& operator<<(Ostream& os, const Pair<Type>&
p)
Istream & readBegin(const char *funcName)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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)...
static int compare(const Pair< Type > &a, const Pair< Type > &b)
Compare Pairs.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
bool operator>=(const FixedList< Type, Size > &) const
Return true if !(a < b). Takes linear time.
const Type & other(const Type &a) const
Return other.
bool operator!=(const FixedList< Type, Size > &) const
The opposite of the equality operation. Takes linear time.
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))
An ordered pair of two objects of type <T> with first() and second() elements.
Type & operator[](const label)
Return element of FixedList.
Istream & operator>>(Istream &, directionInfo &)
bool operator==(const FixedList< Type, Size > &) const
Equality operation on FixedLists of the same type.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void reverse(UList< T > &, const label n)
bool operator>(const FixedList< Type, Size > &) const
Compare two FixedLists lexicographically. Takes linear time.
const Type & second() const
Return second.
friend Istream & operator>>(Istream &, FixedList< Type, Size > &)
Read List from Istream, discarding contents of existing List.
const Type & first() const
Return first.