32 void Foam::dynamicCodeContext::addLineDirective
39 code =
"#line " +
Foam::name(lineNum + 1) +
" \"" + name +
"\"\n" +
code;
62 const word& key = codeKeys[i];
78 code_.insert(key,
"");
112 os << options_ << libs_;
121 const word& key = codeKeys[i];
125 codePtrs[i]->startLineNumber(),
A class for handling verbatimStrings, derived from string.
#define forAll(list, i)
Loop across all elements in list.
string expand(const string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Expand occurrences of variables according to the mapping.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
void size(const label)
Override size to be inconsistent with allocated storage.
const dictionary & dict() const
Return the parent dictionary context.
A Foam::OSstream for calculating SHA-1 digests.
string trim(const string &)
Return string trimmed of leading and trailing whitespace.
const fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
An STL-conforming hash table.
word name(const complex &)
Return a string representation of a complex.
const HashTable< string > & code() const
Return the code table.
dynamicCodeContext(const dictionary &dict, const wordList &codeKeys)
Construct from a dictionary and lists of which entries correspond.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
A keyword and a list of tokens is an 'entry'.