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...
#include <Tuple2.H>

Public Types | |
| typedef T1 | first_type |
| Type of member first, the first template parameter (T1). | |
| typedef T2 | second_type |
| Type of member second, the second template parameter (T2). | |
Public Member Functions | |
| Tuple2 ()=default | |
| Default construct. | |
| Tuple2 (const T1 &f, const T2 &s) | |
| Copy construct from components. | |
| Tuple2 (T1 &&f, T2 &&s) | |
| Move construct from components. | |
| Tuple2 (const std::pair< T1, T2 > &vals) | |
| Copy construct from std::pair. | |
| Tuple2 (std::pair< T1, T2 > &&vals) | |
| Move construct from std::pair. | |
| Tuple2 (Istream &is) | |
| Construct from Istream. | |
| const T1 & | first () const noexcept |
| Access the first element. | |
| T1 & | first () noexcept |
| Access the first element. | |
| const T2 & | second () const noexcept |
| Access the second element. | |
| T2 & | second () noexcept |
| Access the second element. | |
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.
| typedef T1 first_type |
| typedef T2 second_type |
|
default |
Default construct.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
Access the first element.
Definition at line 132 of file Tuple2.H.
Referenced by Foam::broadcastFile_single(), laplacianConstraintPointSmoother::calculate(), correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchFieldProbe::findElements(), mappedPatchBase::findLocalSamples(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), Foam::getCommPattern(), meshToMeshMethod::interVolAndCentroid(), fileOperation::lookupAndCacheProcessorsPath(), scalars::operation(), Hash< Tuple2< T1, T2 > >::operator()(), mappedPatchBase::nearestWorldEqOp::operator()(), maxFirstOp< T1 >::operator()(), minFirstOp< T1 >::operator()(), forceSuSp::operator+=(), forceSuSp::operator-=(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), profilingPstream::report(), Foam::reverse(), Newmark::solve(), symplectic::solve(), wallBoundedStreamLine::track(), Foam::transform(), and colourTable::value().

|
inlinenoexcept |
|
inlinenoexcept |
Access the second element.
Definition at line 142 of file Tuple2.H.
Referenced by Foam::broadcastFile_single(), correctedCellVolumeWeightMethod::calculateAddressing(), pointConstraint::combine(), patchFieldProbe::findElements(), mappedPatchBase::findLocalSamples(), distributedTriSurfaceMesh::findNearest(), mappedPatchBase::findSamples(), Foam::getCommPattern(), meshToMeshMethod::interVolAndCentroid(), fileOperation::lookupAndCacheProcessorsPath(), scalars::operation(), Hash< Tuple2< T1, T2 > >::operator()(), mappedPatchBase::nearestWorldEqOp::operator()(), forceSuSp::operator+=(), forceSuSp::operator-=(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), GAMGAgglomeration::printLevels(), Foam::reverse(), symplectic::solve(), wallBoundedStreamLine::track(), and Foam::transform().

|
inlinenoexcept |