dynamicCodeContext Class Reference

Encapsulation of dynamic code dictionaries. More...

Public Member Functions

 dynamicCodeContext (const dictionary &contextDict, const dictionary &codeDict, const wordList &codeKeys, const wordList &codeDictVars)
 Construct from the context and code dictionaries. More...
 
 dynamicCodeContext (const dictionary &contextDict, const wordList &codeKeys, const wordList &codeDictVars)
 Construct from the context dictionary also containing the code. More...
 
const HashTable< string > & code () const
 Return the code table. More...
 
const stringoptions () const
 Return the code-options. More...
 
const stringlibs () const
 Return the code-libs. More...
 
const SHA1Digestsha1 () const
 Return SHA1 digest calculated from include, options, code. More...
 
void read (const dictionary &contextDict, const dictionary &codeDict)
 
void read (const dictionary &contextDict)
 
void write (Ostream &os) const
 Write the code for restart. More...
 

Detailed Description

Encapsulation of dynamic code dictionaries.

Source files

Definition at line 50 of file dynamicCodeContext.H.

Constructor & Destructor Documentation

◆ dynamicCodeContext() [1/2]

dynamicCodeContext ( const dictionary contextDict,
const dictionary codeDict,
const wordList codeKeys,
const wordList codeDictVars 
)

Construct from the context and code dictionaries.

and lists of which entries correspond to code

Definition at line 138 of file dynamicCodeContext.C.

References dynamicCodeContext::read().

Here is the call graph for this function:

◆ dynamicCodeContext() [2/2]

dynamicCodeContext ( const dictionary contextDict,
const wordList codeKeys,
const wordList codeDictVars 
)

Construct from the context dictionary also containing the code.

and lists of which entries correspond

Definition at line 154 of file dynamicCodeContext.C.

Member Function Documentation

◆ code()

const HashTable<string>& code ( ) const
inline

Return the code table.

Definition at line 124 of file dynamicCodeContext.H.

Referenced by dynamicCode::reset().

Here is the caller graph for this function:

◆ options()

const string& options ( ) const
inline

Return the code-options.

Definition at line 130 of file dynamicCodeContext.H.

◆ libs()

const string& libs ( ) const
inline

Return the code-libs.

Definition at line 136 of file dynamicCodeContext.H.

◆ sha1()

const SHA1Digest& sha1 ( ) const
inline

Return SHA1 digest calculated from include, options, code.

Definition at line 142 of file dynamicCodeContext.H.

Referenced by dynamicCode::reset(), and dynamicCode::upToDate().

Here is the caller graph for this function:

◆ read() [1/2]

void read ( const dictionary contextDict,
const dictionary codeDict 
)

Definition at line 43 of file dynamicCodeContext.C.

References OSHA1stream::digest(), forAll, forAllConstIter, Foam::stringOps::inplaceExpandCodeString(), dictionary::lookupEntryPtr(), dictionaryName::name(), word::null, entry::stream(), and Foam::stringOps::trim().

Referenced by dynamicCodeContext::dynamicCodeContext().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [2/2]

void read ( const dictionary contextDict)

Definition at line 130 of file dynamicCodeContext.C.

References Foam::read().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Write the code for restart.

Definition at line 167 of file dynamicCodeContext.C.

References forAll, verbatimString::null, and Foam::writeEntry().

Here is the call graph for this function:

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