Public Member Functions | Private Attributes | List of all members
ExprAstFilterAppl Class Reference

Class representing a filter applied to an expression in the AST. More...

Inheritance diagram for ExprAstFilterAppl:
ExprAst

Public Member Functions

 ExprAstFilterAppl (ExprAst *expr, ExprAstFilter *filter)
 
 ~ExprAstFilterAppl ()
 
virtual TemplateVariant resolve (TemplateContext *c)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

ExprAstm_expr
 
ExprAstFilterm_filter
 

Detailed Description

Class representing a filter applied to an expression in the AST.

Definition at line 1465 of file template.cpp.

Constructor & Destructor Documentation

ExprAstFilterAppl::ExprAstFilterAppl ( ExprAst expr,
ExprAstFilter filter 
)
inline

Definition at line 1468 of file template.cpp.

1469  : m_expr(expr), m_filter(filter)
1470  { TRACE(("ExprAstFilterAppl\n")); }
ExprAstFilter * m_filter
Definition: template.cpp:1478
ExprAst * m_expr
Definition: template.cpp:1477
#define TRACE(x)
Definition: template.cpp:43
ExprAstFilterAppl::~ExprAstFilterAppl ( )
inline

Definition at line 1471 of file template.cpp.

1471 { delete m_expr; delete m_filter; }
ExprAstFilter * m_filter
Definition: template.cpp:1478
ExprAst * m_expr
Definition: template.cpp:1477

Member Function Documentation

virtual TemplateVariant ExprAstFilterAppl::resolve ( TemplateContext c)
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1472 of file template.cpp.

1473  {
1474  return m_filter->apply(m_expr->resolve(c),c);
1475  }
ExprAstFilter * m_filter
Definition: template.cpp:1478
ExprAst * m_expr
Definition: template.cpp:1477
virtual TemplateVariant resolve(TemplateContext *)
Definition: template.cpp:1368
TemplateVariant apply(const TemplateVariant &v, TemplateContext *c)
Definition: template.cpp:1444

Member Data Documentation

ExprAst* ExprAstFilterAppl::m_expr
private

Definition at line 1477 of file template.cpp.

ExprAstFilter* ExprAstFilterAppl::m_filter
private

Definition at line 1478 of file template.cpp.


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