46 #ifndef functionEntry_H
47 #define functionEntry_H
72 void readRestOfArgs(
string& fNameArgs,
Istream& is)
const;
120 const bool optional =
false
237 primitiveEntryIstream,
243 (contextDict,
entry, is)
label lineNumber() const
Return current stream line number.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A keyword and a list of tokens is an 'entry'.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
tokenList readArgOrList(const functionName &functionType, Istream &is) const
Read a single argument or list.
declareMemberFunctionSelectionTable(bool, functionEntry, execute, primitiveEntryIstream,(const dictionary &contextDict, primitiveEntry &contextEntry, Istream &is),(contextDict, entry, is))
virtual void write(Ostream &) const
Write.
virtual bool execute(dictionary &contextDict, Istream &is)=0
Expand the functionEntry into the contextDict.
static bool insert(const dictionary &parentDict, dictionary &contextDict, const token &t, Istream &is)
Read entry starting from token t and insert into contextDict.
tokenList readFuncNameArgList(const functionName &functionType, Istream &is) const
Read the function name and optional argument list.
FunctionTypeName("functionEntry")
tokenList readArgList(const functionName &functionType, Istream &is, const bool optional=false) const
tokenList readFileNameArgList(const functionName &functionType, Istream &is) const
Read the filen name and optional argument list.
void operator=(const functionEntry &)=delete
Disallow default bitwise assignment.
static autoPtr< functionEntry > New(const keyType &functionName, const dictionary &parentDict, Istream &is)
Construct from Istream and insert into dictionary.
declareRunTimeSelectionTable(autoPtr, functionEntry, dictionary,(const label lineNumber, const dictionary &parentDict, Istream &is),(lineNumber, parentDict, is))
A functionName is a word starting with '#'.
A class for handling keywords in dictionaries.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
friend class functionEntry
A token holds items read from Istream.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.