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

Class representing a negation (not) operator in the AST. More...

Inheritance diagram for ExprAstNegate:
ExprAst

Public Member Functions

 ExprAstNegate (ExprAst *expr)
 
 ~ExprAstNegate ()
 
virtual TemplateVariant resolve (TemplateContext *c)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

ExprAstm_expr
 

Detailed Description

Class representing a negation (not) operator in the AST.

Definition at line 1494 of file template.cpp.

Constructor & Destructor Documentation

ExprAstNegate::ExprAstNegate ( ExprAst expr)
inline

Definition at line 1497 of file template.cpp.

1497  : m_expr(expr)
1498  { TRACE(("ExprAstNegate\n")); }
ExprAst * m_expr
Definition: template.cpp:1503
#define TRACE(x)
Definition: template.cpp:43
ExprAstNegate::~ExprAstNegate ( )
inline

Definition at line 1499 of file template.cpp.

1499 { delete m_expr; }
ExprAst * m_expr
Definition: template.cpp:1503

Member Function Documentation

virtual TemplateVariant ExprAstNegate::resolve ( TemplateContext c)
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1500 of file template.cpp.

1501  { return TemplateVariant(!m_expr->resolve(c).toBool()); }
bool toBool() const
Definition: template.cpp:207
virtual TemplateVariant resolve(TemplateContext *)
Definition: template.cpp:1368
ExprAst * m_expr
Definition: template.cpp:1503
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90

Member Data Documentation

ExprAst* ExprAstNegate::m_expr
private

Definition at line 1503 of file template.cpp.


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