An ordered pair of two objects of type <T> with first() and second() elements. More...
Classes | |
struct | symmHasher |
Symmetric hashing functor for Pair, hashes lower value first. More... | |
Public Member Functions | |
Pair ()=default | |
Default construct. More... | |
Pair (const T &f, const T &s) | |
Copy construct from components. More... | |
Pair (T &&f, T &&s) | |
Move construct from components. More... | |
Pair (const std::pair< T, T > &vals) | |
Copy construct from std::pair. More... | |
Pair (std::pair< T, T > &&vals) | |
Move construct from std::pair. More... | |
Pair (const FixedList< T, 2 > &list) | |
Copy construct FixedList of two items. More... | |
Pair (const T &f, const T &s, const bool doSort) | |
Copy construct, optionally sorted with first less-than second. More... | |
Pair (const FixedList< T, 2 > &list, const bool doSort) | |
Copy construct, optionally sorted with first less-than second. More... | |
Pair (Istream &is) | |
Construct from Istream. More... | |
const T & | second () const noexcept |
Return second element, which is also the last element. More... | |
T & | second () noexcept |
Return second element, which is also the last element. More... | |
const T & | other (const T &a) const |
Return other element. More... | |
bool | sorted () const |
True if first() is less-than second() More... | |
void | flip () |
Flip the Pair in-place. More... | |
void | sort () |
Sort so that first() is less-than second() More... | |
Static Public Member Functions | |
static int | compare (const Pair< T > &a, const Pair< T > &b) |
Compare Pairs. More... | |
An ordered pair of two objects of type <T> with first() and second() elements.
|
default |
Default construct.
|
inlinenoexcept |
Return second element, which is also the last element.
Definition at line 122 of file PairI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), reconstructionSchemes::alreadyReconstructed(), meshRefinement::balance(), fieldMinMax::calcMinMaxFieldType(), Pair< word >::compare(), faPatchData::comparePatchPair(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), snappyRefineDriver::doRefine(), meshReader::cellFaceIdentifier::faceId(), Foam::faceNij(), shellSurfaces::findDirectionalLevel(), ensightSurfaceReader::geometry(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdt(), linearInterpolationWeights::integrationWeights(), isoSurfaceTopo::interpolateTemplate(), isoSurfaceTopo::isoSurfaceTopo(), faPatchData::matchPatchPair(), slidingInterface::modifyMotionPoints(), Distribution< Type >::normalised(), meshReader::cellFaceIdentifier::notUsed(), Pair< T >::symmHasher::operator()(), Foam::operator<(), Foam::operator==(), globalIndexAndTransform::processor(), Distribution< Type >::raw(), ensightSurfaceReader::readGeometryHeader(), RectangularMatrix< complex >::RectangularMatrix(), lumpedPointMovement::setInterpolator(), meshRefinement::splitFacesUndo(), SquareMatrix< cmptType >::SquareMatrix(), globalIndexAndTransform::transformIndex(), globalIndexAndTransform::transformIndicesForPatches(), meshReader::cellFaceIdentifier::used(), Distribution< Type >::validLimits(), ABAQUSsurfaceFormat< Face >::write(), and meshRefinement::zonify().
|
inlinenoexcept |
|
inline |
|
inline |
Flip the Pair in-place.
Definition at line 160 of file PairI.H.
Referenced by patchEdgeFaceRegions::updateEdge(), and patchEdgeFaceRegions::updateFace().
|
inline |