An ordered pair of two objects of type <Type> with first() and second() elements. More...

Classes | |
| class | Hash |
| Hashing function class. More... | |
Public Types | |
| typedef Type | value_type |
| Type of values the pair contains. More... | |
| typedef Type & | reference |
| Type that can be used for storing into. More... | |
| typedef const Type & | const_reference |
| Type that can be used for storing into. More... | |
Public Member Functions | |
| Pair () | |
| Null constructor. More... | |
| Pair (const Type &f, const Type &s) | |
| Construct from components. More... | |
| Pair (Istream &is) | |
| Construct from Istream. More... | |
| const Type & | first () const |
| Return first. More... | |
| Type & | first () |
| Return first. More... | |
| const Type & | second () const |
| Return second. More... | |
| Type & | second () |
| Return second. More... | |
| const Type & | other (const Type &a) const |
| Return other. More... | |
| Type & | operator[] (const label i) |
| Access an element by index. More... | |
| const Type & | operator[] (const label i) const |
| Const-access an element by index. More... | |
Static Public Member Functions | |
| static const Pair< Type > & | null () |
| Return a null pair. More... | |
| static label | size () |
| Return the size. More... | |
| static void | checkIndex (const label i) |
| Check index i is within valid range (0 ... 1) More... | |
| static int | compare (const Pair< Type > &a, const Pair< Type > &b) |
| Compare two pairs. Return 0 if they are different, +1 if they are. More... | |
An ordered pair of two objects of type <Type> with first() and second() elements.
| typedef Type value_type |
| typedef Type& reference |
| typedef const Type& const_reference |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Check index i is within valid range (0 ... 1)
Definition at line 47 of file PairI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Compare two pairs. Return 0 if they are different, +1 if they are.
identical, and -1 if the elements are the same but reversed.
Definition at line 59 of file PairI.H.
References b, and Foam::reverse().
Referenced by phaseInterface::New(), and Foam::operator==().


|
inline |
Return first.
Definition at line 107 of file PairI.H.
Referenced by coefficientPhaseChange::addSup(), globalIndexAndTransform::addToTransformIndex(), preserveBafflesConstraint::apply(), meshRefinement::balance(), points::calcSamples(), lineFace::calcSamples(), Foam::cutPoly::cellCuts(), massDiffusionLimitedPhaseChange::correct(), decompositionMethod::decompose(), snappySnapDriver::doSnap(), populationBalanceModel::eta(), populationBalanceModel::etaV(), populationBalanceModel::expansionSu(), FvFaceCellWave< Type, TrackingData >::faceChanged(), FvFaceCellWave< Type, TrackingData >::faceInfo(), Foam::faceNij(), FvFaceCellWave< Type, TrackingData >::faceToCell(), InjectionModel< CloudType >::findCellAtPosition(), Foam::triIntersect::generateGeometry(), globalIndexAndTransform::globalIndexAndTransform(), heatTransferSystem::heatTransfer(), heatTransferSystem::Hs(), globalIndexAndTransform::index(), massTransfer::index(), irregular::irregular(), Foam::kShellIntegration(), phaseChange::L(), noiseFFT::Ldelta(), noiseFFT::Lf(), heatTransferLimitedPhaseChange::Lfraction(), massDiffusionLimitedPhaseChange::Lfraction(), reactionDrivenPhaseChange::mDot(), coefficientPhaseChange::mDot(), populationBalanceModel::modelSourceSu(), CollidingParcel< ParcelType >::move(), Distribution< Type >::normalised(), multiphaseVoFMixture::interfacePair::hash::operator()(), Foam::operator<(), Foam::operator==(), particle::patchData(), noiseFFT::Pdelta(), Distribution< Type >::raw(), Foam::readConfigFile(), phaseChange::setSpecies(), massTransfer::sign(), growthSecondaryPropertyFvScalarFieldSource::sourceCoeff(), growthSizeGroupFvScalarFieldSource::sourceCoeff(), growthSecondaryPropertyFvScalarFieldSource::sourceCoeffs(), growthSizeGroupFvScalarFieldSource::sourceCoeffs(), Foam::tracking::toStationaryTri(), globalIndexAndTransform::transformIndicesForPatches(), UniformTable< Type >::UniformTable(), patchToPatch::update(), meshPhiCorrectInfo::updateCell(), FvWallInfo< WallLocation >::updateFace(), sweepData::updateFace(), meshPhiCorrectInfo::updateFace(), and Distribution< Type >::validLimits().

|
inline |
Return second.
Definition at line 121 of file PairI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), preserveBafflesConstraint::apply(), meshRefinement::balance(), points::calcSamples(), lineFace::calcSamples(), Foam::cutPoly::cellCuts(), homogeneousCondensation::correct(), homogeneousLiquidPhaseSeparation::correct(), massDiffusionLimitedPhaseChange::correct(), decompositionMethod::decompose(), snappySnapDriver::doSnap(), populationBalanceModel::eta(), populationBalanceModel::etaV(), populationBalanceModel::expansionSu(), FvFaceCellWave< Type, TrackingData >::faceChanged(), FvFaceCellWave< Type, TrackingData >::faceInfo(), Foam::faceNij(), FvFaceCellWave< Type, TrackingData >::faceToCell(), InjectionModel< CloudType >::findCellAtPosition(), Foam::triIntersect::generateGeometry(), heatTransferSystem::heatTransfer(), heatTransferSystem::Hs(), massTransfer::index(), irregular::irregular(), Foam::kShellIntegration(), phaseChange::L(), noiseFFT::Ldelta(), noiseFFT::Lf(), heatTransferLimitedPhaseChange::Lfraction(), massDiffusionLimitedPhaseChange::Lfraction(), noiseFFT::Lsum(), reactionDrivenPhaseChange::mDot(), populationBalanceModel::modelSourceSu(), CollidingParcel< ParcelType >::move(), Distribution< Type >::normalised(), multiphaseVoFMixture::interfacePair::hash::operator()(), Foam::operator<(), Foam::operator==(), particle::patchData(), noiseFFT::Pdelta(), globalIndexAndTransform::processor(), Distribution< Type >::raw(), Foam::readConfigFile(), phaseChange::setSpecies(), massTransfer::sign(), growthSecondaryPropertyFvScalarFieldSource::sourceCoeff(), growthSizeGroupFvScalarFieldSource::sourceCoeff(), growthSecondaryPropertyFvScalarFieldSource::sourceCoeffs(), growthSizeGroupFvScalarFieldSource::sourceCoeffs(), Foam::tracking::toStationaryTri(), globalIndexAndTransform::transformIndex(), globalIndexAndTransform::transformIndicesForPatches(), UniformTable< Type >::UniformTable(), patchToPatch::update(), meshPhiCorrectInfo::updateCell(), FvWallInfo< WallLocation >::updateFace(), sweepData::updateFace(), meshPhiCorrectInfo::updateFace(), and Distribution< Type >::validLimits().

|
inline |
|
inline |
|
inline |