A 2-tuple for storing two objects of different types. More...
Public Member Functions | |
Tuple2 () | |
Null constructor for lists. More... | |
Tuple2 (const Type1 &f, const Type2 &s) | |
Construct from components. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const Type1 & | first () const |
Return first. More... | |
Type1 & | first () |
Return first. More... | |
const Type2 & | second () const |
Return second. More... | |
Type2 & | second () |
Return second. More... | |
Private Attributes | |
Type1 | f_ |
Type2 | s_ |
Friends | |
Istream & | operator>> (Istream &is, Tuple2< Type1, Type2 > &t2) |
Read Tuple2 from Istream, discarding contents of existing Tuple2. More... | |
Ostream & | operator (Ostream &os, const Tuple2< Type1, Type2 > &t2) |
A 2-tuple for storing two objects of different types.
|
inline |
|
inline |
Return first.
Definition at line 94 of file Tuple2.H.
Referenced by correctedCellVolumeWeightMethod::calculateAddressing(), regionToFace::combine(), pointConstraint::combine(), autoSnapDriver::determineBaffleFeatures(), autoSnapDriver::determineFeatures(), autoSnapDriver::featureAttractionUsingReconstruction(), autoSnapDriver::findDiagonalAttraction(), patchProbes::findElements(), meshToMeshMethod::interVolAndCentroid(), autoSnapDriver::isSplitAlignedWithFeature(), main(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), forceSuSp::operator=(), Foam::operator==(), Foam::reverse(), sixDoFRigidBodyMotion::rotate(), symplectic::solve(), Newmark::solve(), and Foam::transform().
|
inline |
Return second.
Definition at line 106 of file Tuple2.H.
Referenced by correctedCellVolumeWeightMethod::calculateAddressing(), regionToFace::combine(), pointConstraint::combine(), autoSnapDriver::determineBaffleFeatures(), autoSnapDriver::determineFeatures(), patchProbes::findElements(), meshToMeshMethod::interVolAndCentroid(), autoSnapDriver::isSplitAlignedWithFeature(), main(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), forceSuSp::operator=(), Foam::operator==(), Foam::reverse(), sixDoFRigidBodyMotion::rotate(), symplectic::solve(), and Foam::transform().
|
private |
Definition at line 65 of file Tuple2.H.
Referenced by Tuple2< scalar, Foam::Vector >::first(), Foam::operator<<(), and Foam::operator>>().
|
private |
Definition at line 66 of file Tuple2.H.
Referenced by Foam::operator<<(), Foam::operator>>(), and Tuple2< scalar, Foam::Vector >::second().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.