My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
ExprAstVariable Class Reference

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

Inheritance diagram for ExprAstVariable:
ExprAst

Public Member Functions

 ExprAstVariable (const char *name)
 
const QCString & name () const
 
virtual TemplateVariant resolve (TemplateContext *c)
 
- Public Member Functions inherited from ExprAst
virtual ~ExprAst ()
 

Private Attributes

QCString m_name
 

Detailed Description

Class representing a variable in the AST.

Definition at line 1452 of file template.cpp.

Constructor & Destructor Documentation

ExprAstVariable::ExprAstVariable ( const char *  name)
inline

Definition at line 1455 of file template.cpp.

References TRACE.

{ TRACE(("ExprAstVariable(%s)\n",name)); }

Member Function Documentation

const QCString& ExprAstVariable::name ( ) const
inline

Definition at line 1457 of file template.cpp.

References m_name.

{ return m_name; }
virtual TemplateVariant ExprAstVariable::resolve ( TemplateContext c)
inlinevirtual

Reimplemented from ExprAst.

Definition at line 1458 of file template.cpp.

References TemplateContext::get(), TemplateVariant::isValid(), TemplateContextImpl::line(), m_name, TemplateContextImpl::templateName(), and TemplateContextImpl::warn().

{
TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
if (!v.isValid())
{
if (ci) ci->warn(ci->templateName(),ci->line(),"undefined variable '%s' in expression",m_name.data());
}
return v;
}

Member Data Documentation

QCString ExprAstVariable::m_name
private

Definition at line 1469 of file template.cpp.

Referenced by name(), and resolve().


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