Public Member Functions | Static Public Member Functions | List of all members
dynamicCodeContext Class Reference

Encapsulation of dynamic code dictionaries. More...

Public Member Functions

 dynamicCodeContext (const dictionary &)
 Construct from a dictionary. More...
 
const dictionarydict () const
 Return the parent dictionary context. More...
 
const stringinclude () const
 Return the code-includes. More...
 
const stringoptions () const
 Return the code-options. More...
 
const stringlibs () const
 Return the code-libs. More...
 
const stringcode () const
 Return the code. More...
 
const stringlocalCode () const
 Return the local (file-scope) code. More...
 
const SHA1Digestsha1 () const
 Return SHA1 digest calculated from include, options, code. More...
 

Static Public Member Functions

static void addLineDirective (string &, const label lineNum, const fileName &name)
 Helper: add #line directive. More...
 

Detailed Description

Encapsulation of dynamic code dictionaries.

Source files

Definition at line 49 of file dynamicCodeContext.H.

Constructor & Destructor Documentation

◆ dynamicCodeContext()

dynamicCodeContext ( const dictionary dict)

Member Function Documentation

◆ dict()

const dictionary& dict ( ) const
inline

Return the parent dictionary context.

Definition at line 86 of file dynamicCodeContext.H.

Referenced by codedBase::updateLibrary().

Here is the caller graph for this function:

◆ include()

const string& include ( ) const
inline

Return the code-includes.

Definition at line 92 of file dynamicCodeContext.H.

Referenced by dynamicCode::setFilterContext().

Here is the caller graph for this function:

◆ options()

const string& options ( ) const
inline

Return the code-options.

Definition at line 98 of file dynamicCodeContext.H.

Referenced by codedFunctionObject::prepare(), and CodedSource< Type >::prepare().

Here is the caller graph for this function:

◆ libs()

const string& libs ( ) const
inline

Return the code-libs.

Definition at line 104 of file dynamicCodeContext.H.

Referenced by codedFunctionObject::prepare(), and CodedSource< Type >::prepare().

Here is the caller graph for this function:

◆ code()

const string& code ( ) const
inline

Return the code.

Definition at line 110 of file dynamicCodeContext.H.

Referenced by dynamicCodeContext::addLineDirective(), and dynamicCode::setFilterContext().

Here is the caller graph for this function:

◆ localCode()

const string& localCode ( ) const
inline

Return the local (file-scope) code.

Definition at line 116 of file dynamicCodeContext.H.

Referenced by dynamicCode::setFilterContext().

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.

References dynamicCodeContext::addLineDirective(), and Foam::name().

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

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

◆ addLineDirective()

void addLineDirective ( string code,
const label  lineNum,
const fileName name 
)
static

Helper: add #line directive.

Definition at line 128 of file dynamicCodeContext.C.

References dynamicCodeContext::code(), and Foam::name().

Referenced by dynamicCodeContext::dynamicCodeContext(), codedFunctionObject::read(), and dynamicCodeContext::sha1().

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

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