35 return NullObjectRef<Pair<Type>>();
49 if (i < 0 ||
unsigned(i) > 1)
52 <<
"index " << i <<
" out of range 0 ... 1"
140 <<
"Call to other only valid for Pair with differing"
144 else if (
first() == a)
184 template<
class HashT>
191 return HashT()(
p.second(), HashT()(
p.first(), seed));
260 is >>
p.first() >>
p.second();
264 is.check(
"operator>>(Istream&, Pair<Type>&)");
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream & readBegin(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An ordered pair of two objects of type <Type> with first() and second() elements.
Type & operator[](const label i)
Access an element by index.
static label size()
Return the size.
static int compare(const Pair< Type > &a, const Pair< Type > &b)
Compare two pairs. Return 0 if they are different, +1 if they are.
static void checkIndex(const label i)
Check index i is within valid range (0 ... 1)
const Type & second() const
Return second.
Type & first()
Return first.
const Type & other(const Type &a) const
Return other.
const Type & first() const
Return first.
static const Pair< Type > & null()
Return a null pair.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(lagrangian::Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), lagrangian::cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
bool operator!=(const particle &, const particle &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
bool operator<(const instant &, const instant &)
errorManip< error > abort(error &err)
labelList second(const UList< labelPair > &p)
bool operator<=(const Pair< Type > &a, const Pair< Type > &b)
Compare lexographic order.
void reverse(UList< T > &, const label n)
labelList first(const UList< labelPair > &p)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Istream & operator>>(Istream &, pistonPointEdgeData &)
bool operator>(const instant &, const instant &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
bool operator>=(const Pair< Type > &a, const Pair< Type > &b)
Compare lexographic order.