35 {
"code",
"codeInclude"}
51 const dynamicCodeContext& context
54 dynCode.setFilterVariable(
"typeName", codeName());
57 dynCode.setFilterVariable(
"TemplateType", pTraits<Type>::typeName);
60 dynCode.addCompileFile(codeTemplateC(
"codedFunction1"));
63 dynCode.addCopyFile(codeTemplateH(
"codedFunction1"));
66 dynCode.setFilterVariable(
"verbose",
Foam::name(
bool(debug)));
70 Info<<
"compile " << codeName() <<
" sha1: " << context.sha1() <<
endl;
74 dynCode.setMakeOptions
78 +
"\n\nLIB_LIBS = \\\n"
104 redirectFunction1Ptr_ =
115 redirectFunction1Ptr_(cf1.redirectFunction1Ptr_, false)
142 units_.value.toStandard
144 redirectFunction1Ptr_->value
Run-time selectable general function of one variable.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Constructs a dynamically compiled Function1.
virtual Type integral(const scalar x1, const scalar x2) const
Integrate between two scalars.
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
virtual ~Coded()
Destructor.
virtual Type value(const scalar x) const
Return value as a function of a scalar.
virtual tmp< Function1< Type > > clone() const
Construct and return a clone.
Coded(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Base class for function objects and boundary conditions using dynamic code.
const word & codeName() const
Name of the dynamically generated CodedType.
void write(Ostream &os) const
Write the code for restart.
bool updateLibrary(const dictionary &dict) const
Update library from given updated dictionary as required.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Traits class for primitives.
A class for managing temporary objects.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const unitConversion unitAny
Ostream & endl(Ostream &os)
Add newline and flush stream.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.