A 2-tuple. More...
#include <OpenFOAM/Tuple2.H>
A 2-tuple.
Definition at line 76 of file Tuple2.H.
Public Member Functions | |
Tuple2 () | |
Null constructor for lists.
| |
Tuple2 (const Type1 &f, const Type2 &s) | |
Construct from components.
| |
Tuple2 (Istream &is) | |
Construct from Istream.
| |
const Type1 & | first () const |
Return first.
| |
Type1 & | first () |
Return first.
| |
const Type2 & | second () const |
Return second.
| |
Type2 & | second () |
Return second.
| |
Tuple2< Type2, Type1 > | reverseTuple2 () const |
Return reverse pair.
| |
Friends | |
bool | operator== (const Tuple2< Type1, Type2 > &a, const Tuple2< Type1, Type2 > &b) |
bool | operator!= (const Tuple2< Type1, Type2 > &a, const Tuple2< Type1, Type2 > &b) |
Istream & | operator>> (Istream &is, Tuple2< Type1, Type2 > &t2) |
Read Tuple2 from Istream, discarding contents of existing Tuple2.
| |
Ostream & | operator (Ostream &os, const Tuple2< Type1, Type2 > &t2) |
Tuple2 | ( | const Type1 & | f, |
const Type2 & | s | ||
) | [inline]
|
const Type1& first | ( | ) | const [inline]
|
Return first.
Definition at line 109 of file Tuple2.H.
Referenced by forces::calcForcesMoment(), patchProbes::findElements(), nearestEqOp::operator()(), forces::sumOp::operator()(), directMappedPatchBase::nearestEqOp::operator()(), Tuple2< scalar, scalar >::reverseTuple2(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), forces::write(), and forceCoeffs::write().
const Type2& second | ( | ) | const [inline]
|
Return second.
Definition at line 121 of file Tuple2.H.
Referenced by forces::calcForcesMoment(), patchProbes::findElements(), forces::sumOp::operator()(), directMappedPatchBase::nearestEqOp::operator()(), Tuple2< scalar, scalar >::reverseTuple2(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), forces::write(), and forceCoeffs::write().
Tuple2<Type2, Type1> reverseTuple2 | ( | ) | const [inline]
|