A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pair, but does not expose its members directly. More...

Public Types | |
| typedef T1 | first_type |
| Type of member first, the first template parameter (T1) More... | |
| typedef T2 | second_type |
| Type of member second, the second template parameter (T2) More... | |
Public Member Functions | |
| Tuple2 ()=default | |
| Default construct. More... | |
| Tuple2 (const T1 &f, const T2 &s) | |
| Copy construct from components. More... | |
| Tuple2 (T1 &&f, T2 &&s) | |
| Move construct from components. More... | |
| Tuple2 (const std::pair< T1, T2 > &vals) | |
| Copy construct from std::pair. More... | |
| Tuple2 (std::pair< T1, T2 > &&vals) | |
| Move construct from std::pair. More... | |
| Tuple2 (Istream &is) | |
| Construct from Istream. More... | |
| const T1 & | first () const noexcept |
| Access the first element. More... | |
| T1 & | first () noexcept |
| Access the first element. More... | |
| const T2 & | second () const noexcept |
| Access the second element. More... | |
| T2 & | second () noexcept |
| Access the second element. More... | |
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pair, but does not expose its members directly.
Definition at line 54 of file stringOps.H.
| typedef T1 first_type |
| typedef T2 second_type |
|
default |
Default construct.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Access the first element.
Definition at line 132 of file Tuple2.H.
Referenced by Foam::broadcastFile_single(), correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchProbes::findElements(), mappedPatchBase::findLocalSamples(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), Foam::getCommPattern(), meshToMeshMethod::interVolAndCentroid(), fileOperation::lookupAndCacheProcessorsPath(), scalars::operation(), mappedPatchBase::nearestWorldEqOp::operator()(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), profilingPstream::report(), symplectic::solve(), Newmark::solve(), wallBoundedStreamLine::track(), Foam::transform(), colourTable::value(), and lumpedPointMovement::writeData().

|
inlinenoexcept |
Access the second element.
Definition at line 142 of file Tuple2.H.
Referenced by Foam::broadcastFile_single(), correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchProbes::findElements(), mappedPatchBase::findLocalSamples(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), Foam::getCommPattern(), fileOperation::lookupAndCacheProcessorsPath(), scalars::operation(), mappedPatchBase::nearestWorldEqOp::operator()(), Foam::operator+(), forceSuSp::operator+=(), forceSuSp::operator-=(), symplectic::solve(), wallBoundedStreamLine::track(), Foam::transform(), and lumpedPointMovement::writeData().
