My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 1562 of file template.cpp.

Constructor & Destructor Documentation

ExprAstNegate::ExprAstNegate ( ExprAst expr)
inline

Definition at line 1565 of file template.cpp.

References TRACE.

: m_expr(expr)
{ TRACE(("ExprAstNegate\n")); }
ExprAstNegate::~ExprAstNegate ( )
inline

Definition at line 1567 of file template.cpp.

References m_expr.

{ delete m_expr; }

Member Function Documentation

virtual TemplateVariant ExprAstNegate::resolve ( TemplateContext c)
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1568 of file template.cpp.

References m_expr, ExprAst::resolve(), and TemplateVariant::toBool().

{ return TemplateVariant(!m_expr->resolve(c).toBool()); }

Member Data Documentation

ExprAst* ExprAstNegate::m_expr
private

Definition at line 1571 of file template.cpp.

Referenced by resolve(), and ~ExprAstNegate().


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