An ordered pair of two objects of type <T> with first() and second() elements. More...
Classes | |
struct | SymmHash |
Symmetrical hashing for Pair data. More... | |
Public Member Functions | |
Pair ()=default | |
Construct null. 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 |
Construct null.
|
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(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::correctInterfaceThermo(), snappyRefineDriver::doRefine(), Foam::faceNij(), shellSurfaces::findDirectionalLevel(), phaseSystem::generatePairs(), ensightSurfaceReader::geometry(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::iDmdt(), linearInterpolationWeights::integrationWeights(), slidingInterface::modifyMotionPoints(), Distribution< Type >::normalised(), multiphaseMixtureThermo::interfacePair::hash::operator()(), multiphaseMixture::interfacePair::hash::operator()(), multiphaseSystem::interfacePair::symmHash::operator()(), multiphaseSystem::interfacePair::hash::operator()(), Pair< T >::SymmHash< HashT >::operator()(), Hash< Pair< T > >::operator()(), Foam::operator<(), Foam::operator<<(), Foam::operator==(), Foam::operator>>(), PopulationBalancePhaseSystem< BasePhaseSystem >::PopulationBalancePhaseSystem(), globalIndexAndTransform::processor(), Distribution< Type >::raw(), ensightSurfaceReader::readGeometryHeader(), RectangularMatrix< complex >::RectangularMatrix(), lumpedPointMovement::setInterpolator(), meshRefinement::splitFacesUndo(), SquareMatrix< cmptType >::SquareMatrix(), globalIndexAndTransform::transformIndex(), globalIndexAndTransform::transformIndicesForPatches(), 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(), patchEdgeFaceRegions::updateFace(), and meshRefinement::zonify().
|
inline |
Compare Pairs.
Definition at line 33 of file PairI.H.
Referenced by Foam::operator==().