32 void Foam::dynamicCodeContext::addLineDirective
56 const word& key = codeKeys_[i];
67 code_.insert(key, codeStrings_[i]);
71 code_.insert(key,
"");
76 const entry* optionsPtr =
110 os << options_ << libs_;
118 const word& key = codeKeys_[i];
122 codePtrs[i]->startLineNumber(),
132 read(contextDict, contextDict);
147 codeDictVars_(codeDictVars),
148 codeStrings_(codeKeys.size())
150 read(contextDict, codeDict);
173 writeEntry(os, codeKeys_[i], codeStrings_[i]);
179 writeEntry(os,
"codeOptions", optionsString_);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
An STL-conforming hash table.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A Foam::OSstream for calculating SHA-1 digests.
SHA1Digest digest()
Return the SHA-1 digest for the data processed until now.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const fileName & name() const
Return the dictionary name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
Encapsulation of dynamic code dictionaries.
const HashTable< string > & code() const
Return the code table.
dynamicCodeContext(const dictionary &contextDict, const dictionary &codeDict, const wordList &codeKeys, const wordList &codeDictVars)
Construct from the context and code dictionaries.
void write(Ostream &os) const
Write the code for restart.
void read(const dictionary &contextDict, const dictionary &codeDict)
A keyword and a list of tokens is an 'entry'.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
A class for handling verbatimStrings, derived from string.
static const verbatimString null
An empty verbatimString.
A class for handling words, derived from string.
static const word null
An empty word.
string & inplaceExpandCodeString(string &, const dictionary &dict, const word &dictVar="dict", const char sigil='$')
Inplace expand occurrences of variables according to the dictionary.
string trim(const string &)
Return string trimmed of leading and trailing whitespace.
bool read(const char *, int32_t &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.