Tools for parsing label(List) with dictionary lookup. More...
Functions | |
void | read (Istream &, label &val, const dictionary &) |
In-place read with dictionary lookup. More... | |
template<class T > | |
void | read (Istream &, List< T > &list, const dictionary &) |
In-place read with dictionary lookup. More... | |
label | read (Istream &, const dictionary &) |
Return-read with dictionary lookup. More... | |
void | write (Ostream &, const label val, const dictionary &) |
Write with dictionary lookup. More... | |
const entry * | findEntry (const dictionary &dict, const label val) |
Linear search for labelled entry, nullptr if not found. More... | |
Tools for parsing label(List) with dictionary lookup.
void read | ( | Istream & | is, |
label & | val, | ||
const dictionary & | dict | ||
) |
In-place read with dictionary lookup.
Definition at line 44 of file blockMeshTools.C.
References dict, Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isWord(), token::labelToken(), Foam::readLabel(), entry::stream(), and token::wordToken().
Referenced by ABAQUSsurfaceFormat< Face >::ABAQUSsurfaceFormat(), abort::abort(), AC3DsurfaceFormat< Face >::AC3DsurfaceFormat(), areaWrite::areaWrite(), binField::binField(), CodedSource< Type >::CodedSource(), Pstream::combineGather(), processorLduInterface::compressedReceive(), processorLduInterface::compressedSend(), contactHeatFluxSource::contactHeatFluxSource(), CSV< Type >::CSV(), decomposedBlockData::decomposedBlockData(), metisLikeDecomp::decomposeGeneral(), derivedFields::derivedFields(), dictionary::dictionary(), dimensioned< vector >::dimensioned(), mapDistributeBase::distribute(), drivenLinearMotion::drivenLinearMotion(), edgeMesh::edgeMesh(), edgeMeshFormat::edgeMeshFormat(), equalBinWidth::equalBinWidth(), mapDistributeBase::exchangeMasks(), Pstream::exchangeSizes(), explicitPorositySource::explicitPorositySource(), extendedEdgeMeshFormat::extendedEdgeMeshFormat(), extendedFeatureEdgeMeshFormat::extendedFeatureEdgeMeshFormat(), externalFileSource::externalFileSource(), externalForce::externalForce(), externalHeatFluxSource::externalHeatFluxSource(), fieldExpression::fieldExpression(), fieldsExpression::fieldsExpression(), fieldValue::fieldValue(), fixedReferenceTemperature::fixedReferenceTemperature(), FixedValueConstraint< Type >::FixedValueConstraint(), FunctionObjectTrigger< Type >::FunctionObjectTrigger(), FunctionObjectValue< Type >::FunctionObjectValue(), Pstream::gather(), globalIndex::gather(), Pstream::gatherList(), globalIndex::gatherValues(), GTSsurfaceFormat< Face >::GTSsurfaceFormat(), HashPtrTable< exprResult >::HashPtrTable(), heatExchangerSource::heatExchangerSource(), histogram::histogram(), calculatedProcessorFvPatchField< Type >::initEvaluate(), processorFaPatchField< Type >::initEvaluate(), processorFvPatchField< Type >::initEvaluate(), lduCalculatedProcessorField< Type >::initInterfaceMatrixUpdate(), calculatedProcessorGAMGInterfaceField::initInterfaceMatrixUpdate(), calculatedProcessorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorFaPatchField< Type >::initInterfaceMatrixUpdate(), processorFvPatchField< Type >::initInterfaceMatrixUpdate(), processorCyclicPointPatchField< Type >::initSwapAddSeparated(), InputValueMapper< Type >::InputValueMapper(), jouleHeatingSource::jouleHeatingSource(), limitFields::limitFields(), limitHeight::limitHeight(), line::line(), linearAxialAngularSpring::linearAxialAngularSpring(), linearDamper::linearDamper(), linearMotion::linearMotion(), linearSpring::linearSpring(), linearSpringDamper::linearSpringDamper(), Pstream::listCombineGather(), localReferenceTemperature::localReferenceTemperature(), MapFieldConstraint< Type >::MapFieldConstraint(), MeshedSurface< Foam::face >::MeshedSurface(), multiFieldValue::multiFieldValue(), MultiInteraction< CloudType >::MultiInteraction(), multiMotion::multiMotion(), multiphaseMangrovesTurbulenceModel::multiphaseMangrovesTurbulenceModel(), multiRegion::multiRegion(), NASsurfaceFormat< Face >::NASsurfaceFormat(), OBJedgeFormat::OBJedgeFormat(), OBJsurfaceFormat< Face >::OBJsurfaceFormat(), OFFsurfaceFormat< Face >::OFFsurfaceFormat(), orientation::orientation(), oscillatingRotatingMotion::oscillatingRotatingMotion(), particleDistribution::particleDistribution(), ParticleHistogram< CloudType >::ParticleHistogram(), ParticlePostProcessing< CloudType >::ParticlePostProcessing(), ParticleZoneInfo< CloudType >::ParticleZoneInfo(), plane::plane(), point::point(), prescribedRotation::prescribedRotation(), processorField::processorField(), reactionsSensitivityAnalysis< chemistryType >::reactionsSensitivityAnalysis(), read(), linearViscousStress< RASModel< BasicTurbulenceModel > >::read(), HerschelBulkley::read(), powerLaw::read(), extendedFeatureEdgeMeshFormat::read(), BirdCarreau::read(), EddyDiffusivity< compressible::turbulenceModel >::read(), eddyViscosity< RASModel< BasicTurbulenceModel > >::read(), OneResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), strainRateFunction::read(), options::read(), Casson::read(), noCombustion< ReactionThermo >::read(), PopulationBalancePhaseSystem< BasePhaseSystem >::read(), Newtonian::read(), CrossPowerLaw::read(), specieReactionRates< ChemistryModelType >::read(), TwoResistanceHeatTransferPhaseSystem< BasePhaseSystem >::read(), PhaseTransferPhaseSystem< BasePhaseSystem >::read(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::read(), blockVertex::read(), softWall::read(), Arrhenius< ViscousModel >::read(), edgeMeshFormat::read(), dsmcFields::read(), CombustionModel< ReactionThermo >::read(), ThermalPhaseChangePhaseSystem< BasePhaseSystem >::read(), localReferenceTemperature::read(), laminarModel< BasicMomentumTransportModel >::read(), InterfaceCompositionPhaseChangePhaseSystem< BasePhaseSystem >::read(), runTimeControl::read(), fixedReferenceTemperature::read(), FixedValueConstraint< Type >::read(), limitVelocity::read(), limitTurbulenceViscosity::read(), LESModel< BasicTurbulenceModel >::read(), limitTemperature::read(), surfaceInterpolate::read(), PhaseLimitStabilization< Type >::read(), moleFractions< ThermoType >::read(), SpalartAllmarasBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::read(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::read(), surfaceDistance::read(), velocityDampingConstraint::read(), referenceTemperature::read(), reactionsSensitivityAnalysis< chemistryType >::read(), CodedSource< Type >::read(), areaWrite::read(), multiFieldValue::read(), Curle::read(), MomentumTransferPhaseSystem< BasePhaseSystem >::read(), SemiImplicitSource< Type >::read(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::read(), dimensioned< vector >::read(), heThermo< BasicSolidThermo, MixtureType >::read(), sampledSets::read(), MapFieldConstraint< Type >::read(), effectivenessTable::read(), sampledSurfaces::read(), regionSizeDistribution::read(), actuationDiskSource::read(), waveModel::readDict(), readFields::readFields(), processorLduInterface::receive(), distributedDILUPreconditioner::receive(), removeRegisteredObject::removeRegisteredObject(), resolutionIndex::resolutionIndex(), runTimeControl::runTimeControl(), Scale< Type >::Scale(), globalIndex::scatter(), Pstream::scatterList(), SemiImplicitSource< Type >::SemiImplicitSource(), processorLduInterface::send(), mapDistributeBase::send(), setTimeStepFaRegionsFunctionObject::setTimeStepFaRegionsFunctionObject(), setTimeStepFunctionObject::setTimeStepFunctionObject(), SIMPLEControl::SIMPLEControl(), SimplifiedDynamicFvMesh< DynamicMeshType >::SimplifiedDynamicFvMesh(), softWall::softWall(), LUscalarMatrix::solve(), sphericalAngularDamper::sphericalAngularDamper(), sphericalAngularSpring::sphericalAngularSpring(), STARCDsurfaceFormat< Face >::STARCDsurfaceFormat(), STLsurfaceFormat< Face >::STLsurfaceFormat(), surfaceDistance::surfaceDistance(), surfaceInterpolate::surfaceInterpolate(), processorCyclicPointPatchField< Type >::swapAddSeparated(), syncObjects::syncObjects(), tabulated6DoFAcceleration::tabulated6DoFAcceleration(), tabulated6DoFMotion::tabulated6DoFMotion(), tabulatedAxialAngularSpring::tabulatedAxialAngularSpring(), timeControl::timeControl(), trimModel::trimModel(), TRIsurfaceFormat< Face >::TRIsurfaceFormat(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), unequalBinWidth::unequalBinWidth(), VTKedgeFormat::VTKedgeFormat(), VTKsurfaceFormat< Face >::VTKsurfaceFormat(), writeCellCentres::writeCellCentres(), writeCellVolumes::writeCellVolumes(), Foam::ensightOutput::writeCloudField(), Foam::ensightOutput::writeCloudPositions(), Foam::ensightOutput::Detail::writeFieldComponents(), Foam::vtk::writeListParallel(), Foam::vtk::writeListsParallel(), writeObjects::writeObjects(), and XiReactionRate::XiReactionRate().
void read | ( | Istream & | is, |
List< T > & | list, | ||
const dictionary & | dict | ||
) |
In-place read with dictionary lookup.
Definition at line 26 of file blockMeshToolsTemplates.C.
References DynamicList< T, SizeMin >::clear(), dict, DynamicList< T, SizeMin >::emplace_back(), Foam::exit(), IOstream::fatalCheck(), Foam::FatalIOError, FatalIOErrorInFunction, FUNCTION_NAME, token::info(), token::isLabel(), token::isPunctuation(), token::labelToken(), Foam::nl, Istream::putBack(), read(), Istream::readBeginList(), Istream::readEndList(), and List< T >::resize_nocopy().
Foam::List< T > read | ( | Istream & | is, |
const dictionary & | dict | ||
) |
Return-read with dictionary lookup.
Definition at line 87 of file blockMeshTools.C.
void write | ( | Ostream & | os, |
const label | val, | ||
const dictionary & | dict | ||
) |
Write with dictionary lookup.
Definition at line 99 of file blockMeshTools.C.
References dict, Foam::constant::electromagnetic::e, entry::keyword(), os(), and Foam::resolveLabel().
Referenced by blockVertex::write(), and blockDescriptor::write().
const Foam::entry * findEntry | ( | const dictionary & | dict, |
const label | val | ||
) |
Linear search for labelled entry, nullptr if not found.
Definition at line 119 of file blockMeshTools.C.
References dict, Foam::constant::electromagnetic::e, and Foam::resolveLabel().
Referenced by dictionary::found(), and dictionary::lookupEntry().