Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
dictionary Class Reference

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...

Inheritance diagram for dictionary:
Inheritance graph
[legend]
Collaboration diagram for dictionary:
Collaboration graph
[legend]

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 &)
 Construct top-level dictionary from Istream,. More...
 
 dictionary (Istream &, const bool keepHeader)
 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, const Xfer< dictionary > &)
 Construct by transferring parameter contents given parent dictionary. More...
 
 dictionary (const Xfer< dictionary > &)
 Construct top-level dictionary by transferring parameter contents. More...
 
autoPtr< dictionaryclone () const
 Construct and return clone. More...
 
virtual ~dictionary ()
 Destructor. More...
 
const dictionaryparent () const
 Return the parent dictionary. More...
 
const dictionarytopDict () 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 entrylookupEntryPtr (const word &, bool recursive, bool patternMatch) const
 Find and return an entry data stream pointer if present. More...
 
entrylookupEntryPtr (const word &, bool recursive, bool patternMatch)
 Find and return an entry data stream pointer for manipulation. More...
 
const entrylookupEntry (const word &, bool recursive, bool patternMatch) const
 Find and return an entry data stream if present otherwise error. More...
 
ITstreamlookup (const word &, bool recursive=false, bool patternMatch=true) const
 Find and return an entry data stream. 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 entrylookupScopedEntryPtr (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 dictionarysubDictPtr (const word &) const
 Find and return a sub-dictionary pointer if present. More...
 
const dictionarysubDict (const word &) const
 Find and return a sub-dictionary. More...
 
dictionarysubDict (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...
 
wordList toc () const
 Return the table of contents. More...
 
wordList sortedToc () const
 Return the sorted table of contents. More...
 
List< keyTypekeys (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...
 
Xfer< dictionaryxfer ()
 Transfer contents to the Xfer container. More...
 
bool read (Istream &)
 Read dictionary from Istream. More...
 
bool read (Istream &, const bool keepHeader)
 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...
 
ITstreamoperator[] (const word &) const
 Find and return entry. More...
 
void operator= (const 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...
 
const fileNamename () const
 Return the dictionary name. More...
 
fileNamename ()
 Return the dictionary name. More...
 
const word dictName () const
 Return the local dictionary name (final part of scoped name) More...
 
- Public Member Functions inherited from IDLList< entry >
 IDLList ()
 Null construct. More...
 
 IDLList (const entry &a)
 Construct given initial T. More...
 
 IDLList (Istream &is, const INew &inewt)
 Construct from Istream using given Istream constructor class. More...
 
 IDLList (Istream &is)
 Construct from Istream. More...
 
 IDLList (const IDLList< entry > &idll, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone. More...
 
- Public Member Functions inherited from ILList< DLListBase, entry >
 ILList ()
 Null construct. More...
 
 ILList (entry *a)
 Construct given initial T. More...
 
 ILList (Istream &)
 Construct from Istream. More...
 
 ILList (const ILList< DLListBase, entry > &)
 Construct as copy. More...
 
 ILList (const ILList< DLListBase, entry > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone. More...
 
 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 (entry *p)
 Remove the specified element from the list and delete it. More...
 
void clear ()
 Clear the contents of the list. More...
 
void transfer (ILList< DLListBase, entry > &)
 Transfer the contents of the argument into this List. More...
 
void operator= (const ILList< DLListBase, entry > &)
 
- Public Member Functions inherited from UILList< DLListBase, entry >
 UILList ()
 Null construct. More...
 
 UILList (entry *a)
 Construct given initial T. More...
 
 UILList (const UILList< DLListBase, entry > &)
 Construct as copy. More...
 
entryfirst ()
 Return the first entry. More...
 
const entryfirst () const
 Return the first entry. More...
 
entrylast ()
 Return the last entry. More...
 
const entrylast () const
 Return the last entry. More...
 
entryremoveHead ()
 Remove and return head. More...
 
entryremove (entry *p)
 Remove and return element. More...
 
entryremove (iterator &it)
 Remove and return specified by iterator. More...
 
void operator= (const UILList< DLListBase, entry > &)
 
iterator begin ()
 
const_iterator begin () const
 
const iteratorend ()
 
const const_iteratorend () const
 
const_iterator cbegin () const
 
const const_iteratorcend () const
 
const_reverse_iterator crbegin () const
 
const const_reverse_iteratorcrend () const
 
const_reverse_iterator rbegin () const
 
const const_reverse_iteratorrend () const
 
bool operator== (const UILList< DLListBase, entry > &) const
 Equality operation on ULists of the same type. More...
 
bool operator!= (const UILList< DLListBase, entry > &) const
 The opposite of the equality operation. Takes linear time. More...
 
- Public Member Functions inherited from DLListBase
 DLListBase ()
 Null construct. More...
 
 DLListBase (link *)
 Construct given initial entry. More...
 
 ~DLListBase ()
 Destructor. More...
 
label size () const
 Return number of elements in list. More...
 
bool empty () const
 Return true if the list is empty. More...
 
linkfirst ()
 Return first entry. More...
 
const linkfirst () const
 Return const access to first entry. More...
 
linklast ()
 Return last entry. More...
 
const linklast () const
 Return const access to last entry. More...
 
void insert (link *)
 Add at head of list. More...
 
void append (link *)
 Add at tail of list. More...
 
bool swapUp (link *)
 Swap this element with the one above unless it is at the top. More...
 
bool swapDown (link *)
 Swap this element with the one below unless it is at the bottom. More...
 
linkremoveHead ()
 Remove and return head. More...
 
linkremove (link *)
 Remove and return element. More...
 
linkremove (iterator &)
 
linkreplace (link *oldLink, link *newLink)
 Replace oldLink with newLink and return element. More...
 
linkreplace (iterator &oldIter, link *newLink)
 Replace oldIter with newLink and return element. More...
 
void clear ()
 Clear the list. More...
 
void transfer (DLListBase &)
 Transfer the contents of the argument into this List. More...
 
iterator begin ()
 
const iteratorend ()
 
const_iterator cbegin () const
 
const const_iteratorcend () const
 
const_iterator begin () const
 
const const_iteratorend () const
 
const_reverse_iterator crbegin () const
 
const const_reverse_iteratorcrend () const
 
const_reverse_iterator rbegin () const
 
const const_reverse_iteratorrend () const
 

Static Public Member Functions

static autoPtr< dictionaryNew (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...
 
Istreamoperator>> (Istream &, dictionary &)
 Read dictionary from Istream. More...
 
Ostreamoperator<< (Ostream &, const dictionary &)
 Write dictionary to Ostream. More...
 

Additional Inherited Members

- Public Types inherited from UILList< DLListBase, entry >
typedef entry value_type
 Type of values the DLList contains. More...
 
typedef entryreference
 Type that can be used for storing into DLList::value_type. More...
 
typedef const entryconst_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 DLListBase::iterator LListBase_iterator
 
typedef DLListBase::const_iterator LListBase_const_iterator
 

Detailed Description

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:

- exact match

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.

Source files

Definition at line 137 of file dictionary.H.

Constructor & Destructor Documentation

Construct top-level dictionary null.

Definition at line 113 of file dictionary.C.

Referenced by dictionary::clone(), data::data(), dictionary::dictionary(), dictionary::New(), and dictionary::subOrEmptyDict().

Here is the caller graph for this function:

dictionary ( const fileName name)

Construct top-level empty dictionary with given name.

Definition at line 119 of file dictionary.C.

References dictionary::dictionary().

Here is the call graph for this function:

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::read().

Here is the call graph for this function:

dictionary ( Istream is)

Construct top-level dictionary from Istream,.

reading entries until EOF

Definition at line 47 of file dictionaryIO.C.

References inputModeEntry::clear(), and dictionary::read().

Here is the call graph for this function:

dictionary ( Istream is,
const bool  keepHeader 
)

Construct top-level dictionary from Istream,.

reading entries until EOF, optionally keeping the header

Definition at line 59 of file dictionaryIO.C.

References inputModeEntry::clear(), and dictionary::read().

Here is the call graph for this function:

dictionary ( const dictionary parentDict,
const dictionary dict 
)

Construct as copy given the parent dictionary.

Definition at line 127 of file dictionary.C.

References dictionary::dictionary(), and forAllIter.

Here is the call graph for this function:

dictionary ( const dictionary dict)

Construct top-level dictionary as copy.

Definition at line 153 of file dictionary.C.

References dictionary::dictionary(), and forAllIter.

Here is the call graph for this function:

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 178 of file dictionary.C.

References dictionary::dictionary(), and dictionary::operator=().

Here is the call graph for this function:

dictionary ( const dictionary parentDict,
const Xfer< dictionary > &  dict 
)

Construct by transferring parameter contents given parent dictionary.

Definition at line 192 of file dictionary.C.

References dict, dictionary::dictionary(), dictionaryName::name(), and dictionary::transfer().

Here is the call graph for this function:

dictionary ( const Xfer< dictionary > &  dict)

Construct top-level dictionary by transferring parameter contents.

Definition at line 205 of file dictionary.C.

References dict, and dictionary::transfer().

Here is the call graph for this function:

~dictionary ( )
virtual

Destructor.

Definition at line 223 of file dictionary.C.

Member Function Documentation

ClassName ( "dictionary"  )
Foam::autoPtr< Foam::dictionary > clone ( ) const

Construct and return clone.

Definition at line 215 of file dictionary.C.

References dictionary::dictionary().

Referenced by dictionary::merge(), dictionary::operator+=(), dictionary::operator=(), dictionary::operator|=(), Foam::preservePatchTypes(), and refinementSurfaces::refinementSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::autoPtr< Foam::dictionary > New ( Istream is)
static

Construct top-level dictionary on freestore from Istream.

Definition at line 73 of file dictionaryIO.C.

References dictionary::dictionary().

Here is the call graph for this function:

const dictionary& parent ( ) const
inline

Return the parent dictionary.

Definition at line 251 of file dictionary.H.

References Foam::add(), clear(), found, lookup(), Foam::operator+(), Foam::operator<<(), Foam::operator>>(), Foam::operator|(), Foam::read(), Foam::T(), and write().

Referenced by cylindrical::cylindrical(), dictionary::topDict(), and dictionary::write().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::dictionary & topDict ( ) const

Return the top of the tree.

Definition at line 231 of file dictionary.C.

References dictionaryName::name(), p, dictionary::parent(), and dictionary::topDict().

Referenced by dictionary::topDict().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label startLineNumber ( ) const

Return line number of first token in dictionary.

Definition at line 246 of file dictionary.C.

References UILList< DLListBase, entry >::first(), DLListBase::size(), and entry::startLineNumber().

Referenced by codedBase::updateLibrary().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label endLineNumber ( ) const

Return line number of last token in dictionary.

Definition at line 259 of file dictionary.C.

References entry::endLineNumber(), UILList< DLListBase, entry >::last(), and DLListBase::size().

Here is the call graph for this function:

Foam::SHA1Digest digest ( ) const

Return the SHA1 digest of the dictionary contents.

Definition at line 272 of file dictionary.C.

References OSHA1stream::digest(), and forAllConstIter().

Referenced by functionObjectList::read(), and writeDictionary::write().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::tokenList tokens ( ) const

Return the dictionary as a list of tokens.

Definition at line 286 of file dictionary.C.

References dictionary::found(), OStringStream::str(), and dictionary::write().

Here is the call graph for this function:

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 306 of file dictionary.C.

References dictionary::found(), and dictionary::lookupEntryPtr().

Referenced by activePressureForceBaffleVelocityFvPatchVectorField::activePressureForceBaffleVelocityFvPatchVectorField(), sixDoFRigidBodyMotion::addConstraints(), sixDoFRigidBodyMotion::addRestraints(), advectiveFvPatchField< Type >::advectiveFvPatchField(), alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField(), alphaFixedPressureFvPatchScalarField::alphaFixedPressureFvPatchScalarField(), alphatPhaseChangeWallFunctionFvPatchScalarField::alphatPhaseChangeWallFunctionFvPatchScalarField(), angularOscillatingDisplacementPointPatchVectorField::angularOscillatingDisplacementPointPatchVectorField(), angularOscillatingVelocityPointPatchVectorField::angularOscillatingVelocityPointPatchVectorField(), chemkinReader::chemkinReader(), forces::createFileNames(), cyclicACMIFvPatchField< Type >::cyclicACMIFvPatchField(), cyclicAMIFvPatchField< Type >::cyclicAMIFvPatchField(), cylindrical::cylindrical(), fvSchemes::d2dt2Scheme(), fvSchemes::ddtScheme(), Foam::dimensionedConstant(), fvSchemes::divScheme(), energyJumpAMIFvPatchScalarField::energyJumpAMIFvPatchScalarField(), energyJumpFvPatchScalarField::energyJumpFvPatchScalarField(), ensightSurfaceWriter::ensightSurfaceWriter(), externalCoupledMixedFvPatchField< Type >::externalCoupledMixedFvPatchField(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), fanFvPatchField< Type >::fanFvPatchField(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::filmPyrolysisRadiativeCoupledMixedFvPatchScalarField(), fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), fixedJumpAMIFvPatchField< Type >::fixedJumpAMIFvPatchField(), fixedJumpFvPatchField< Type >::fixedJumpFvPatchField(), flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), fvSchemes::fluxRequired(), dictionary::found(), fvPatchField< Type >::fvPatchField(), fvsPatchField< Type >::fvsPatchField(), subModelBase::getModelProperty(), fvSchemes::gradScheme(), greyDiffusiveRadiationMixedFvPatchScalarField::greyDiffusiveRadiationMixedFvPatchScalarField(), greyDiffusiveViewFactorFixedValueFvPatchScalarField::greyDiffusiveViewFactorFixedValueFvPatchScalarField(), surfaceRegion::initialise(), inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), fvSchemes::interpolationScheme(), fvSchemes::laplacianScheme(), layerParameters::layerParameters(), dimensioned< Type >::lookupOrDefault(), mappedPatchBase::mappedPatchBase(), MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField(), nastranSurfaceWriter::nastranSurfaceWriter(), sootModel::New(), pointPatchField< Type >::New(), fvsPatchField< Type >::New(), functionObject::New(), fvPatchField< Type >::New(), oldCyclicPolyPatch::oldCyclicPolyPatch(), dlLibraryTable::open(), axesRotation::operator=(), dictionary::operator|=(), optionList::optionsDict(), oscillatingDisplacementPointPatchVectorField::oscillatingDisplacementPointPatchVectorField(), oscillatingVelocityPointPatchVectorField::oscillatingVelocityPointPatchVectorField(), outletPhaseMeanVelocityFvPatchVectorField::outletPhaseMeanVelocityFvPatchVectorField(), phaseHydrostaticPressureFvPatchScalarField::phaseHydrostaticPressureFvPatchScalarField(), plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField(), Foam::preservePatchTypes(), pressureInletOutletVelocityFvPatchVectorField::pressureInletOutletVelocityFvPatchVectorField(), prghPressureFvPatchScalarField::prghPressureFvPatchScalarField(), prghTotalPressureFvPatchScalarField::prghTotalPressureFvPatchScalarField(), radiationCoupledBase::radiationCoupledBase(), rawSurfaceWriter::rawSurfaceWriter(), tolerances::read(), fieldExpression::read(), timeControl::read(), abort::read(), scalarTransport::read(), writeObjects::read(), codedFunctionObject::read(), sampledSurfaces::read(), functionObjectList::read(), CodedSource< Type >::read(), turbulenceFields::read(), sampledSets::read(), streamLine::read(), regionSizeDistribution::read(), wallBoundedStreamLine::read(), forces::read(), fieldAverage::readAveragingProperties(), LduMatrix< Type, DType, LUType >::solver::readControl(), Time::readDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), functionObjectList::readFunctionObject(), refinementSurfaces::refinementSurfaces(), tolerances::relax(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyModel::rigidBodyModel(), rigidBodyMotion::rigidBodyMotion(), rotatingWallVelocityFvPatchVectorField::rotatingWallVelocityFvPatchVectorField(), sampledPatchInternalField::sampledPatchInternalField(), sampledPlane::sampledPlane(), sampledThresholdCellFaces::sampledThresholdCellFaces(), fvSchemes::schemesDict(), searchableSurfaces::searchableSurfaces(), subModelBase::setModelProperty(), Foam::setRefCell(), shellSurfaces::shellSurfaces(), sixDoFRigidBodyDisplacementPointPatchVectorField::sixDoFRigidBodyDisplacementPointPatchVectorField(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), SLGThermo::SLGThermo(), fvSchemes::snGradScheme(), solidBodyMotionDisplacementPointPatchVectorField::solidBodyMotionDisplacementPointPatchVectorField(), supersonicFreestreamFvPatchVectorField::supersonicFreestreamFvPatchVectorField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thirdBodyEfficiencies::thirdBodyEfficiencies(), timeVaryingMappedFixedValueFvPatchField< Type >::timeVaryingMappedFixedValueFvPatchField(), timeVaryingMappedFixedValuePointPatchField< Type >::timeVaryingMappedFixedValuePointPatchField(), dictionary::tokens(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::totalFlowRateAdvectiveDiffusiveFvPatchScalarField(), totalPressureFvPatchScalarField::totalPressureFvPatchScalarField(), totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField(), turbulentHeatFluxTemperatureFvPatchScalarField::turbulentHeatFluxTemperatureFvPatchScalarField(), turbulentInletFvPatchField< Type >::turbulentInletFvPatchField(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField(), uniformDensityHydrostaticPressureFvPatchScalarField::uniformDensityHydrostaticPressureFvPatchScalarField(), uniformInletOutletFvPatchField< Type >::uniformInletOutletFvPatchField(), uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField(), uniformJumpAMIFvPatchField< Type >::uniformJumpAMIFvPatchField(), uniformJumpFvPatchField< Type >::uniformJumpFvPatchField(), uniformTotalPressureFvPatchScalarField::uniformTotalPressureFvPatchScalarField(), Foam::unitSet(), valuePointPatchField< Type >::valuePointPatchField(), variableHeightFlowRateFvPatchScalarField::variableHeightFlowRateFvPatchScalarField(), wallHeatTransferFvPatchScalarField::wallHeatTransferFvPatchScalarField(), waveDisplacementPointPatchVectorField::waveDisplacementPointPatchVectorField(), wideBandDiffusiveRadiationMixedFvPatchScalarField::wideBandDiffusiveRadiationMixedFvPatchScalarField(), JobInfo::write(), and residuals::writeResidual().

Here is the call graph for this function:

const Foam::entry * lookupEntryPtr ( const word keyword,
bool  recursive,
bool  patternMatch 
) const
Foam::entry * lookupEntryPtr ( const word keyword,
bool  recursive,
bool  patternMatch 
)

Find and return an entry data stream pointer for manipulation.

if present otherwise return NULL. If recursive, search parent dictionaries. If patternMatch, use regular expressions.

Definition at line 384 of file dictionary.C.

References dictionary::lookupEntry(), and dictionary::lookupEntryPtr().

Here is the call graph for this function:

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 428 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 451 of file dictionary.C.

References dictionary::lookupEntry(), dictionary::lookupScopedEntryPtr(), and entry::stream().

Referenced by activePressureForceBaffleVelocityFvPatchVectorField::activePressureForceBaffleVelocityFvPatchVectorField(), advectiveFvPatchField< Type >::advectiveFvPatchField(), bladeModel::bladeModel(), BreakupModel< CloudType >::BreakupModel(), cellModel::cellModel(), motionSmootherAlgo::checkMesh(), chemkinReader::chemkinReader(), coalCloudList::coalCloudList(), Constant< Type >::Constant(), molecule::constantProperties::constantProperties(), correlationFunction< Type >::correlationFunction(), constantFilmThermo::Cp(), forces::createFileNames(), cuboid::cuboid(), cyclicAMIPolyPatch::cyclicAMIPolyPatch(), cyclicPolyPatch::cyclicPolyPatch(), cylindrical::cylindrical(), constantFilmThermo::D(), fvSchemes::d2dt2Scheme(), fvSchemes::ddtScheme(), decompositionMethod::decompositionMethod(), forces::devRhoReff(), dimensioned< Type >::dimensioned(), Foam::dimensionedConstant(), directions::directions(), argList::displayDoc(), fvSchemes::divScheme(), ensightSurfaceWriter::ensightSurfaceWriter(), EulerCoordinateRotation::EulerCoordinateRotation(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), externalWallHeatFluxTemperatureFvPatchScalarField::externalWallHeatFluxTemperatureFvPatchScalarField(), extrudePatchMesh::extrudePatchMesh(), fanFvPatchField< Type >::fanFvPatchField(), Field< Type >::Field(), fieldAverageItem::fieldAverageItem(), forceList::forceList(), FreeStream< CloudType >::FreeStream(), lduMatrix::smoother::getName(), lduMatrix::preconditioner::getName(), fvSchemes::gradScheme(), greyMeanSolidAbsorptionEmission::greyMeanSolidAbsorptionEmission(), constantFilmThermo::hl(), Foam::MULES::implicitSolve(), coordinateSystem::init(), absorptionCoeffs::initialise(), surfaceRegion::initialise(), liquidFilmThermo::initLiquid(), InjectionModel< CloudType >::InjectionModel(), InjectionModelList< CloudType >::InjectionModelList(), injectionModelList::injectionModelList(), fvSchemes::interpolationScheme(), constantFilmThermo::kappa(), laminarFlameSpeed::laminarFlameSpeed(), LangmuirHinshelwoodReactionRate::LangmuirHinshelwoodReactionRate(), fvSchemes::laplacianScheme(), layerParameters::layerParameters(), Foam::MULES::limiterCorr(), liquidFilmThermo::liquidFilmThermo(), dictionary::lookupEntry(), dimensioned< Type >::lookupOrDefault(), lookupProfile::lookupProfile(), basicThermo::lookupThermo(), mappedPatchBase::mappedPatchBase(), mappedPatchFieldBase< Type >::mappedPatchFieldBase(), meanVelocityForce::meanVelocityForce(), MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration(), medialAxisMeshMover::move(), constantFilmThermo::mu(), forces::mu(), multiDirRefinement::multiDirRefinement(), NamedEnum< Enum, nEnum >::names(), nastranSurfaceWriter::nastranSurfaceWriter(), basicChemistryModel::New(), scatterModel::New(), CorrectionLimitingMethod::New(), renumberMethod::New(), thermophysicalFunction::New(), decompositionMethod::New(), tetherPotential::New(), profileModel::New(), absorptionEmissionModel::New(), DispersionModel< CloudType >::New(), ParticleStressModel::New(), motionSolver::New(), energyScalingFunction::New(), sootModel::New(), interpolation< Type >::New(), AtomizationModel< CloudType >::New(), PairModel< CloudType >::New(), trimModel::New(), WallModel< CloudType >::New(), TimeScaleModel::New(), extrudeModel::New(), psiCombustionModel::New(), rhoCombustionModel::New(), BinaryCollisionModel< CloudType >::New(), WallInteractionModel< CloudType >::New(), engineMesh::New(), InflowBoundaryModel< CloudType >::New(), LESdelta::New(), filmThermoModel::New(), filmRadiationModel::New(), heatTransferModel::New(), HeatTransferModel< CloudType >::New(), CollisionModel< CloudType >::New(), StochasticCollisionModel< CloudType >::New(), barotropicCompressibilityModel::New(), filmTurbulenceModel::New(), DevolatilisationModel< CloudType >::New(), SurfaceReactionModel< CloudType >::New(), IsotropyModel< CloudType >::New(), sixDoFRigidBodyMotionRestraint::New(), viscosityModel::New(), patchDistMethod::New(), DampingModel< CloudType >::New(), dynamicFvMesh::New(), filmViscosityModel::New(), Function1< Type >::New(), solidBodyMotionFunction::New(), pairPotential::New(), laminarFlameSpeed::New(), BreakupModel< CloudType >::New(), CompositionModel< CloudType >::New(), LESfilter::New(), coordinateRotation::New(), PackingModel< CloudType >::New(), phaseChangeModel::New(), AveragingMethod< Type >::New(), sixDoFRigidBodyMotionConstraint::New(), regionModelFunctionObject::New(), distributionModel::New(), surfaceFilmModel::New(), PatchInteractionModel< CloudType >::New(), rigidBody::New(), rigidBodySolver::New(), reactionRateFlameArea::New(), restraint::New(), SRFModel::New(), polyMeshModifier::New(), fieldValue::New(), PhaseChangeModel< CloudType >::New(), RASModel< BasicTurbulenceModel >::New(), ODESolver::New(), solidProperties::New(), sixDoFSolver::New(), LESModel< BasicTurbulenceModel >::New(), IntegrationScheme< Type >::New(), pyrolysisModel::New(), liquidProperties::New(), SurfaceFilmModel< CloudType >::New(), option::New(), radiationModel::New(), pointZone::New(), cellZone::New(), lduMatrix::solver::New(), joint::New(), porosityModel::New(), LduMatrix< Type, DType, LUType >::solver::New(), coordinateSystem::New(), sampledSet::New(), InjectionModel< CloudType >::New(), sampledSurface::New(), faceZone::New(), pointPatchField< Type >::New(), fvsPatchField< Type >::New(), functionObject::New(), polyPatch::New(), fvPatchField< Type >::New(), Reaction< ReactionThermo >::New(), LduMatrix< Type, DType, LUType >::smoother::New(), lduMatrix::smoother::New(), LduMatrix< Type, DType, LUType >::preconditioner::New(), lduMatrix::preconditioner::New(), oldCyclicPolyPatch::oldCyclicPolyPatch(), dlLibraryTable::open(), multivariateIndependentScheme< Type >::operator()(), axesRotation::operator=(), Foam::operator>>(), Foam::functionObjects::operator>>(), dictionary::operator[](), Pa::Pa(), argList::parse(), phaseProperties::phaseProperties(), plane::plane(), plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField(), Polynomial< Type >::Polynomial(), porosityModel::porosityModel(), UPstream::procNo(), constantFilmThermo::pv(), Ra::Ra(), rawSurfaceWriter::rawSurfaceWriter(), Reaction< ReactionThermo >::Reaction(), exponentialRepulsion::read(), lennardJones::read(), harmonicSpring::read(), tolerances::read(), pitchForkRing::read(), restrainedHarmonicSpring::read(), dampedCoulomb::read(), anisotropicFilter::read(), laplaceFilter::read(), sigmoid::read(), doubleSigmoid::read(), azizChen::read(), solutionControl::read(), randomise::read(), maitlandSmith::read(), FixedValueConstraint< Type >::read(), relaxation::read(), thermalBaffle::read(), fieldExpression::read(), CrossPowerLaw::read(), HerschelBulkley::read(), powerLaw::read(), writeDictionary::read(), BirdCarreau::read(), timeControl::read(), consumptionSpeed::read(), abort::read(), cloudSolution::read(), timeActivatedFileUpdate::read(), residuals::read(), removeRegisteredObject::read(), cloudInfo::read(), interfaceProperties::read(), inhomogeneousMixture< ThermoType >::read(), patchProbes::read(), reactionRateFlameArea::read(), writeObjects::read(), fieldCoordinateSystemTransform::read(), readFields::read(), egrMixture< ThermoType >::read(), surfaceInterpolate::read(), fieldValue::read(), histogram::read(), codedFunctionObject::read(), dimensioned< Type >::read(), cellSetOption::read(), fieldValueDelta::read(), radiationModel::read(), fieldMinMax::read(), sampledSurfaces::read(), nearWallFields::read(), CodedSource< Type >::read(), kinematicSingleLayer::read(), forceCoeffs::read(), probes::read(), turbulenceFields::read(), porosityModel::read(), sampledSets::read(), streamLine::read(), regionSizeDistribution::read(), wallBoundedStreamLine::read(), rotorDiskSource::read(), solidificationMeltingSource::read(), fieldAverage::read(), sixDoFRigidBodyMotion::read(), pressure::read(), forces::read(), LduMatrix< Type, DType, LUType >::solver::readControl(), dynamicRefineFvMesh::readDict(), Time::readDict(), DimensionedField< Type, GeoMesh >::readField(), functionObjectList::readFunctionObject(), IOobject::readHeader(), mappedPatchBase::readListOrField(), ensightPart::reconstruct(), refinementParameters::refinementParameters(), refinementSurfaces::refinementSurfaces(), tolerances::relaxationFactor(), boundaryRegion::rename(), constantFilmThermo::rho(), rigidBodyModel::rigidBodyModel(), rigidBodyMotion::rigidBodyMotion(), thermalBaffleFvPatchScalarField::rmap(), sampledCuttingPlane::sampledCuttingPlane(), sampledIsoSurface::sampledIsoSurface(), sampledPatchInternalField::sampledPatchInternalField(), motionSmootherAlgo::scaleMesh(), fvSchemes::schemesDict(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaces::searchableSurfaces(), searchableSurfaceWithGaps::searchableSurfaceWithGaps(), seriesProfile::seriesProfile(), SemiImplicitSource< Type >::setFieldData(), Foam::setRefCell(), reducedUnits::setRefValues(), cellSetOption::setSelection(), shellSurfaces::shellSurfaces(), constantFilmThermo::sigma(), sixDoFRigidBodyDisplacementPointPatchVectorField::sixDoFRigidBodyDisplacementPointPatchVectorField(), slidingInterface::slidingInterface(), fvSchemes::snGradScheme(), solidReaction< ReactionThermo >::solidReaction(), tolerances::solverRelativeTolerance(), tolerances::solverTolerance(), sphere::sphere(), STARCDCoordinateRotation::STARCDCoordinateRotation(), dictionaryEntry::stream(), surfaceFeatures::surfaceFeatures(), surfacePatchIOList::surfacePatchIOList(), surfaceZonesInfo::surfaceZonesInfo(), surfZoneIOList::surfZoneIOList(), Table< Type >::Table(), TableFile< Type >::TableFile(), constantFilmThermo::Tb(), thermoSingleLayer::thermoSingleLayer(), thirdBodyEfficiencies::thirdBodyEfficiencies(), TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::TurbulenceModel(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::turbulentTemperatureRadCoupledMixedFvPatchScalarField(), UniformDimensionedField< Type >::UniformDimensionedField(), uniformInterpolationTable< Type >::uniformInterpolationTable(), Foam::unitSet(), dynamicRefineFvMesh::update(), alphatJayatillekeWallFunctionFvPatchScalarField::updateCoeffs(), constantFilmThermo::W(), WallLocalSpringSliderDashpot< CloudType >::WallLocalSpringSliderDashpot(), wideBandAbsorptionEmission::wideBandAbsorptionEmission(), thermalBaffleFvPatchScalarField::write(), residuals::writeResidual(), and medialAxisMeshMover::~medialAxisMeshMover().

Here is the call graph for this function:

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 33 of file dictionaryTemplates.C.

References Foam::endl(), IOInfoInFunction, dictionary::lookupOrAddDefault(), entry::stream(), and T.

Referenced by blockMesh::blockMesh(), subModelBase::defaultCoeffs(), EulerCoordinateRotation::EulerCoordinateRotation(), fieldAverageItem::fieldAverageItem(), flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), freestreamFvPatchField< Type >::freestreamFvPatchField(), inletOutletTotalTemperatureFvPatchScalarField::inletOutletTotalTemperatureFvPatchScalarField(), Foam::MULES::limiterCorr(), tableReader< Type >::New(), thermalBaffleModel::New(), GAMGAgglomeration::New(), Foam::operator>>(), Foam::functionObjects::operator>>(), argList::parse(), pimpleControl::read(), solutionControl::read(), blendingFactor::read(), CourantNo::read(), timeControl::read(), scalarTransport::read(), targetCoeffTrim::read(), histogram::read(), wallShearStress::read(), fieldMinMax::read(), rigidBodyMotion::read(), functionObjectList::read(), MRFZone::read(), functionObject::read(), streamLine::read(), wallBoundedStreamLine::read(), sixDoFRigidBodyMotion::read(), pressure::read(), forces::read(), refinementSurfaces::refinementSurfaces(), slidingInterface::setTolerances(), solidBodyMotionFvMesh::solidBodyMotionFvMesh(), fvMatrix< Type >::solve(), SRFFreestreamVelocityFvPatchVectorField::SRFFreestreamVelocityFvPatchVectorField(), STARCDCoordinateRotation::STARCDCoordinateRotation(), turbulentIntensityKineticEnergyInletFvPatchScalarField::turbulentIntensityKineticEnergyInletFvPatchScalarField(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::turbulentMixingLengthDissipationRateInletFvPatchScalarField(), turbulentMixingLengthFrequencyInletFvPatchScalarField::turbulentMixingLengthFrequencyInletFvPatchScalarField(), Foam::unitSet(), dynamicRefineFvMesh::update(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs(), turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs(), and medialAxisMeshMover::~medialAxisMeshMover().

Here is the call graph for this function:

Here is the caller graph for this function:

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 63 of file dictionaryTemplates.C.

References Foam::add(), Foam::endl(), IOInfoInFunction, dictionary::readIfPresent(), and entry::stream().

Referenced by Foam::debug::debugSwitch(), Foam::debug::infoSwitch(), dimensioned< Type >::lookupOrAddToDict(), Switch::lookupOrAddToDict(), dictionary::lookupOrDefault(), and Foam::debug::optimisationSwitch().

Here is the call graph for this function:

Here is the caller graph for this function:

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 94 of file dictionaryTemplates.C.

References Foam::endl(), IOInfoInFunction, and entry::stream().

Referenced by advectiveFvPatchField< Type >::advectiveFvPatchField(), motionSmootherAlgo::checkMesh(), cyclicAMIPolyPatch::cyclicAMIPolyPatch(), engineTime::engineTime(), fvMotionSolverEngineMesh::fvMotionSolverEngineMesh(), subModelBase::getBaseProperty(), subModelBase::getModelProperty(), kinematicSingleLayer::info(), coordinateSystem::init(), volRegion::initialise(), surfaceRegion::initialise(), layeredEngineMesh::layeredEngineMesh(), layerParameters::layerParameters(), linearNormal::linearNormal(), dictionary::lookupOrAddDefault(), chemistryReader< ThermoType >::New(), polyPatch::New(), oldCyclicPolyPatch::oldCyclicPolyPatch(), axesRotation::operator=(), patchIdentifier::patchIdentifier(), Foam::preservePatchTypes(), profileModel::profileModel(), cubeRootVolDelta::read(), maxDeltaxyz::read(), vanDriestDelta::read(), IDDESDelta::read(), setTimeStepFunctionObject::read(), PrandtlDelta::read(), abort::read(), cloudSolution::read(), scalarTransport::read(), writeObjects::read(), systemCall::read(), fvDOM::read(), cellSetOption::read(), kinematicSingleLayer::read(), probes::read(), streamLine::read(), regionSizeDistribution::read(), solidificationMeltingSource::read(), fieldAverage::read(), pressure::read(), forces::read(), option::read(), Time::readDict(), IOobject::readHeader(), Switch::readIfPresent(), dimensioned< Type >::readIfPresent(), ensightPart::reconstruct(), refinementSurfaces::refinementSurfaces(), sampledPlane::sampledPlane(), sampledSurface::sampledSurface(), searchableSurfaces::searchableSurfaces(), Time::setControls(), data::setSolverPerformance(), Time::setTime(), sixDoFRigidBodyDisplacementPointPatchVectorField::sixDoFRigidBodyDisplacementPointPatchVectorField(), fvMatrix< Type >::solve(), surfaceZonesInfo::surfaceZonesInfo(), surfZoneIdentifier::surfZoneIdentifier(), surfZoneIOList::surfZoneIOList(), thermoSingleLayer::thermoSingleLayer(), timeVaryingMappedFixedValueFvPatchField< Type >::timeVaryingMappedFixedValueFvPatchField(), timeVaryingMappedFixedValuePointPatchField< Type >::timeVaryingMappedFixedValuePointPatchField(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), triSurfaceMesh::triSurfaceMesh(), triSurfaceSearch::triSurfaceSearch(), and uniformInterpolationTable< Type >::uniformInterpolationTable().

Here is the call graph for this function:

const Foam::entry * lookupScopedEntryPtr ( const word keyword,
bool  recursive,
bool  patternMatch 
) const

Find and return an entry data stream pointer if present.

otherwise return NULL. Allows scoping using '.'

Definition at line 462 of file dictionary.C.

References entry::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, entry::isDict(), dictionary::keys(), dictionary::lookupEntryPtr(), dictionary::lookupScopedEntryPtr(), and dictionaryName::name().

Referenced by Foam::stringOps::getVariable(), Foam::stringOps::inplaceExpand(), dictionary::lookup(), dictionary::lookupScopedEntryPtr(), entry::New(), and dictionary::substituteScopedKeyword().

Here is the call graph for this function:

Here is the caller graph for this function:

bool isDict ( const word keyword) const
const Foam::dictionary * subDictPtr ( const word keyword) const

Find and return a sub-dictionary pointer if present.

otherwise return NULL.

Definition at line 618 of file dictionary.C.

References entry::dict(), and dictionary::lookupEntryPtr().

Referenced by regionModel::read(), RASModel< BasicTurbulenceModel >::read(), and LESModel< BasicTurbulenceModel >::read().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::dictionary & subDict ( const word keyword) const

Find and return a sub-dictionary.

Definition at line 633 of file dictionary.C.

References entry::dict(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), and dictionaryName::name().

Referenced by sixDoFRigidBodyMotion::addConstraints(), snappyLayerDriver::addLayers(), sixDoFRigidBodyMotion::addRestraints(), CloudFunctionObjectList< CloudType >::CloudFunctionObjectList(), forces::createFileNames(), decompositionMethod::decompositionMethod(), solutionControl::dict(), Foam::dimensionedConstant(), directions::directions(), argList::displayDoc(), fvMeshDistribute::distribute(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), subModelBase::getBaseProperty(), subModelBase::getModelProperty(), greyMeanAbsorptionEmission::greyMeanAbsorptionEmission(), greyMeanSolidAbsorptionEmission::greyMeanSolidAbsorptionEmission(), coordinateSystem::init(), liquidFilmThermo::initLiquid(), cloudSolution::integrationSchemes(), cloudSolution::interpolationSchemes(), layerParameters::layerParameters(), liquidMixtureProperties::liquidMixtureProperties(), basicThermo::lookupThermo(), fvMeshDistribute::mapExposedFaces(), multiSolidBodyMotionFvMesh::multiSolidBodyMotionFvMesh(), NamedEnum< Enum, nEnum >::names(), basicChemistryModel::New(), basicSolidChemistryModel::New(), regionModelFunctionObject::New(), functionObjectList::New(), RASModel< BasicTurbulenceModel >::New(), solidProperties::New(), LESModel< BasicTurbulenceModel >::New(), liquidProperties::New(), coordinateSystem::New(), optionList::optionsDict(), plane::plane(), Foam::preservePatchTypes(), profileModelList::profileModelList(), pyrolysisModelCollection::pyrolysisModelCollection(), exponentialRepulsion::read(), lennardJones::read(), harmonicSpring::read(), tolerances::read(), restrainedHarmonicSpring::read(), pitchForkRing::read(), dampedCoulomb::read(), cubeRootVolDelta::read(), anisotropicFilter::read(), laplaceFilter::read(), vanDriestDelta::read(), maxDeltaxyz::read(), sigmoid::read(), IDDESDelta::read(), doubleSigmoid::read(), azizChen::read(), maitlandSmith::read(), FixedValueConstraint< Type >::read(), relaxation::read(), pureMixture< ThermoType >::read(), trimModel::read(), CrossPowerLaw::read(), HerschelBulkley::read(), porosityModelList::read(), powerLaw::read(), PrandtlDelta::read(), BirdCarreau::read(), homogeneousMixture< ThermoType >::read(), solidBodyMotionFunction::read(), cloudSolution::read(), scalarTransport::read(), multiComponentMixture< ThermoType >::read(), inhomogeneousMixture< ThermoType >::read(), motionSolver::read(), veryInhomogeneousMixture< ThermoType >::read(), egrMixture< ThermoType >::read(), MRFZoneList::read(), fieldValueDelta::read(), kinematicSingleLayer::read(), porosityModel::read(), smoothDelta::read(), streamLine::read(), wallBoundedStreamLine::read(), forces::read(), option::read(), fieldAverage::readAveragingProperties(), Time::readDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::readField(), functionObjectList::readFunctionObject(), optionList::readOptions(), ReactionList< ThermoType >::readReactionDict(), refinementSurfaces::refinementSurfaces(), rigidBodyMeshMotion::rigidBodyMeshMotion(), rigidBodyModel::rigidBodyModel(), sampledPlane::sampledPlane(), fvSchemes::schemesDict(), searchableSurfaceCollection::searchableSurfaceCollection(), searchableSurfaces::searchableSurfaces(), subModelBase::setBaseProperty(), subModelBase::setModelProperty(), Sine< Type >::Sine(), SLGThermo::SLGThermo(), solidMixtureProperties::solidMixtureProperties(), displacementLayeredMotionMotionSolver::solve(), data::solverPerformanceDict(), cloudSolution::sourceTermDict(), Square< Type >::Square(), TableFile< Type >::TableFile(), Foam::unitSet(), dynamicRefineFvMesh::update(), wideBandAbsorptionEmission::wideBandAbsorptionEmission(), thermalBaffleFvPatchScalarField::write(), and fieldAverage::writeAveragingProperties().

Here is the call graph for this function:

Foam::dictionary & subDict ( const word keyword)

Find and return a sub-dictionary for manipulation.

Definition at line 650 of file dictionary.C.

References entry::dict(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), dictionaryName::name(), and dictionary::subOrEmptyDict().

Here is the call graph for this function:

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 668 of file dictionary.C.

References entry::dict(), dictionary::dictionary(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookupEntryPtr(), and dictionaryName::name().

Referenced by surfaceRegion::initialise(), solutionControl::read(), radiationModel::read(), sampledSurfaces::read(), and dictionary::subDict().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::wordList toc ( ) const
Foam::wordList sortedToc ( ) const

Return the sorted table of contents.

Definition at line 713 of file dictionary.C.

Foam::List< Foam::keyType > keys ( bool  patterns = false) const

Return the list of available keys or patterns.

Definition at line 719 of file dictionary.C.

References forAllConstIter(), List< T >::setSize(), and DLListBase::size().

Referenced by dictionary::lookupScopedEntryPtr(), and dictionary::toc().

Here is the call graph for this function:

Here is the caller graph for this function:

bool substituteKeyword ( const word keyword)

Substitute the given keyword prepended by '$' with the.

corresponding sub-dictionary entries

Definition at line 132 of file dictionaryIO.C.

References dictionary::add(), forAllConstIter(), and dictionary::lookupEntryPtr().

Here is the call graph for this function:

bool substituteScopedKeyword ( const word keyword)

Substitute the given scoped keyword prepended by '$' with the.

corresponding sub-dictionary entries

Definition at line 578 of file dictionary.C.

References dictionary::add(), forAllConstIter(), and dictionary::lookupScopedEntryPtr().

Referenced by entry::New().

Here is the call graph for this function:

Here is the caller graph for this function:

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 737 of file dictionary.C.

References DLListBase::append(), entry::dict(), Foam::endl(), IOWarningInFunction, entry::isDict(), keyType::isPattern(), entry::keyword(), dictionaryName::name(), entry::name(), UILList< DLListBase, T >::remove(), and DLListBase::replace().

Referenced by error::abort(), IOerror::abort(), dictionary::add(), constAnIsoSolidTransport< Thermo >::constAnIsoSolidTransport(), constIsoSolidTransport< Thermo >::constIsoSolidTransport(), constTransport< Thermo >::constTransport(), coordinateSystem::dict(), Foam::dimensionedConstant(), calcEntry::execute(), error::exit(), IOerror::exit(), exponentialSolidTransport< Thermo >::exponentialSolidTransport(), dictionary::merge(), 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(), rigidBodyMeshMotion::solve(), GAMGSolver::solve(), dictionary::substituteKeyword(), dictionary::substituteScopedKeyword(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), solution::upgradeSolverDict(), JobInfo::write(), specie::write(), rigidBodyModelState::write(), sixDoFRigidBodyMotionState::write(), polynomialTransport< Thermo, PolySize >::write(), rhoConst< Specie >::write(), hConstThermo< EquationOfState >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), hRefConstThermo< EquationOfState >::write(), logPolynomialTransport< Thermo, PolySize >::write(), eConstThermo< EquationOfState >::write(), perfectFluid< Specie >::write(), icoPolynomial< Specie, PolySize >::write(), linear< Type >::write(), incompressiblePerfectGas< Specie >::write(), sutherlandTransport< Thermo >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), uniformInterpolationTable< Type >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), janafThermo< EquationOfState >::write(), fieldAverage::writeAveragingProperties(), surfaceFeatures::writeDict(), meanVelocityForce::writeProps(), and Time::writeTimeDict().

Here is the call graph for this function:

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 818 of file dictionary.C.

References dictionary::add(), and entry::clone().

Here is the call graph for this function:

void add ( const keyType k,
const word w,
bool  overwrite = false 
)

Add a word entry.

optionally overwrite an existing entry

Definition at line 824 of file dictionary.C.

References dictionary::add().

Here is the call graph for this function:

void add ( const keyType k,
const string s,
bool  overwrite = false 
)

Add a string entry.

optionally overwrite an existing entry

Definition at line 831 of file dictionary.C.

References dictionary::add().

Here is the call graph for this function:

void add ( const keyType k,
const label  l,
bool  overwrite = false 
)

Add a label entry.

optionally overwrite an existing entry

Definition at line 841 of file dictionary.C.

References dictionary::add().

Here is the call graph for this function:

void add ( const keyType k,
const scalar  s,
bool  overwrite = false 
)

Add a scalar entry.

optionally overwrite an existing entry

Definition at line 847 of file dictionary.C.

References dictionary::add().

Here is the call graph for this function:

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 854 of file dictionary.C.

References dictionary::add().

Here is the call graph for this function:

void add ( const keyType k,
const T t,
bool  overwrite = false 
)

Add a T entry.

optionally overwrite an existing entry

Definition at line 124 of file dictionaryTemplates.C.

References dictionary::add().

Here is the call graph for this function:

void set ( entry entryPtr)
void set ( const entry e)

Assign a new entry, overwrite any existing entry.

Definition at line 877 of file dictionary.C.

References entry::clone().

Here is the call graph for this function:

void set ( const keyType k,
const dictionary d 
)

Assign a dictionary entry, overwrite any existing entry.

Definition at line 883 of file dictionary.C.

void set ( const keyType k,
const T t 
)

Assign a T entry, overwrite any existing entry.

Definition at line 131 of file dictionaryTemplates.C.

bool remove ( const word Keyword)

Remove an entry specified by keyword.

Definition at line 889 of file dictionary.C.

References dictionary::changeKeyword(), and UILList< DLListBase, T >::remove().

Referenced by removeEntry::execute(), and IOerror::SafeFatalIOError().

Here is the call graph for this function:

Here is the caller graph for this function:

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 922 of file dictionary.C.

References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOWarningInFunction, keyType::isPattern(), dictionaryName::name(), and DLListBase::replace().

Referenced by dictionary::remove().

Here is the call graph for this function:

Here is the caller graph for this function:

bool merge ( const dictionary dict)

Merge entries from the given dictionary.

Also merge sub-dictionaries as required.

Definition at line 1013 of file dictionary.C.

References Foam::abort(), dictionary::add(), dictionary::clone(), dict, Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().

Referenced by snappyLayerDriver::addLayers(), functionObjectList::New(), Time::readDict(), and functionObjectList::readFunctionObject().

Here is the call graph for this function:

Here is the caller graph for this function:

void clear ( )

Clear the dictionary.

Definition at line 1058 of file dictionary.C.

References ILList< DLListBase, T >::clear().

Referenced by entry::New(), dictionary::operator=(), Foam::operator>>(), dictionary::set(), and data::setSolverPerformance().

Here is the call graph for this function:

Here is the caller graph for this function:

void transfer ( dictionary dict)

Transfer the contents of the argument and annul the argument.

Definition at line 1067 of file dictionary.C.

References dictionaryName::name(), and ILList< DLListBase, T >::transfer().

Referenced by dictionary::dictionary(), and csvTableReader< Type >::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

Transfer contents to the Xfer container.

Definition at line 1080 of file dictionary.C.

References Foam::xferMove().

Here is the call graph for this function:

bool read ( Istream is)
bool read ( Istream is,
const bool  keepHeader 
)

Read dictionary from Istream, optionally keeping the header.

Definition at line 81 of file dictionaryIO.C.

References IOstream::bad(), token::BEGIN_BLOCK, Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOstream::good(), InfoInFunction, dictionaryName::name(), entry::New(), and Istream::putBack().

Here is the call graph for this function:

void write ( Ostream os,
const bool  subDict = true 
) const
Foam::ITstream & operator[] ( const word keyword) const

Find and return entry.

Definition at line 1088 of file dictionary.C.

References dictionary::lookup().

Here is the call graph for this function:

void operator= ( const dictionary rhs)

Definition at line 1094 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(), and IOdictionary::operator=().

Here is the call graph for this function:

Here is the caller graph for this function:

void operator+= ( const dictionary rhs)

Include entries from the given dictionary.

Warn, but do not overwrite existing entries.

Definition at line 1117 of file dictionary.C.

References Foam::abort(), dictionary::add(), dictionary::clone(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().

Here is the call graph for this function:

void operator|= ( const dictionary rhs)

Conditionally include entries from the given dictionary.

Do not overwrite existing entries.

Definition at line 1134 of file dictionary.C.

References Foam::abort(), dictionary::add(), dictionary::clone(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), dictionary::found(), and dictionaryName::name().

Here is the call graph for this function:

void operator<<= ( const dictionary rhs)

Unconditionally include entries from the given dictionary.

Overwrite existing entries.

Definition at line 1154 of file dictionary.C.

References Foam::abort(), Foam::FatalIOError, FatalIOErrorInFunction, forAllConstIter(), and dictionaryName::name().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class entry
friend

Declare friendship with the entry class for IO.

Definition at line 185 of file dictionary.H.

Istream& operator>> ( Istream ,
dictionary  
)
friend

Read dictionary from Istream.

Ostream& operator<< ( Ostream ,
const dictionary  
)
friend

Write dictionary to Ostream.

Member Data Documentation

const dictionary null
static

The documentation for this class was generated from the following files: