A 2-tuple. More...
#include <OpenFOAM/Tuple2.H>
A 2-tuple.
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) |
|
inline |
|
inline |
Return first.
Definition at line 109 of file Tuple2.H.
Referenced by forces::calcForcesMoment(), patchProbes::findElements(), nearestEqOp::operator()(), directMappedPatchBase::nearestEqOp::operator()(), Tuple2< scalar, scalar >::reverseTuple2(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), forceCoeffs::write(), and forces::write().
|
inline |
Return second.
Definition at line 121 of file Tuple2.H.
Referenced by forces::calcForcesMoment(), patchProbes::findElements(), directMappedPatchBase::nearestEqOp::operator()(), Tuple2< scalar, scalar >::reverseTuple2(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), forceCoeffs::write(), and forces::write().
|
inline |