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 |
Update library as required. More... | |
virtual const word & | codeName () const =0 |
Name of the dynamically generated CodedType. More... | |
virtual string | description () const =0 |
Return a description (type + name) for the output. 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... | |
virtual void | prepare (dynamicCode &, const dynamicCodeContext &) const =0 |
Adapt the context for the current object. More... | |
virtual void | clearRedirect () const =0 |
Clear any redirected objects. 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 347 of file codedBase.C.
|
virtual |
Destructor.
Definition at line 353 of file codedBase.C.
|
protected |
Update library as required.
Definition at line 283 of file codedBase.C.
References dynamicCode::checkSecurity(), dict, dynamicCodeContext::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dlLibraryTable::findLibrary(), Foam::Info, dynamicCode::libraryBaseName(), Foam::libs, dictionaryName::name(), Foam::name(), dynamicCodeContext::sha1(), dictionary::startLineNumber(), and SHA1Digest::str().
|
protectedpure virtual |
Name of the dynamically generated CodedType.
Implemented in CodedSource< Type >, CodedBase< CodedType >, CodedBase< functionObject >, CodedBase< codedFixedValuePointPatchFieldBase >, CodedBase< codedMixedFvPatchFieldBase >, CodedBase< coded >, and CodedBase< codedFixedValueFvPatchFieldBase >.
|
protectedpure virtual |
Return a description (type + name) for the output.
Implemented in CodedSource< Type >.
|
protectedpure virtual |
Get the dictionary to initialize the codeContext.
Implemented in CodedSource< Type >, CodedBase< CodedType >, CodedBase< functionObject >, CodedBase< codedFixedValuePointPatchFieldBase >, CodedBase< codedMixedFvPatchFieldBase >, CodedBase< coded >, and CodedBase< codedFixedValueFvPatchFieldBase >.
|
protectedpure virtual |
Get the keywords associated with source code.
Implemented in CodedSource< Type >.
|
protectedpure virtual |
Adapt the context for the current object.
Implemented in CodedSource< Type >.
|
protectedpure virtual |
Clear any redirected objects.
Implemented in CodedSource< Type >.
ClassName | ( | "codedBase" | ) |
Runtime type information.
|
delete |
Disallow default bitwise assignment.