compileTemplate Class Reference
Inheritance diagram for compileTemplate:
Collaboration diagram for compileTemplate:

Public Member Functions

 compileTemplate (const word &templateName, const word &instantiatedName, const List< Pair< word >> &substitutions)
 Construct from name and dictionary. More...
 
- Public Member Functions inherited from codedBase
 TypeName ("codedBase")
 Runtime type information. More...
 
 codedBase (const word &name, const dictionary &dict, const wordList &codeKeys, const wordList &codeDictVars, const word &codeOptionsFileName, const wordList &compileFiles, const wordList &copyFiles, const bool reloadable=true)
 Construct from name and dictionary. More...
 
virtual ~codedBase ()
 Destructor. More...
 
bool updateLibrary (const dictionary &dict) const
 Update library from given updated dictionary as required. More...
 
void operator= (const codedBase &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from dynamicCode
 ClassName ("dynamicCode")
 
 dynamicCode (const dictionary &contextDict, const dictionary &codeDict, const word &codeName, const word &codeDirName, const wordList &codeKeys, const wordList &codeDictVars, const word &optionsFileName, const wordList &compileFiles, const wordList &copyFiles)
 Construct from the context and code dictionaries. More...
 
 dynamicCode (const dictionary &contextDict, const word &codeName, const word &codeDirName, const wordList &codeKeys, const wordList &codeDictVars, const word &optionsFileName, const wordList &compileFiles, const wordList &copyFiles)
 Construct from the context dictionary also containing the code. More...
 
const wordcodeName () const
 Return the code-name. More...
 
const wordcodeSha1Name () const
 Return the unique code name. More...
 
fileName libPath () const
 Library path for specified code name. More...
 
fileName libRelPath () const
 Library path for specified code name relative to $FOAM_CASE. More...
 
HashTable< string > & varSubstitutions ()
 
bool upToDate () const
 Verify if the copied code is up-to-date, based on Make/SHA1Digest. More...
 
bool copyOrCreateFiles (const bool verbose=false) const
 Copy/create files prior to compilation. More...
 
bool wmakeLibso () const
 Compile a libso. More...
 
void * loadLibrary (const fileName &libPath) const
 
void createLibrary (const dictionary &dict, const bool masterOnlyRead=false) const
 
void read (const dictionary &contextDict, const dictionary &codeDict)
 
void read (const dictionary &contextDict)
 
void write (Ostream &os) const
 Write the code for restart. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from codedBase
static word codedName (const word &name)
 Create a coded name from the given name. More...
 
- Static Public Member Functions inherited from dynamicCode
static word libraryBaseName (const fileName &libPath)
 Return the library basename without leading 'lib' or trailing '.so'. More...
 
static fileName resolveTemplate (const fileName &templateName)
 Resolve code-template via Foam::findConfigFile. More...
 
- Static Public Attributes inherited from dynamicCode
static int allowSystemOperations
 Flag if system operations are allowed. More...
 

Detailed Description

Definition at line 40 of file compileTemplate.H.

Constructor & Destructor Documentation

◆ compileTemplate()

compileTemplate ( const word templateName,
const word instantiatedName,
const List< Pair< word >> &  substitutions 
)

Construct from name and dictionary.

Definition at line 113 of file compileTemplate.C.

References forAll, Foam::name(), codedBase::updateLibrary(), and dynamicCode::varSubstitutions().

Here is the call graph for this function:

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