Public Member Functions | Private Attributes | List of all members
ExprAstFunctionVariable Class Reference
Inheritance diagram for ExprAstFunctionVariable:
ExprAst

Public Member Functions

 ExprAstFunctionVariable (ExprAst *var, const QList< ExprAst > &args)
 
 ~ExprAstFunctionVariable ()
 
virtual TemplateVariant resolve (TemplateContext *c)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

ExprAstm_var
 
QList< ExprAstm_args
 

Detailed Description

Definition at line 1404 of file template.cpp.

Constructor & Destructor Documentation

ExprAstFunctionVariable::ExprAstFunctionVariable ( ExprAst var,
const QList< ExprAst > &  args 
)
inline

Definition at line 1407 of file template.cpp.

1408  : m_var(var), m_args(args)
1409  { TRACE(("ExprAstFunctionVariable()\n"));
1411  }
QList< ExprAst > m_args
Definition: template.cpp:1433
#define TRACE(x)
Definition: template.cpp:43
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
ExprAstFunctionVariable::~ExprAstFunctionVariable ( )
inline

Definition at line 1412 of file template.cpp.

1413  {
1414  delete m_var;
1415  }

Member Function Documentation

virtual TemplateVariant ExprAstFunctionVariable::resolve ( TemplateContext c)
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1416 of file template.cpp.

1417  {
1419  for (uint i=0;i<m_args.count();i++)
1420  {
1421  TemplateVariant v = m_args.at(i)->resolve(c);
1422  args.append(v);
1423  }
1424  TemplateVariant v = m_var->resolve(c);
1426  {
1427  v = v.call(args);
1428  }
1429  return v;
1430  }
Iterator append(const T &x)
Definition: qvaluelist.h:372
type * at(uint i) const
Definition: qlist.h:94
TemplateVariant call(const QValueList< TemplateVariant > &args)
Definition: template.h:272
static QCString args
Definition: declinfo.cpp:674
uint count() const
Definition: qlist.h:66
virtual TemplateVariant resolve(TemplateContext *)
Definition: template.cpp:1368
QList< ExprAst > m_args
Definition: template.cpp:1433
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90
Type type() const
Definition: template.h:142
unsigned uint
Definition: qglobal.h:351

Member Data Documentation

QList<ExprAst> ExprAstFunctionVariable::m_args
private

Definition at line 1433 of file template.cpp.

ExprAst* ExprAstFunctionVariable::m_var
private

Definition at line 1432 of file template.cpp.


The documentation for this class was generated from the following file: