A list of keyword definitions, which are a keyword followed by any number of values (e.g. words and numbers). The keywords can represent patterns which are matched using Posix regular expressions. The general order for searching is as follows: More...
Public Member Functions | |
ClassName ("dictionary") | |
dictionary () | |
Construct top-level dictionary null. More... | |
dictionary (const fileName &name) | |
Construct top-level empty dictionary with given name. More... | |
dictionary (const fileName &name, const dictionary &parentDict, Istream &) | |
Construct given the entry name, parent dictionary and Istream,. More... | |
dictionary (Istream &, const bool keepHeader=false) | |
Construct top-level dictionary from Istream,. More... | |
dictionary (const dictionary &parentDict, const dictionary &) | |
Construct as copy given the parent dictionary. More... | |
dictionary (const dictionary &) | |
Construct top-level dictionary as copy. More... | |
dictionary (const dictionary *) | |
Construct top-level dictionary as copy from pointer to dictionary. More... | |
dictionary (const dictionary &parentDict, dictionary &&) | |
Move constructor transferring parameter contents. More... | |
dictionary (dictionary &&) | |
Move constructor. More... | |
autoPtr< dictionary > | clone () const |
Construct and return clone. More... | |
virtual | ~dictionary () |
Destructor. More... | |
const dictionary & | parent () const |
Return the parent dictionary. More... | |
bool | isNull () const |
Return whether this dictionary is null. More... | |
const dictionary & | topDict () const |
Return the top of the tree. More... | |
label | startLineNumber () const |
Return line number of first token in dictionary. More... | |
label | endLineNumber () const |
Return line number of last token in dictionary. More... | |
SHA1Digest | digest () const |
Return the SHA1 digest of the dictionary contents. More... | |
tokenList | tokens () const |
Return the dictionary as a list of tokens. More... | |
bool | found (const word &, bool recursive=false, bool patternMatch=true) const |
Search dictionary for given keyword. More... | |
const entry * | lookupEntryPtr (const word &, bool recursive, bool patternMatch) const |
Find and return an entry data stream pointer if present. More... | |
entry * | lookupEntryPtr (const word &, bool recursive, bool patternMatch) |
Find and return an entry data stream pointer for manipulation. More... | |
const entry & | lookupEntry (const word &, bool recursive, bool patternMatch) const |
Find and return an entry data stream if present otherwise error. More... | |
ITstream & | lookup (const word &, bool recursive=false, bool patternMatch=true) const |
Find and return an entry data stream. More... | |
template<class T > | |
T | lookup (const word &, bool recursive=false, bool patternMatch=true) const |
Find and return a T,. More... | |
template<class T > | |
T | lookupOrDefault (const word &, const T &, bool recursive=false, bool patternMatch=true) const |
Find and return a T,. More... | |
template<class T > | |
T | lookupOrAddDefault (const word &, const T &, bool recursive=false, bool patternMatch=true) |
Find and return a T, if not found return the given. More... | |
template<class T > | |
bool | readIfPresent (const word &, T &, bool recursive=false, bool patternMatch=true) const |
Find an entry if present, and assign to T. More... | |
const entry * | lookupScopedEntryPtr (const word &, bool recursive, bool patternMatch) const |
Find and return an entry data stream pointer if present. More... | |
bool | isDict (const word &) const |
Check if entry is a sub-dictionary. More... | |
const dictionary * | subDictPtr (const word &) const |
Find and return a sub-dictionary pointer if present. More... | |
dictionary * | subDictPtr (const word &) |
Find and return a sub-dictionary pointer if present. More... | |
const dictionary & | subDict (const word &) const |
Find and return a sub-dictionary. More... | |
dictionary & | subDict (const word &) |
Find and return a sub-dictionary for manipulation. More... | |
dictionary | subOrEmptyDict (const word &, const bool mustRead=false) const |
Find and return a sub-dictionary as a copy, or. More... | |
const dictionary & | optionalSubDict (const word &) const |
Find and return a sub-dictionary if found. More... | |
wordList | toc () const |
Return the table of contents. More... | |
wordList | sortedToc () const |
Return the sorted table of contents. More... | |
List< keyType > | keys (bool patterns=false) const |
Return the list of available keys or patterns. More... | |
bool | substituteKeyword (const word &keyword) |
Substitute the given keyword prepended by '$' with the. More... | |
bool | substituteScopedKeyword (const word &keyword) |
Substitute the given scoped keyword prepended by '$' with the. More... | |
bool | add (entry *, bool mergeEntry=false) |
Add a new entry. More... | |
void | add (const entry &, bool mergeEntry=false) |
Add an entry. More... | |
void | add (const keyType &, const word &, bool overwrite=false) |
Add a word entry. More... | |
void | add (const keyType &, const string &, bool overwrite=false) |
Add a string entry. More... | |
void | add (const keyType &, const label, bool overwrite=false) |
Add a label entry. More... | |
void | add (const keyType &, const scalar, bool overwrite=false) |
Add a scalar entry. More... | |
void | add (const keyType &, const dictionary &, bool mergeEntry=false) |
Add a dictionary entry. More... | |
template<class T > | |
void | add (const keyType &, const T &, bool overwrite=false) |
Add a T entry. More... | |
void | set (entry *) |
Assign a new entry, overwrite any existing entry. More... | |
void | set (const entry &) |
Assign a new entry, overwrite any existing entry. More... | |
void | set (const keyType &, const dictionary &) |
Assign a dictionary entry, overwrite any existing entry. More... | |
template<class T > | |
void | set (const keyType &, const T &) |
Assign a T entry, overwrite any existing entry. More... | |
bool | remove (const word &) |
Remove an entry specified by keyword. More... | |
bool | changeKeyword (const keyType &oldKeyword, const keyType &newKeyword, bool forceOverwrite=false) |
Change the keyword for an entry,. More... | |
bool | merge (const dictionary &) |
Merge entries from the given dictionary. More... | |
void | clear () |
Clear the dictionary. More... | |
void | transfer (dictionary &) |
Transfer the contents of the argument and annul the argument. More... | |
bool | read (Istream &, const bool keepHeader=false) |
Read dictionary from Istream, optionally keeping the header. More... | |
void | write (Ostream &, const bool subDict=true) const |
Write dictionary, normally with sub-dictionary formatting. More... | |
ITstream & | operator[] (const word &) const |
Find and return entry. More... | |
void | operator= (const dictionary &) |
void | operator= (dictionary &&) |
void | operator+= (const dictionary &) |
Include entries from the given dictionary. More... | |
void | operator|= (const dictionary &) |
Conditionally include entries from the given dictionary. More... | |
void | operator<<= (const dictionary &) |
Unconditionally include entries from the given dictionary. More... | |
Public Member Functions inherited from dictionaryName | |
dictionaryName () | |
Construct dictionaryName null. More... | |
dictionaryName (const fileName &name) | |
Construct dictionaryName as copy of the given fileName. More... | |
dictionaryName (dictionaryName &&name) | |
Move constructor. More... | |
const fileName & | name () const |
Return the dictionary name. More... | |
fileName & | name () |
Return the dictionary name. More... | |
const word | dictName () const |
Return the local dictionary name (final part of scoped name) More... | |
void | operator= (const dictionaryName &name) |
void | operator= (dictionaryName &&name) |
Public Member Functions inherited from ILList< LListBase, T > | |
ILList () | |
Null construct. More... | |
ILList (T *a) | |
Construct given initial T. More... | |
ILList (Istream &) | |
Construct from Istream. More... | |
ILList (const ILList< LListBase, T > &) | |
Copy constructor. More... | |
ILList (ILList< LListBase, T > &&) | |
Move constructor. More... | |
template<class CloneArg > | |
ILList (const ILList< LListBase, T > &lst, const CloneArg &cloneArg) | |
Copy constructor with additional argument for clone. More... | |
template<class INew > | |
ILList (Istream &, const INew &) | |
Construct from Istream using given Istream constructor class. More... | |
~ILList () | |
Destructor. More... | |
bool | eraseHead () |
Remove the head element specified from the list and delete it. More... | |
bool | erase (T *p) |
Remove the specified element from the list and delete it. More... | |
void | clear () |
Clear the contents of the list. More... | |
void | transfer (ILList< LListBase, T > &) |
Transfer the contents of the argument into this List. More... | |
void | operator= (const ILList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (ILList< LListBase, T > &&) |
Move assignment operator. More... | |
Public Member Functions inherited from UILList< LListBase, T > | |
UILList () | |
Null construct. More... | |
UILList (T *a) | |
Construct given initial T. More... | |
UILList (const UILList< LListBase, T > &) | |
Copy constructor. More... | |
UILList (UILList< LListBase, T > &&) | |
Move constructor. More... | |
T * | first () |
Return the first entry. More... | |
const T * | first () const |
Return the first entry. More... | |
T * | last () |
Return the last entry. More... | |
const T * | last () const |
Return the last entry. More... | |
T * | removeHead () |
Remove and return head. More... | |
T * | remove (T *p) |
Remove and return element. More... | |
T * | remove (iterator &it) |
Remove and return specified by iterator. More... | |
void | operator= (const UILList< LListBase, T > &) |
Assignment operator. More... | |
void | operator= (UILList< LListBase, T > &&) |
Move assignment operator. More... | |
iterator | begin () |
const iterator & | end () |
const_iterator | cbegin () const |
const const_iterator & | cend () const |
const_iterator | begin () const |
const const_iterator & | end () const |
const_reverse_iterator | crbegin () const |
const const_reverse_iterator & | crend () const |
const_reverse_iterator | rbegin () const |
const const_reverse_iterator & | rend () const |
bool | operator== (const UILList< LListBase, T > &) const |
Equality operation on ULists of the same type. More... | |
bool | operator!= (const UILList< LListBase, T > &) const |
The opposite of the equality operation. Takes linear time. More... | |
Static Public Member Functions | |
static autoPtr< dictionary > | New (Istream &) |
Construct top-level dictionary on freestore from Istream. More... | |
Static Public Attributes | |
static const dictionary | null |
Null dictionary. More... | |
Friends | |
class | entry |
Declare friendship with the entry class for IO. More... | |
Istream & | operator>> (Istream &, dictionary &) |
Read dictionary from Istream. More... | |
Ostream & | operator<< (Ostream &, const dictionary &) |
Write dictionary to Ostream. More... | |
Additional Inherited Members | |
Public Types inherited from UILList< LListBase, T > | |
typedef T | value_type |
Type of values the DLList contains. More... | |
typedef T & | reference |
Type that can be used for storing into DLList::value_type. More... | |
typedef const T & | const_reference |
Type that can be used for storing into constant. More... | |
typedef label | size_type |
The type that can represent the size of a DLList. More... | |
typedef LListBase::iterator | LListBase_iterator |
typedef LListBase::const_iterator | LListBase_const_iterator |
A list of keyword definitions, which are a keyword followed by any number of values (e.g. words and numbers). The keywords can represent patterns which are matched using Posix regular expressions. The general order for searching is as follows:
The dictionary class is the base class for IOdictionary. It also serves as a bootstrap dictionary for the objectRegistry data dictionaries since, unlike the IOdictionary class, it does not use an objectRegistry itself to work.
To add - a merge() member function with a non-const dictionary parameter? This would avoid unnecessary cloning in the add(entry*, bool) method.
Definition at line 158 of file dictionary.H.
dictionary | ( | ) |
Construct top-level dictionary null.
Definition at line 464 of file dictionary.C.
Referenced by dictionary::clone(), dictionary::dictionary(), dictionary::New(), and dictionary::subOrEmptyDict().
dictionary | ( | const fileName & | name | ) |
Construct top-level empty dictionary with given name.
Definition at line 470 of file dictionary.C.
References dictionary::dictionary().
dictionary | ( | const fileName & | name, |
const dictionary & | parentDict, | ||
Istream & | is | ||
) |
Construct given the entry name, parent dictionary and Istream,.
reading entries until lastEntry or EOF
Definition at line 34 of file dictionaryIO.C.
References Foam::blockMeshTools::read().
dictionary | ( | Istream & | is, |
const bool | keepHeader = false |
||
) |
Construct top-level dictionary from Istream,.
reading entries until EOF, optionally keeping the header
Definition at line 52 of file dictionaryIO.C.
References inputModeEntry::clear(), inputSyntaxEntry::clear(), and dictionary::read().
dictionary | ( | const dictionary & | parentDict, |
const dictionary & | dict | ||
) |
Construct as copy given the parent dictionary.
Definition at line 478 of file dictionary.C.
References dictionary::dictionary(), and forAllIter.
dictionary | ( | const dictionary & | dict | ) |
Construct top-level dictionary as copy.
Definition at line 504 of file dictionary.C.
References dictionary::dictionary(), and forAllIter.
dictionary | ( | const dictionary * | dictPtr | ) |
Construct top-level dictionary as copy from pointer to dictionary.
A null pointer is treated like an empty dictionary.
Definition at line 543 of file dictionary.C.
References dictionary::dictionary(), and dictionary::operator=().
dictionary | ( | const dictionary & | parentDict, |
dictionary && | dict | ||
) |
Move constructor transferring parameter contents.
given parent dictionary
Definition at line 557 of file dictionary.C.
References dictionaryName::name(), and fileName::null.
dictionary | ( | dictionary && | dict | ) |
Move constructor.
Definition at line 529 of file dictionary.C.
References dictionary::dictionary().
|
virtual |
Destructor.
Definition at line 584 of file dictionary.C.
ClassName | ( | "dictionary" | ) |
Foam::autoPtr< Foam::dictionary > clone | ( | ) | const |
Construct and return clone.
Definition at line 576 of file dictionary.C.
References dictionary::dictionary().
Referenced by dictionary::merge(), dictionary::operator+=(), dictionary::operator=(), dictionary::operator|=(), Foam::preservePatchTypes(), and refinementSurfaces::refinementSurfaces().
|
static |
Construct top-level dictionary on freestore from Istream.
Definition at line 69 of file dictionaryIO.C.
References dictionary::dictionary().
|
inline |
Return the parent dictionary.
Definition at line 296 of file dictionary.H.
Referenced by cylindrical::cylindrical(), dictionary::topDict(), and dictionary::write().
|
inline |
Return whether this dictionary is null.
Definition at line 302 of file dictionary.H.
References Foam::add(), clear(), dict, found, lookup(), Foam::operator+(), Foam::operator<<(), dictionaryName::operator=(), Foam::operator>>(), Foam::operator|(), Foam::read(), Foam::T(), Foam::vtkWriteOps::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().
const Foam::dictionary & topDict | ( | ) | const |
Return the top of the tree.
Definition at line 592 of file dictionary.C.
References dictionaryName::name(), p, dictionary::parent(), and dictionary::topDict().
Referenced by dictionary::topDict().
Foam::label startLineNumber | ( | ) | const |
Return line number of first token in dictionary.
Definition at line 607 of file dictionary.C.
References UILList< LListBase, T >::first().
Referenced by codedBase::updateLibrary().
Foam::label endLineNumber | ( | ) | const |
Return line number of last token in dictionary.
Definition at line 620 of file dictionary.C.
References UILList< LListBase, T >::last().
Foam::SHA1Digest digest | ( | ) | const |
Return the SHA1 digest of the dictionary contents.
Definition at line 633 of file dictionary.C.
References OSHA1stream::digest(), and forAllConstIter().
Referenced by functionObjectList::read(), and writeDictionary::write().
Foam::tokenList tokens | ( | ) | const |
Return the dictionary as a list of tokens.
Definition at line 647 of file dictionary.C.
References dictionary::found(), OStringStream::str(), and dictionary::write().
bool found | ( | const word & | keyword, |
bool | recursive = false , |
||
bool | patternMatch = true |
||
) | const |
Search dictionary for given keyword.
If recursive, search parent dictionaries If patternMatch, use regular expressions
Definition at line 667 of file dictionary.C.
References dictionary::found(), and dictionary::lookupEntryPtr().
Referenced by activePressureForceBaffleVelocityFvPatchVectorField::activePressureForceBaffleVelocityFvPatchVectorField(), sixDoFRigidBodyMotion::addConstraints(), Foam::AddPatchFields(), sixDoFRigidBodyMotion::addRestraints(), advectiveFvPatchField< Type >::advectiveFvPatchField(), alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField(), alphaFixedPressureFvPatchScalarField::alphaFixedPressureFvPatchScalarField(), angularOscillatingDisplacementPointPatchVectorField::angularOscillatingDisplacementPointPatchVectorField(), angularOscillatingVelocityPointPatchVectorField::angularOscillatingVelocityPointPatchVectorField(), atmBoundaryLayerInletEpsilonFvPatchScalarField::atmBoundaryLayerInletEpsilonFvPatchScalarField(), atmBoundaryLayerInletKFvPatchScalarField::atmBoundaryLayerInletKFvPatchScalarField(), atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField(), Constant< Type >::Constant(), forces::createFileNames(), cylindrical::cylindrical(), fvSchemes::d2dt2Scheme(), DAC< CompType, ThermoType >::DAC(), fvSchemes::ddtScheme(), Foam::dimensionedConstants(), fvSchemes::divScheme(), DRG< CompType, ThermoType >::DRG(), DRGEP< CompType, ThermoType >::DRGEP(), dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField(), energyJumpAMIFvPatchScalarField::energyJumpAMIFvPatchScalarField(), energyJumpFvPatchScalarField::energyJumpFvPatchScalarField(), includeEntry::execute(), includeEtcEntry::execute(), externalCoupledMixedFvPatchField< scalar >::externalCoupledMixedFvPatchField(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField(), fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), fixedJumpAMIFvPatchField< scalar >::fixedJumpAMIFvPatchField(), fixedJumpFvPatchField< scalar >::fixedJumpFvPatchField(), fluxLimitedLangmuirHinshelwoodReactionRate::fluxLimitedLangmuirHinshelwoodReactionRate(), fvSchemes::fluxRequired(), dictionary::found(), freestreamPressureFvPatchScalarField::freestreamPressureFvPatchScalarField(), freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField(), fvPatchField< Type >::fvPatchField(), fvsPatchField< Type >::fvsPatchField(), genericFvPatchField< Type >::genericFvPatchField(), subModelBase::getModelProperty(), fvSchemes::gradScheme(), greyDiffusiveRadiationMixedFvPatchScalarField::greyDiffusiveRadiationMixedFvPatchScalarField(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::greyDiffusiveViewFactorFixedValueFvPatchScalarField(), volFieldValue::initialise(), surfaceFieldValue::initialise(), inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), fvSchemes::interpolationScheme(), fvSchemes::laplacianScheme(), layerParameters::layerParameters(), dimensioned< vector >::lookupOrDefault(), basicThermo::lookupThermo(), mappedPatchBase::mappedPatchBase(), MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField(), basicChemistryModel::New(), motionSolver::New(), sootModel::New(), surfaceWriter::New(), Function1< sphericalTensor >::New(), ParticleForce< Foam::DSMCCloud >::New(), laminarModel< BasicMomentumTransportModel >::New(), solidProperties::New(), RASModel< phaseCompressibleMomentumTransportModel >::New(), liquidProperties::New(), LESModel< BasicMomentumTransportModel >::New(), pointPatchField< vector >::New(), fvsPatchField< Type >::New(), fvPatchField< Type >::New(), functionObject::New(), dlLibraryTable::open(), axesRotation::operator=(), dictionary::operator|=(), optionList::optionsDict(), oscillatingDisplacementPointPatchVectorField::oscillatingDisplacementPointPatchVectorField(), oscillatingVelocityPointPatchVectorField::oscillatingVelocityPointPatchVectorField(), outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField(), patchInternalField::patchInternalField(), PFA< CompType, ThermoType >::PFA(), phaseHydrostaticPressureFvPatchScalarField::phaseHydrostaticPressureFvPatchScalarField(), plane::plane(), plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField(), Foam::preservePatchTypes(), pressureControl::pressureControl(), pressureFvPatchScalarField::pressureFvPatchScalarField(), pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField(), radiationCoupledBase::radiationCoupledBase(), rawSurfaceWriter::rawSurfaceWriter(), tolerances::read(), CrossPowerLaw::read(), timeControl::read(), BirdCarreau::read(), stopAt::read(), fieldsExpression::read(), scalarTransport::read(), writeLocalObjects::read(), log::read(), age::read(), writeObjects::read(), sampledSurfaces::read(), phaseScalarTransport::read(), functionObjectList::read(), turbulenceFields::read(), comfort::read(), sampledSets::read(), regionSizeDistribution::read(), streamLine::read(), forces::read(), fieldAverage::readAveragingProperties(), LduMatrix< Type, DType, LUType >::solver::readControl(), Time::readDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), functionObjectList::readFunctionObject(), liquidProperties::readIfPresent(), refinementSurfaces::refinementSurfaces(), tolerances::relax(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver(), rigidBodyModel::rigidBodyModel(), rigidBodyMotion::rigidBodyMotion(), fvSchemes::schemesDict(), searchableSurfaces::searchableSurfaces(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::setCdSigma(), subModelBase::setModelProperty(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::setPorosityCoefficient(), Foam::setRefCell(), shellSurfaces::shellSurfaces(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), SLGThermo::SLGThermo(), fvSchemes::snGradScheme(), solidBodyMotionDisplacementPointPatchVectorField::solidBodyMotionDisplacementPointPatchVectorField(), supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField(), surfaceWriter::surfaceWriter(), Table< scalar >::Table(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thirdBodyEfficiencies::thirdBodyEfficiencies(), sampledSurfaces::thresholdCellFaces::thresholdCellFaces(), timeVaryingMappedFvPatchField< Type >::timeVaryingMappedFvPatchField(), dictionary::tokens(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::totalFlowRateAdvectiveDiffusiveFvPatchScalarField(), totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField(), uniformInletOutletFvPatchField< Type >::uniformInletOutletFvPatchField(), uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField(), uniformJumpAMIFvPatchField< Type >::uniformJumpAMIFvPatchField(), uniformJumpFvPatchField< Type >::uniformJumpFvPatchField(), uniformTotalPressureFvPatchScalarField::uniformTotalPressureFvPatchScalarField(), Foam::unitSet(), valuePointPatchField< vector >::valuePointPatchField(), variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField(), waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField(), waveDisplacementPointPatchVectorField::waveDisplacementPointPatchVectorField(), waveInletOutletFvPatchField< Type >::waveInletOutletFvPatchField(), wavePressureFvPatchScalarField::wavePressureFvPatchScalarField(), waveVelocityFvPatchVectorField::waveVelocityFvPatchVectorField(), wideBandDiffusiveRadiationMixedFvPatchScalarField::wideBandDiffusiveRadiationMixedFvPatchScalarField(), and jobInfo::write().
const Foam::entry * lookupEntryPtr | ( | const word & | keyword, |
bool | recursive, | ||
bool | patternMatch | ||
) | const |
Find and return an entry data stream pointer if present.
otherwise return nullptr. If recursive, search parent dictionaries. If patternMatch, use regular expressions
Definition at line 706 of file dictionary.C.
References dictionary::lookupEntryPtr().
Referenced by coordinateSystem::coordinateSystem(), dynamicCodeContext::dynamicCodeContext(), dictionary::found(), dictionary::isDict(), dictionary::lookupEntry(), dictionary::lookupEntryPtr(), entry::New(), dictionary::optionalSubDict(), functionObjectList::read(), refinementSurfaces::refinementSurfaces(), dictionary::set(), shellSurfaces::shellSurfaces(), dictionary::subDict(), dictionary::subDictPtr(), dictionary::subOrEmptyDict(), dictionary::substituteKeyword(), Foam::debug::switchSet(), and solution::upgradeSolverDict().
Foam::entry * lookupEntryPtr | ( | const word & | keyword, |
bool | recursive, | ||
bool | patternMatch | ||
) |
Find and return an entry data stream pointer for manipulation.
if present otherwise return nullptr. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 745 of file dictionary.C.
References dictionary::lookupEntry(), and dictionary::lookupEntryPtr().
const Foam::entry & lookupEntry | ( | const word & | keyword, |
bool | recursive, | ||
bool | patternMatch | ||
) | const |
Find and return an entry data stream if present otherwise error.
If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 789 of file dictionary.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), dictionary::lookupEntryPtr(), and dictionaryName::name().
Referenced by lduMatrix::smoother::getName(), lduMatrix::preconditioner::getName(), dictionary::lookup(), dictionary::lookupEntryPtr(), lduMatrix::smoother::New(), and lduMatrix::preconditioner::New().
Foam::ITstream & lookup | ( | const word & | keyword, |
bool | recursive = false , |
||
bool | patternMatch = true |
||
) | const |
Find and return an entry data stream.
If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 812 of file dictionary.C.
References dictionary::lookupEntry(), dictionary::lookupScopedEntryPtr(), and entry::stream().
Referenced by activePressureForceBaffleVelocityFvPatchVectorField::activePressureForceBaffleVelocityFvPatchVectorField(), advectiveFvPatchField< Type >::advectiveFvPatchField(), bladeModel::bladeModel(), BreakupModel< Foam::SprayCloud< Foam::DSMCCloud > >::BreakupModel(), cellModel::cellModel(), motionSmootherAlgo::checkMesh(), coalCloudList::coalCloudList(), Constant< Type >::Constant(), molecule::constantProperties::constantProperties(), constantFilmThermo::Cp(), forces::createFileNames(), cuboid::cuboid(), cuttingPlane::cuttingPlane(), cylindrical::cylindrical(), constantFilmThermo::D(), fvSchemes::d2dt2Scheme(), DAC< CompType, ThermoType >::DAC(), fvSchemes::ddtScheme(), decompositionMethod::decompositionMethod(), forces::devTau(), dimensioned< vector >::dimensioned(), Foam::dimensionedConstants(), directions::directions(), argList::displayDoc(), fvSchemes::divScheme(), EulerCoordinateRotation::EulerCoordinateRotation(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), extrudePatchMesh::extrudePatchMesh(), Field< Foam::Vector2D >::Field(), fluxLimitedLangmuirHinshelwoodReactionRate::fluxLimitedLangmuirHinshelwoodReactionRate(), forceList::forceList(), FreeStream< CloudType >::FreeStream(), lduMatrix::smoother::getName(), lduMatrix::preconditioner::getName(), fvSchemes::gradScheme(), greyMeanSolid::greyMeanSolid(), constantFilmThermo::hl(), coordinateSystem::init(), absorptionCoeffs::initialise(), volFieldValue::initialise(), surfaceFieldValue::initialise(), liquidFilmThermo::initLiquid(), InjectionModel< CloudType >::InjectionModel(), InjectionModelList< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::InjectionModelList(), injectionModelList::injectionModelList(), fvSchemes::interpolationScheme(), ISAT< CompType, ThermoType >::ISAT(), constantFilmThermo::kappa(), laminarFlameSpeed::laminarFlameSpeed(), laminarThermophysicalTransportModel< BasicThermophysicalTransportModel >::laminarThermophysicalTransportModel(), fvSchemes::laplacianScheme(), layerParameters::layerParameters(), LESThermophysicalTransportModel< BasicThermophysicalTransportModel >::LESThermophysicalTransportModel(), Foam::MULES::limiterCorr(), liquidFilmThermo::liquidFilmThermo(), dictionary::lookupEntry(), dimensioned< vector >::lookupOrDefault(), lookupProfile::lookupProfile(), basicThermo::lookupThermo(), mappedPatchBase::mappedPatchBase(), mappedPatchFieldBase< Type >::mappedPatchFieldBase(), meanVelocityForce::meanVelocityForce(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), medialAxisMeshMover::move(), constantFilmThermo::mu(), forces::mu(), multiDirRefinement::multiDirRefinement(), NamedEnum< compressibleField, 8 >::names(), nastranSurfaceWriter::nastranSurfaceWriter(), combustionModel::New(), basicChemistryModel::New(), CorrectionLimitingMethod::New(), motionSolver::New(), scatterModel::New(), energyScalingFunction::New(), surfaceFilmModel::New(), generalizedNewtonianViscosityModel::New(), renumberMethod::New(), decompositionMethod::New(), profileModel::New(), sootModel::New(), ParticleStressModel::New(), extrudeModel::New(), absorptionEmissionModel::New(), filmRadiationModel::New(), DispersionModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::New(), filmThermoModel::New(), heatTransferModel::New(), engineMesh::New(), waveModel::New(), LESdelta::New(), tetherPotential::New(), interpolation< Foam::Vector >::New(), filmMomentumTransportModel::New(), TimeScaleModel::New(), AtomizationModel< Foam::SprayCloud< Foam::DSMCCloud > >::New(), PairModel< Foam::DSMCCloud >::New(), trimModel::New(), WallModel< Foam::DSMCCloud >::New(), BinaryCollisionModel< Foam::DSMCCloud< ParcelType > >::New(), WallInteractionModel< Foam::DSMCCloud< ParcelType > >::New(), InflowBoundaryModel< Foam::DSMCCloud< ParcelType > >::New(), surfaceWriter::New(), filmViscosityModel::New(), HeatTransferModel< Foam::ThermoCloud< CloudType > >::New(), solidBodyMotionFunction::New(), patchDistMethod::New(), CollisionModel< Foam::CollidingCloud< CloudType > >::New(), Function1< sphericalTensor >::New(), DevolatilisationModel< Foam::ReactingMultiphaseCloud< Foam::DSMCCloud > >::New(), phaseChangeModel::New(), pairPotential::New(), SurfaceReactionModel< Foam::ReactingMultiphaseCloud< Foam::DSMCCloud > >::New(), StochasticCollisionModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::New(), IsotropyModel< Foam::MPPICCloud< CloudType > >::New(), sixDoFRigidBodyMotionRestraint::New(), barotropicCompressibilityModel::New(), DampingModel< Foam::MPPICCloud< CloudType > >::New(), LESfilter::New(), laminarFlameSpeed::New(), BreakupModel< Foam::SprayCloud< Foam::DSMCCloud > >::New(), reactionRateFlameArea::New(), CompositionModel< Foam::ReactingCloud< Foam::DSMCCloud > >::New(), coordinateRotation::New(), PackingModel< Foam::MPPICCloud< CloudType > >::New(), viscosityModel::New(), integrationScheme::New(), AveragingMethod< Foam::Vector >::New(), sixDoFRigidBodyMotionConstraint::New(), ParticleForce< Foam::DSMCCloud >::New(), regionModelFunctionObject::New(), distributionModel::New(), laminarModel< BasicMomentumTransportModel >::New(), SRFModel::New(), polyMeshModifier::New(), PatchInteractionModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::New(), rigidBody::New(), solidProperties::New(), surfaceTensionModel::New(), rigidBodySolver::New(), restraint::New(), RASModel< phaseCompressibleMomentumTransportModel >::New(), PhaseChangeModel< Foam::ReactingCloud< Foam::DSMCCloud > >::New(), fieldValue::New(), liquidProperties::New(), dynamicFvMesh::New(), LESModel< BasicMomentumTransportModel >::New(), ODESolver::New(), sixDoFSolver::New(), SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::New(), radiationModel::New(), option::New(), sampledSet::New(), Reaction< ThermoType >::New(), cellZone::New(), pointZone::New(), lduMatrix::solver::New(), porosityModel::New(), joint::New(), LduMatrix< Type, DType, LUType >::solver::New(), coordinateSystem::New(), InjectionModel< CloudType >::New(), sampledSurface::New(), faceZone::New(), pointPatchField< vector >::New(), fvsPatchField< Type >::New(), fvPatchField< Type >::New(), polyPatch::New(), functionObject::New(), LduMatrix< Type, DType, LUType >::smoother::New(), lduMatrix::smoother::New(), LduMatrix< Type, DType, LUType >::preconditioner::New(), lduMatrix::preconditioner::New(), decomposedBlockData::numBlocks(), dlLibraryTable::open(), multivariateIndependentScheme< Type >::operator()(), axesRotation::operator=(), Foam::operator>>(), dictionary::operator[](), Pa::Pa(), argList::parse(), patchInternalField::patchInternalField(), plane::plane(), plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField(), Polynomial< Type >::Polynomial(), pressureControl::pressureControl(), UPstream::procNo(), constantFilmThermo::pv(), Ra::Ra(), RASThermophysicalTransportModel< BasicThermophysicalTransportModel >::RASThermophysicalTransportModel(), rawSurfaceWriter::rawSurfaceWriter(), Reaction< ThermoType >::Reaction(), HerschelBulkley::read(), powerLaw::read(), tolerances::read(), exponentialRepulsion::read(), lennardJones::read(), harmonicSpring::read(), restrainedHarmonicSpring::read(), anisotropicFilter::read(), pitchForkRing::read(), dampedCoulomb::read(), laplaceFilter::read(), randomise::read(), sigmoid::read(), doubleSigmoid::read(), scale::read(), azizChen::read(), relaxation::read(), thermalBaffle::read(), maitlandSmith::read(), FixedValueConstraint< Type >::read(), Casson::read(), writeDictionary::read(), CrossPowerLaw::read(), timeControl::read(), BirdCarreau::read(), stopAt::read(), fieldsExpression::read(), consumptionSpeed::read(), cloudSolution::read(), residuals::read(), timeActivatedFileUpdate::read(), removeRegisteredObject::read(), cloudInfo::read(), stopAtClockTime::read(), reactionRateFlameArea::read(), log::read(), patchProbes::read(), readFields::read(), surfaceInterpolate::read(), inhomogeneousMixture< ThermoType >::read(), sixDoFRigidBodyControl::read(), writeObjectsBase::read(), fieldCoordinateSystemTransform::read(), volRegion::read(), fieldValue::read(), egrMixture< ThermoType >::read(), interfaceHeight::read(), histogram::read(), writeObjects::read(), dimensioned< vector >::read(), cellSetOption::read(), fieldMinMax::read(), fieldValueDelta::read(), wallHeatTransferCoeff::read(), sampledSurfaces::read(), nearWallFields::read(), CodedSource< Type >::read(), forceCoeffs::read(), probes::read(), turbulenceFields::read(), porosityModel::read(), sampledSets::read(), regionSizeDistribution::read(), streamLine::read(), rotorDiskSource::read(), sixDoFRigidBodyMotion::read(), pressure::read(), forces::read(), solidificationMeltingSource::read(), fieldAverage::read(), fieldAverage::readAveragingProperties(), LduMatrix< Type, DType, LUType >::solver::readControl(), singleRegionCorrectorConvergenceControl::readCorrResidualControls(), constant::readDict(), dynamicRefineFvMesh::readDict(), Time::readDict(), DimensionedField< Type, Foam::pointMesh >::readField(), functionObjectList::readFunctionObject(), IOobject::readHeader(), mappedPatchBase::readListOrField(), ensightPart::reconstruct(), refinementParameters::refinementParameters(), refinementSurfaces::refinementSurfaces(), tolerances::relaxationFactor(), boundaryRegion::rename(), constantFilmThermo::rho(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver(), rigidBodyModel::rigidBodyModel(), rigidBodyMotion::rigidBodyMotion(), thermalBaffleFvPatchScalarField::rmap(), motionSmootherAlgo::scaleMesh(), fvSchemes::schemesDict(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaces::searchableSurfaces(), searchableSurfaceWithGaps::searchableSurfaceWithGaps(), seriesProfile::seriesProfile(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::setCdSigma(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::setPorosityCoefficient(), Foam::setRefCell(), cellSetOption::setSelection(), shellSurfaces::shellSurfaces(), constantFilmThermo::sigma(), slidingInterface::slidingInterface(), fvSchemes::snGradScheme(), tolerances::solverRelativeTolerance(), tolerances::solverTolerance(), sphere::sphere(), STARCDCoordinateRotation::STARCDCoordinateRotation(), dictionaryEntry::stream(), surfaceFeatures::surfaceFeatures(), surfacePatchIOList::surfacePatchIOList(), surfaceWriter::surfaceWriter(), surfaceZonesInfo::surfaceZonesInfo(), surfZoneIOList::surfZoneIOList(), Table< scalar >::Table(), constantFilmThermo::Tb(), ThermophysicalTransportModel< Foam::PhaseCompressibleMomentumTransportModel, typename BasePhaseModel::thermoModel >::ThermophysicalTransportModel(), thermoSingleLayer::thermoSingleLayer(), thirdBodyEfficiencies::thirdBodyEfficiencies(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), UniformDimensionedField< vector >::UniformDimensionedField(), uniformInterpolationTable< scalar >::uniformInterpolationTable(), Foam::unitSet(), dynamicRefineFvMesh::update(), constantFilmThermo::W(), WallLocalSpringSliderDashpot< CloudType >::WallLocalSpringSliderDashpot(), waveSuperposition::waveSuperposition(), wideBand::wideBand(), thermalBaffleFvPatchScalarField::write(), and medialAxisMeshMover::~medialAxisMeshMover().
Find and return a T,.
if not found throw a fatal error. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 33 of file dictionaryTemplates.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupOrDefault(), Foam::name(), entry::stream(), and T.
T lookupOrDefault | ( | const word & | keyword, |
const T & | deflt, | ||
bool | recursive = false , |
||
bool | patternMatch = true |
||
) | const |
Find and return a T,.
if not found return the given default value. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 57 of file dictionaryTemplates.C.
References Foam::endl(), IOInfoInFunction, dictionary::lookupOrAddDefault(), entry::stream(), and T.
Referenced by atmBoundaryLayerInletEpsilonFvPatchScalarField::atmBoundaryLayerInletEpsilonFvPatchScalarField(), atmBoundaryLayerInletKFvPatchScalarField::atmBoundaryLayerInletKFvPatchScalarField(), atmBoundaryLayerInletVelocityFvPatchVectorField::atmBoundaryLayerInletVelocityFvPatchVectorField(), subModelBase::defaultCoeffs(), EulerCoordinateRotation::EulerCoordinateRotation(), fieldAverageItem::fieldAverageItem(), fixedMeanOutletInletFvPatchField< Type >::fixedMeanOutletInletFvPatchField(), fluxLimitedLangmuirHinshelwoodReactionRate::fluxLimitedLangmuirHinshelwoodReactionRate(), freestreamFvPatchField< Type >::freestreamFvPatchField(), inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), Foam::MULES::limiter(), Foam::MULES::limiterCorr(), dictionary::lookup(), basicChemistryModel::New(), engineTime::New(), thermalBaffleModel::New(), GAMGAgglomeration::New(), Foam::operator>>(), argList::parse(), ReactionList< Foam::sutherlandTransport >::ReactionList(), nonOrthogonalSolutionControl::read(), Qdot::read(), pisoControl::read(), shearStress::read(), totalEnthalpy::read(), fluidSolutionControl::read(), blendingFactor::read(), CourantNo::read(), pimpleNoLoopControl::read(), timeControl::read(), BirdCarreau::read(), cloudSolution::read(), rigidBodyState::read(), scalarTransport::read(), sixDoFRigidBodyState::read(), log::read(), targetCoeffTrim::read(), wallHeatFlux::read(), writeObjectsBase::read(), wallShearStress::read(), histogram::read(), age::read(), fieldMinMax::read(), wallHeatTransferCoeff::read(), rigidBodyMotion::read(), CodedSource< Type >::read(), phaseScalarTransport::read(), functionObjectList::read(), turbulenceFields::read(), comfort::read(), MRFZone::read(), functionObject::read(), streamLine::read(), sixDoFRigidBodyMotion::read(), pressure::read(), forces::read(), fieldAverage::read(), temperatureDependent::readDict(), refinementSurfaces::refinementSurfaces(), slidingInterface::setTolerances(), fvMatrix< Type >::solve(), SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField(), STARCDCoordinateRotation::STARCDCoordinateRotation(), transferModelList::transferModelList(), turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::turbulentMixingLengthDissipationRateInletFvPatchScalarField(), turbulentMixingLengthFrequencyInletFvPatchScalarField::turbulentMixingLengthFrequencyInletFvPatchScalarField(), Foam::unitSet(), dynamicRefineFvMesh::update(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs(), turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs(), and medialAxisMeshMover::~medialAxisMeshMover().
T lookupOrAddDefault | ( | const word & | keyword, |
const T & | deflt, | ||
bool | recursive = false , |
||
bool | patternMatch = true |
||
) |
Find and return a T, if not found return the given.
default value, and add to dictionary. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 87 of file dictionaryTemplates.C.
References Foam::add(), Foam::endl(), IOInfoInFunction, dictionary::readIfPresent(), and entry::stream().
Referenced by Foam::debug::debugSwitch(), Foam::debug::floatOptimisationSwitch(), Foam::debug::infoSwitch(), dimensioned< vector >::lookupOrAddToDict(), Switch::lookupOrAddToDict(), dictionary::lookupOrDefault(), and Foam::debug::optimisationSwitch().
bool readIfPresent | ( | const word & | keyword, |
T & | val, | ||
bool | recursive = false , |
||
bool | patternMatch = true |
||
) | const |
Find an entry if present, and assign to T.
Returns true if the entry was found. If recursive, search parent dictionaries. If patternMatch, use regular expressions.
Definition at line 118 of file dictionaryTemplates.C.
References Foam::endl(), IOInfoInFunction, and entry::stream().
Referenced by advectiveFvPatchField< Type >::advectiveFvPatchField(), motionSmootherAlgo::checkMesh(), fvMotionSolverEngineMesh::fvMotionSolverEngineMesh(), subModelBase::getBaseProperty(), subModelBase::getModelProperty(), kinematicSingleLayer::info(), coordinateSystem::init(), volFieldValue::initialise(), surfaceFieldValue::initialise(), layeredEngineMesh::layeredEngineMesh(), layerParameters::layerParameters(), linearNormal::linearNormal(), dictionary::lookupOrAddDefault(), polyPatch::New(), axesRotation::operator=(), patchIdentifier::patchIdentifier(), plane::plane(), porosityModel::porosityModel(), Foam::preservePatchTypes(), profileModel::profileModel(), cubeRootVolDelta::read(), maxDeltaxyz::read(), IDDESDelta::read(), vanDriestDelta::read(), PrandtlDelta::read(), time::read(), cloudSolution::read(), scalarTransport::read(), stopAtFile::read(), fvDOM::read(), systemCall::read(), interfaceHeight::read(), cellSetOption::read(), phaseScalarTransport::read(), probes::read(), porosityModel::read(), volumeFractionSource::read(), regionSizeDistribution::read(), streamLine::read(), pressure::read(), forces::read(), solidificationMeltingSource::read(), fieldAverage::read(), option::read(), Time::readDict(), IOobject::readHeader(), solidProperties::readIfPresent(), thermophysicalProperties::readIfPresent(), Switch::readIfPresent(), dimensioned< vector >::readIfPresent(), liquidProperties::readIfPresent(), ensightPart::reconstruct(), refinementSurfaces::refinementSurfaces(), sampledSurface::sampledSurface(), searchableSurfaces::searchableSurfaces(), Time::setControls(), Time::setTime(), fvMatrix< Type >::solve(), surfaceZonesInfo::surfaceZonesInfo(), surfZoneIdentifier::surfZoneIdentifier(), surfZoneIOList::surfZoneIOList(), thermoSingleLayer::thermoSingleLayer(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), triSurfaceMesh::triSurfaceMesh(), triSurfaceSearch::triSurfaceSearch(), and uniformInterpolationTable< scalar >::uniformInterpolationTable().
const Foam::entry * lookupScopedEntryPtr | ( | const word & | keyword, |
bool | recursive, | ||
bool | patternMatch | ||
) | const |
Find and return an entry data stream pointer if present.
otherwise return nullptr. Allows scoping using '/' with special handling for '!' and '..'.
Definition at line 823 of file dictionary.C.
References inputSyntaxEntry::dot(), and inputSyntaxEntry::slash().
Referenced by Foam::stringOps::getVariable(), Foam::stringOps::inplaceExpand(), dictionary::lookup(), entry::New(), Foam::blockMeshTools::read(), and dictionary::substituteScopedKeyword().
bool isDict | ( | const word & | keyword | ) | const |
Check if entry is a sub-dictionary.
Definition at line 888 of file dictionary.C.
References entry::isDict(), and dictionary::lookupEntryPtr().
Referenced by liquidMixtureProperties::liquidMixtureProperties(), basicThermo::lookupThermo(), basicChemistryModel::New(), thermophysicalFunction::New(), Function1< sphericalTensor >::New(), surfaceTensionModel::New(), constant::readDict(), functionObjectList::readFunctionObject(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaces::searchableSurfaces(), solidMixtureProperties::solidMixtureProperties(), and thermophysicalPropertiesSelector< ThermophysicalProperties >::thermophysicalPropertiesSelector().
const Foam::dictionary * subDictPtr | ( | const word & | keyword | ) | const |
Find and return a sub-dictionary pointer if present.
otherwise return nullptr.
Definition at line 904 of file dictionary.C.
References entry::dict(), and dictionary::lookupEntryPtr().
Referenced by namedBlock::namedBlock(), namedVertex::namedVertex(), blockVertex::read(), regionModel::read(), blockVertex::write(), and blockDescriptor::write().
Foam::dictionary * subDictPtr | ( | const word & | keyword | ) |
Find and return a sub-dictionary pointer if present.
otherwise return nullptr.
Definition at line 919 of file dictionary.C.
References entry::dict(), and dictionary::lookupEntryPtr().
const Foam::dictionary & subDict | ( | const word & | keyword | ) | const |
Find and return a sub-dictionary.
Definition at line 934 of file dictionary.C.
References entry::dict(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), and dictionaryName::name().
Referenced by sixDoFRigidBodyMotion::addConstraints(), snappyLayerDriver::addLayers(), Foam::AddPatchFields(), sixDoFRigidBodyMotion::addRestraints(), CloudFunctionObjectList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::CloudFunctionObjectList(), forces::createFileNames(), DAC< CompType, ThermoType >::DAC(), decompositionMethod::decompositionMethod(), multiRegionSolutionControl::dict(), singleRegionSolutionControl::dict(), Foam::dimensionedConstants(), directions::directions(), argList::displayDoc(), fvMeshDistribute::distribute(), DRG< CompType, ThermoType >::DRG(), DRGEP< CompType, ThermoType >::DRGEP(), includeEntry::execute(), includeEtcEntry::execute(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), subModelBase::getBaseProperty(), subModelBase::getModelProperty(), coordinateSystem::init(), cloudSolution::integrationSchemes(), cloudSolution::interpolationSchemes(), laminarThermophysicalTransportModel< BasicThermophysicalTransportModel >::laminarThermophysicalTransportModel(), layerParameters::layerParameters(), LESThermophysicalTransportModel< BasicThermophysicalTransportModel >::LESThermophysicalTransportModel(), liquidMixtureProperties::liquidMixtureProperties(), Foam::listSwitches(), basicThermo::lookupThermo(), NamedEnum< compressibleField, 8 >::names(), basicChemistryModel::New(), thermophysicalFunction::New(), Function1< sphericalTensor >::New(), chemistryTabulationMethod< ReactionThermo, ThermoType >::New(), chemistryReductionMethod< ReactionThermo, ThermoType >::New(), regionModelFunctionObject::New(), laminarModel< BasicMomentumTransportModel >::New(), RASModel< phaseCompressibleMomentumTransportModel >::New(), LESModel< BasicMomentumTransportModel >::New(), functionObjectList::New(), coordinateSystem::New(), optionList::optionsDict(), PFA< CompType, ThermoType >::PFA(), plane::plane(), Foam::preservePatchTypes(), fvMeshDistribute::printFieldInfo(), profileModelList::profileModelList(), RASThermophysicalTransportModel< BasicThermophysicalTransportModel >::RASThermophysicalTransportModel(), ReactionList< Foam::sutherlandTransport >::ReactionList(), tolerances::read(), exponentialRepulsion::read(), lennardJones::read(), harmonicSpring::read(), pitchForkRing::read(), restrainedHarmonicSpring::read(), dampedCoulomb::read(), sigmoid::read(), doubleSigmoid::read(), azizChen::read(), maitlandSmith::read(), FixedValueConstraint< Type >::read(), porosityModelList::read(), pureMixture< ThermoType >::read(), singleComponentMixture< ThermoType >::read(), cloudSolution::read(), homogeneousMixture< ThermoType >::read(), scalarTransport::read(), multiComponentMixture< ThermoType >::read(), inhomogeneousMixture< ThermoType >::read(), veryInhomogeneousMixture< ThermoType >::read(), egrMixture< ThermoType >::read(), age::read(), MRFZoneList::read(), fieldValueDelta::read(), phaseScalarTransport::read(), semiImplicitSource::read(), streamLine::read(), forces::read(), fieldAverage::readAveragingProperties(), constant::readDict(), Time::readDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), functionObjectList::readFunctionObject(), liquidProperties::readIfPresent(), optionList::readOptions(), refinementSurfaces::refinementSurfaces(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyMeshMotionSolver::rigidBodyMeshMotionSolver(), rigidBodyModel::rigidBodyModel(), fvSchemes::schemesDict(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaces::searchableSurfaces(), subModelBase::setBaseProperty(), subModelBase::setModelProperty(), surfaceTensionModel::sigmaDict(), SLGThermo::SLGThermo(), solidMixtureProperties::solidMixtureProperties(), displacementLayeredMotionMotionSolver::solve(), cloudSolution::sourceTermDict(), thermophysicalPropertiesSelector< ThermophysicalProperties >::thermophysicalPropertiesSelector(), Foam::unitSet(), wideBand::wideBand(), thermalBaffleFvPatchScalarField::write(), and fieldAverage::writeAveragingProperties().
Foam::dictionary & subDict | ( | const word & | keyword | ) |
Find and return a sub-dictionary for manipulation.
Definition at line 951 of file dictionary.C.
References entry::dict(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), dictionaryName::name(), and dictionary::subOrEmptyDict().
Foam::dictionary subOrEmptyDict | ( | const word & | keyword, |
const bool | mustRead = false |
||
) | const |
Find and return a sub-dictionary as a copy, or.
return an empty dictionary if the sub-dictionary does not exist
Definition at line 969 of file dictionary.C.
References entry::dict(), dictionary::dictionary(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), dictionaryName::name(), and dictionary::optionalSubDict().
Referenced by blockDescriptor::blockDescriptor(), radiationModel::read(), and dictionary::subDict().
const Foam::dictionary & optionalSubDict | ( | const word & | keyword | ) | const |
Find and return a sub-dictionary if found.
otherwise return this dictionary
Definition at line 1001 of file dictionary.C.
References entry::dict(), and dictionary::lookupEntryPtr().
Referenced by greyMeanSolid::greyMeanSolid(), liquidFilmThermo::initLiquid(), solidProperties::New(), sampledSet::New(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), HerschelBulkley::read(), powerLaw::read(), anisotropicFilter::read(), laplaceFilter::read(), cubeRootVolDelta::read(), strainRateFunction::read(), maxDeltaxyz::read(), vanDriestDelta::read(), IDDESDelta::read(), relaxation::read(), Casson::read(), CrossPowerLaw::read(), trimModel::read(), BirdCarreau::read(), PrandtlDelta::read(), solidBodyMotionFunction::read(), porosityModel::read(), smoothDelta::read(), option::read(), dictionary::subOrEmptyDict(), and dynamicRefineFvMesh::update().
Foam::wordList toc | ( | ) | const |
Return the table of contents.
Definition at line 1018 of file dictionary.C.
References forAllConstIter(), and dictionary::keys().
Referenced by CloudFunctionObjectList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::CloudFunctionObjectList(), DAC< CompType, ThermoType >::DAC(), removeEntry::execute(), FreeStream< CloudType >::FreeStream(), InjectionModelList< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::InjectionModelList(), liquidMixtureProperties::liquidMixtureProperties(), ParticleForceList< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::ParticleForceList(), profileModelList::profileModelList(), refinementSurfaces::refinementSurfaces(), regionModelFunctionObjectList::regionModelFunctionObjectList(), shellSurfaces::shellSurfaces(), and solidMixtureProperties::solidMixtureProperties().
Foam::wordList sortedToc | ( | ) | const |
Return the sorted table of contents.
Definition at line 1032 of file dictionary.C.
Referenced by Foam::listSwitches().
Foam::List< Foam::keyType > keys | ( | bool | patterns = false | ) | const |
Return the list of available keys or patterns.
Definition at line 1038 of file dictionary.C.
References forAllConstIter(), and List< T >::setSize().
Referenced by dictionary::toc().
bool substituteKeyword | ( | const word & | keyword | ) |
Substitute the given keyword prepended by '$' with the.
corresponding sub-dictionary entries
Definition at line 122 of file dictionaryIO.C.
References dictionary::add(), forAllConstIter(), and dictionary::lookupEntryPtr().
bool substituteScopedKeyword | ( | const word & | keyword | ) |
Substitute the given scoped keyword prepended by '$' with the.
corresponding sub-dictionary entries
Definition at line 864 of file dictionary.C.
References dictionary::add(), forAllConstIter(), and dictionary::lookupScopedEntryPtr().
Referenced by entry::New().
bool add | ( | entry * | entryPtr, |
bool | mergeEntry = false |
||
) |
Add a new entry.
With the merge option, dictionaries are interwoven and primitive entries are overwritten
Definition at line 1056 of file dictionary.C.
References entry::dict(), entry::disableFunctionEntries, Foam::endl(), IOWarningInFunction, entry::isDict(), keyType::isPattern(), entry::keyword(), dictionaryName::name(), entry::name(), and UILList< LListBase, T >::remove().
Referenced by error::abort(), IOerror::abort(), dictionary::add(), constAnIsoSolidTransport< Thermo >::constAnIsoSolidTransport(), constIsoSolidTransport< Thermo >::constIsoSolidTransport(), constTransport< Thermo >::constTransport(), coordinateSystem::dict(), Foam::dimensionedConstants(), includeEntry::execute(), includeEtcEntry::execute(), error::exit(), IOerror::exit(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), dictionary::merge(), namedBlock::namedBlock(), namedVertex::namedVertex(), basicChemistryModel::New(), entry::New(), functionObjectList::New(), error::operator()(), dictionary::operator+=(), cellTable::operator=(), dictionary::operator=(), dictionary::operator|=(), argList::parse(), Foam::preservePatchTypes(), functionObjectList::readFunctionObject(), IOerror::SafeFatalIOError(), dictionary::set(), subModelBase::setBaseProperty(), fvSchemes::setFluxRequired(), subModelBase::setModelProperty(), sixDoFRigidBodyMotionSolver::solve(), rigidBodyMeshMotionSolver::solve(), rigidBodyMeshMotion::solve(), GAMGSolver::solve(), dictionary::substituteKeyword(), dictionary::substituteScopedKeyword(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), solution::upgradeSolverDict(), jobInfo::write(), specie::write(), rigidBodyModelState::write(), sixDoFRigidBodyMotionState::write(), rhoConst< Specie >::write(), sutherlandTransport< Thermo >::write(), tabulatedTransport< Thermo >::write(), WLFTransport< Thermo >::write(), hConstThermo< EquationOfState >::write(), eConstThermo< EquationOfState >::write(), incompressiblePerfectGas< Specie >::write(), polynomialTransport< Thermo, PolySize >::write(), hTabulatedThermo< EquationOfState >::write(), linear< Type >::write(), icoTabulated< Specie >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), perfectFluid< Specie >::write(), uniformInterpolationTable< scalar >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), logPolynomialTransport< Thermo, PolySize >::write(), janafThermo< EquationOfState >::write(), icoPolynomial< Specie, PolySize >::write(), rPolynomial< Specie >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), ePolynomialThermo< EquationOfState, PolySize >::write(), fieldAverage::writeAveragingProperties(), surfaceFeatures::writeDict(), meanVelocityForce::writeProps(), and Time::writeTimeDict().
void add | ( | const entry & | e, |
bool | mergeEntry = false |
||
) |
Add an entry.
With the merge option, dictionaries are interwoven and primitive entries are overwritten
Definition at line 1148 of file dictionary.C.
References dictionary::add(), and entry::clone().
Add a word entry.
optionally overwrite an existing entry
Definition at line 1154 of file dictionary.C.
References dictionary::add().
Add a string entry.
optionally overwrite an existing entry
Definition at line 1161 of file dictionary.C.
References dictionary::add().
Add a label entry.
optionally overwrite an existing entry
Definition at line 1171 of file dictionary.C.
References dictionary::add().
void add | ( | const keyType & | k, |
const scalar | s, | ||
bool | overwrite = false |
||
) |
Add a scalar entry.
optionally overwrite an existing entry
Definition at line 1177 of file dictionary.C.
References dictionary::add().
void add | ( | const keyType & | k, |
const dictionary & | d, | ||
bool | mergeEntry = false |
||
) |
Add a dictionary entry.
optionally merge with an existing sub-dictionary
Definition at line 1184 of file dictionary.C.
References dictionary::add().
Add a T entry.
optionally overwrite an existing entry
Definition at line 148 of file dictionaryTemplates.C.
References dictionary::add().
void set | ( | entry * | entryPtr | ) |
Assign a new entry, overwrite any existing entry.
Definition at line 1194 of file dictionary.C.
References dictionary::add(), dictionary::clear(), entry::dict(), entry::isDict(), entry::keyword(), and dictionary::lookupEntryPtr().
Referenced by meshRefinement::addMeshedPatch(), distributedTriSurfaceMesh::distribute(), extrudePatchMesh::extrudePatchMesh(), multiSolidBodyMotionSolver::multiSolidBodyMotionSolver(), polyMesh::polyMesh(), functionObjectList::readFunctionObject(), CodedSource< Type >::redirectFvOption(), boundaryRegion::rename(), thermalBaffleFvPatchScalarField::rmap(), structuredDecomp::structuredDecomp(), solution::upgradeSolverDict(), and codedFunctionObject::~codedFunctionObject().
void set | ( | const entry & | e | ) |
Assign a new entry, overwrite any existing entry.
Definition at line 1207 of file dictionary.C.
References entry::clone().
void set | ( | const keyType & | k, |
const dictionary & | d | ||
) |
Assign a dictionary entry, overwrite any existing entry.
Definition at line 1213 of file dictionary.C.
Assign a T entry, overwrite any existing entry.
Definition at line 155 of file dictionaryTemplates.C.
References Foam::writeEntry().
bool remove | ( | const word & | Keyword | ) |
Remove an entry specified by keyword.
Definition at line 1219 of file dictionary.C.
References dictionary::changeKeyword(), and UILList< LListBase, T >::remove().
Referenced by removeEntry::execute(), and IOerror::SafeFatalIOError().
bool changeKeyword | ( | const keyType & | oldKeyword, |
const keyType & | newKeyword, | ||
bool | forceOverwrite = false |
||
) |
Change the keyword for an entry,.
optionally forcing overwrite of an existing entry
Definition at line 1252 of file dictionary.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOWarningInFunction, keyType::isPattern(), and dictionaryName::name().
Referenced by dictionary::remove().
bool merge | ( | const dictionary & | dict | ) |
Merge entries from the given dictionary.
Also merge sub-dictionaries as required.
Definition at line 1343 of file dictionary.C.
References Foam::abort(), dictionary::add(), dictionary::clone(), dict, Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().
Referenced by snappyLayerDriver::addLayers(), Foam::listSwitches(), functionObjectList::New(), Time::readDict(), and functionObjectList::readFunctionObject().
void clear | ( | ) |
Clear the dictionary.
Definition at line 1388 of file dictionary.C.
References ILList< LListBase, T >::clear().
Referenced by includeEntry::execute(), includeEtcEntry::execute(), entry::New(), dictionary::operator=(), Foam::operator>>(), strainRateFunction::read(), and dictionary::set().
void transfer | ( | dictionary & | dict | ) |
Transfer the contents of the argument and annul the argument.
Definition at line 1397 of file dictionary.C.
References dictionaryName::name(), and ILList< LListBase, T >::transfer().
Referenced by Foam::operator>>().
bool read | ( | Istream & | is, |
const bool | keepHeader = false |
||
) |
Read dictionary from Istream, optionally keeping the header.
Definition at line 77 of file dictionaryIO.C.
References IOstream::bad(), token::BEGIN_BLOCK, Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOobject::foamFile, IOstream::good(), InfoInFunction, dictionaryName::name(), entry::New(), and Istream::putBack().
Referenced by dictionary::dictionary(), includeIfPresentEntry::execute(), includeEntry::execute(), includeEtcEntry::execute(), functionEntry::insert(), Foam::operator>>(), vanDriestDelta::read(), PrandtlDelta::read(), and smoothDelta::read().
void write | ( | Ostream & | os, |
const bool | subDict = true |
||
) | const |
Write dictionary, normally with sub-dictionary formatting.
Definition at line 174 of file dictionaryIO.C.
References token::BEGIN_BLOCK, Foam::decrIndent(), Foam::e, token::END_BLOCK, Foam::endl(), forAllConstIter(), IOstream::good(), Foam::incrIndent(), Foam::indent(), UILList< LListBase, T >::last(), dictionaryName::name(), Foam::nl, dictionary::null, dictionary::parent(), and WarningInFunction.
Referenced by Foam::operator<<(), dictionary::tokens(), dictionaryListEntry::write(), dictionaryEntry::write(), fieldDictionary::writeData(), baseIOdictionary::writeData(), option::writeData(), surfaceFeatures::writeDict(), and jobInfo::~jobInfo().
Foam::ITstream & operator[] | ( | const word & | keyword | ) | const |
Find and return entry.
Definition at line 1412 of file dictionary.C.
References dictionary::lookup().
void operator= | ( | const dictionary & | rhs | ) |
Definition at line 1418 of file dictionary.C.
References Foam::abort(), dictionary::add(), dictionary::clear(), dictionary::clone(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().
Referenced by dictionary::dictionary(), IOdictionary::IOdictionary(), localIOdictionary::localIOdictionary(), baseIOdictionary::operator=(), and unwatchedIOdictionary::unwatchedIOdictionary().
void operator= | ( | dictionary && | rhs | ) |
Definition at line 1441 of file dictionary.C.
References Foam::abort(), Foam::FatalIOError, FatalIOErrorInFunction, dictionaryName::name(), ILList< LListBase, T >::operator=(), and dictionaryName::operator=().
void operator+= | ( | const dictionary & | rhs | ) |
Include entries from the given dictionary.
Warn, but do not overwrite existing entries.
Definition at line 1459 of file dictionary.C.
References Foam::abort(), dictionary::add(), dictionary::clone(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().
void operator|= | ( | const dictionary & | rhs | ) |
Conditionally include entries from the given dictionary.
Do not overwrite existing entries.
Definition at line 1476 of file dictionary.C.
References Foam::abort(), dictionary::add(), dictionary::clone(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), dictionary::found(), and dictionaryName::name().
void operator<<= | ( | const dictionary & | rhs | ) |
Unconditionally include entries from the given dictionary.
Overwrite existing entries.
Definition at line 1496 of file dictionary.C.
References Foam::abort(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().
|
friend |
Declare friendship with the entry class for IO.
Definition at line 233 of file dictionary.H.
|
friend |
Read dictionary from Istream.
|
friend |
Write dictionary to Ostream.
|
static |
Null dictionary.
Definition at line 241 of file dictionary.H.
Referenced by cellModel::cellModel(), entry::clone(), Fourier< BasicThermophysicalTransportModel >::coeffDict(), Stokes< BasicMomentumTransportModel >::coeffDict(), primitiveEntry::dict(), Foam::dimensionedConstants(), meanVelocityForce::meanVelocityForce(), entry::New(), functionObjectList::New(), lduMatrix::preconditioner::New(), motionSolver::iNew::operator()(), phase::iNew::operator()(), sizeGroup::iNew::operator()(), Foam::operator>>(), phaseProperties::phaseProperties(), primitiveEntry::primitiveEntry(), functionObjectList::readFunctionObject(), and dictionary::write().