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

Class representing a number in the AST. More...

Inheritance diagram for ExprAstNumber:
ExprAst

Public Member Functions

 ExprAstNumber (int num)
 
int number () const
 
virtual TemplateVariant resolve (TemplateContext *)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

int m_number
 

Detailed Description

Class representing a number in the AST.

Definition at line 1372 of file template.cpp.

Constructor & Destructor Documentation

ExprAstNumber::ExprAstNumber ( int  num)
inline

Definition at line 1375 of file template.cpp.

1375  : m_number(num)
1376  { TRACE(("ExprAstNumber(%d)\n",num)); }
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

int ExprAstNumber::number ( ) const
inline

Definition at line 1377 of file template.cpp.

1377 { return m_number; }
virtual TemplateVariant ExprAstNumber::resolve ( TemplateContext )
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1378 of file template.cpp.

1378 { return TemplateVariant(m_number); }
Variant type which can hold one value of a fixed set of types.
Definition: template.h:90

Member Data Documentation

int ExprAstNumber::m_number
private

Definition at line 1380 of file template.cpp.


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