All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dynamicCodeContext Class Reference

Encapsulation of dynamic code dictionaries. More...

Public Member Functions

 dynamicCodeContext (const dictionary &dict, const wordList &codeKeys)
 Construct from a dictionary and lists of which entries correspond. More...
 
const dictionarydict () const
 Return the parent dictionary context. 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...
 

Detailed Description

Encapsulation of dynamic code dictionaries.

Source files

Definition at line 50 of file dynamicCodeContext.H.

Constructor & Destructor Documentation

◆ dynamicCodeContext()

dynamicCodeContext ( const dictionary dict,
const wordList codeKeys 
)

Construct from a dictionary and lists of which entries correspond.

to code

Definition at line 46 of file dynamicCodeContext.C.

References dynamicCodeContext::dict(), Foam::stringOps::expand(), forAll, forAllConstIter(), dictionary::lookupEntryPtr(), dictionaryName::name(), List< T >::size(), entry::stream(), and Foam::stringOps::trim().

Here is the call graph for this function:

Member Function Documentation

◆ dict()

const dictionary& dict ( ) const
inline

Return the parent dictionary context.

Definition at line 98 of file dynamicCodeContext.H.

Referenced by dynamicCodeContext::dynamicCodeContext(), and codedBase::updateLibrary().

Here is the caller graph for this function:

◆ code()

const HashTable<string>& code ( ) const
inline

Return the code table.

Definition at line 104 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 110 of file dynamicCodeContext.H.

Referenced by CodedSource< Type >::prepare().

Here is the caller graph for this function:

◆ libs()

const string& libs ( ) const
inline

Return the code-libs.

Definition at line 116 of file dynamicCodeContext.H.

Referenced by CodedSource< Type >::prepare().

Here is the caller graph for this function:

◆ sha1()

const SHA1Digest& sha1 ( ) const
inline

Return SHA1 digest calculated from include, options, code.

Definition at line 122 of file dynamicCodeContext.H.

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

Here is the caller graph for this function:

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