Base class for function objects and boundary conditions using dynamic code. More...
Public Member Functions | |
TypeName ("codedBase") | |
Runtime type information. More... | |
codedBase () | |
Construct null. More... | |
codedBase (const word &name, const dictionary &dict) | |
Construct from name and dictionary. More... | |
codedBase (const dictionary &dict) | |
Construct from dictionary. More... | |
codedBase (const codedBase &cb) | |
Copy constructor. More... | |
virtual | ~codedBase () |
Destructor. More... | |
void | operator= (const codedBase &)=delete |
Disallow default bitwise assignment. More... | |
word | codeTemplateC (const word &baseTypeName) const |
word | codeTemplateH (const word &baseTypeName) const |
virtual void | writeCode (Ostream &os) const |
Protected Member Functions | |
void | updateLibrary () const |
Update library as required. More... | |
virtual const word & | codeName () const |
Name of the dynamically generated CodedType. More... | |
virtual string | description () const |
Return a description (type + name) for the output. More... | |
virtual const dictionary & | codeDict () const |
Get the dictionary to initialise the codeContext. More... | |
virtual wordList | codeKeys () const =0 |
Get the keywords associated with source code. More... | |
virtual wordList | codeDictVars () const =0 |
Get the name of the dictionary variables in the 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 390 of file codedBase.C.
codedBase | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 394 of file codedBase.C.
codedBase | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 401 of file codedBase.C.
Copy constructor.
Definition at line 408 of file codedBase.C.
|
virtual |
Destructor.
Definition at line 417 of file codedBase.C.
|
protected |
Update library as required.
Definition at line 314 of file codedBase.C.
References dynamicCode::checkSecurity(), dynamicCode::codeName(), dict, dynamicCodeContext::dict(), Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dlLibraryTable::findLibrary(), Foam::Info, dynamicCode::libPath(), dynamicCode::libraryBaseName(), Foam::libs, dictionaryName::name(), Foam::name(), dynamicCodeContext::sha1(), dictionary::startLineNumber(), and SHA1Digest::str().
Referenced by codedFixedValueFvPatchField< Type >::codedFixedValueFvPatchField(), codedFixedValuePointPatchField< Type >::codedFixedValuePointPatchField(), codedMixedFvPatchField< Type >::codedMixedFvPatchField(), and compileTemplate::compileTemplate().
|
protectedvirtual |
Name of the dynamically generated CodedType.
Definition at line 376 of file codedBase.C.
|
protectedvirtual |
Return a description (type + name) for the output.
Definition at line 196 of file codedBase.C.
References Foam::type().
|
protectedvirtual |
Get the dictionary to initialise the codeContext.
Definition at line 382 of file codedBase.C.
|
protectedpure virtual |
Get the keywords associated with source code.
|
protectedpure virtual |
Get the name of the dictionary variables in the source code.
|
protectedpure virtual |
Adapt the context for the current object.
|
protectedpure virtual |
Clear any redirected objects.
TypeName | ( | "codedBase" | ) |
Runtime type information.
|
delete |
Disallow default bitwise assignment.
Foam::word codeTemplateC | ( | const word & | baseTypeName | ) | const |
Definition at line 423 of file codedBase.C.
Foam::word codeTemplateH | ( | const word & | baseTypeName | ) | const |
Definition at line 429 of file codedBase.C.
|
virtual |
Definition at line 435 of file codedBase.C.
References List< T >::append(), token::END_STATEMENT, forAll, found, Foam::nl, Ostream::write(), Foam::writeEntry(), and Foam::writeKeyword().