Base class for function objects and boundary conditions using dynamic code. More...

Public Member Functions | |
| ClassName ("codedBase") | |
| Runtime type information. More... | |
| codedBase () | |
| Construct null. More... | |
| codedBase (const codedBase &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual | ~codedBase () |
| Destructor. More... | |
| void | operator= (const codedBase &)=delete |
| Disallow default bitwise assignment. More... | |
Protected Member Functions | |
| void | updateLibrary (const word &name) const |
| Update library as required. More... | |
| virtual dlLibraryTable & | libs () const =0 |
| Get the loaded dynamic libraries. More... | |
| virtual void | prepare (dynamicCode &, const dynamicCodeContext &) const =0 |
| Adapt the context for the current object. More... | |
| virtual string | description () const =0 |
| Return a description (type + name) for the output. More... | |
| virtual void | clearRedirect () const =0 |
| Clear any redirected objects. More... | |
| virtual const dictionary & | codeDict () const =0 |
| Get the dictionary to initialize the codeContext. More... | |
| virtual const wordList & | codeKeys () const =0 |
| Get the keywords associated with source code. More... | |
Base class for function objects and boundary conditions using dynamic code.
Definition at line 53 of file codedBase.H.
| codedBase | ( | ) |
Construct null.
Definition at line 349 of file codedBase.C.
|
virtual |
Destructor.
Definition at line 355 of file codedBase.C.
|
protected |
Update library as required.
Definition at line 284 of file codedBase.C.
References dynamicCode::checkSecurity(), dict, dynamicCodeContext::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::Info, dynamicCode::libraryBaseName(), dictionaryName::name(), Foam::name(), dynamicCodeContext::sha1(), dictionary::startLineNumber(), and SHA1Digest::str().

|
protectedpure virtual |
Get the loaded dynamic libraries.
Implemented in codedFunctionObject, and CodedSource< Type >.
|
protectedpure virtual |
Adapt the context for the current object.
Implemented in codedFunctionObject, and CodedSource< Type >.
|
protectedpure virtual |
Return a description (type + name) for the output.
Implemented in codedFunctionObject, and CodedSource< Type >.
|
protectedpure virtual |
Clear any redirected objects.
Implemented in codedFunctionObject, and CodedSource< Type >.
|
protectedpure virtual |
Get the dictionary to initialize the codeContext.
Implemented in codedFunctionObject, and CodedSource< Type >.
|
protectedpure virtual |
Get the keywords associated with source code.
Implemented in codedFunctionObject, and CodedSource< Type >.
| ClassName | ( | "codedBase" | ) |
Runtime type information.
|
delete |
Disallow default bitwise assignment.