class MapVariableArguments
|
. More... |
|
|
Public Members
- MapVariableArguments ( const QString &decl = QString(), const QString &nam = QString(), bool parsedefinition=true )
- MapVariableArguments (const MapVariableArguments &m)
- virtual Map * copy (void)
- virtual void setParameterExpression (unsigned int i,const QString &expr)
- virtual void setParameterExpression (unsigned int i, Map *expr)
- virtual void setParameterExpression (unsigned int i, Parameter *expr)
- void addParameterName (const QString &name)
- void delParameterName (const QString &name)
- void mimetizeFunction (Map *m)
- virtual Map * eval (const QDict<Map> &)
- virtual Map * derive (const class Variable &var, const QDict <Map> &vars)
- virtual QString string (void) const
- int argumentIndex (const QString &nam) const
- int isArgumentName (const QString &nam) const
Protected Members
- unsigned int maxparams
- void allocParameter (unsigned int i, Parameter *parameter)
- void freeParameter (unsigned int i)
Detailed Description
... as follows :
g(1) ----> (g's first parameter name)=1 == x=1
|
g(x) ----> x=x
|
*
/ \
3 f(x) ----> x=eval(x)=1
|
f(x) ----> x=x
|
+
/ \
x 2
void mimetizeFunction (Map *m)
|
When doing lazy evaluation, mimetizeFunction is used to get as much information
from m as needed to evaluate this function. That is, number of parameter,
parameter names, and most important, the map's tree.
Note that this method also removes the parameters in m, moving them to this
object
Map * eval (const QDict<Map> &)
|
[virtual]
Checks if we're doing lazy function evaluation, and calls setFunction if
appropiate. Then, it calls Map::eval.
Reimplemented from Map
int argumentIndex (const QString &nam)
|
[const]
Returns the index of the argument with name nam (in the range 0..nparams)
Returns -1 if there's no parameter with that name
Generated by: antlarr@terminus on Wed May 31 08:19:51 2000, using kdoc 2.0a22. |