Zen
A cross-platform functional programming language

ParseContext::InitVariableDefCreator Class Reference

The indexable type visitor for init variable definitions. More...

#include <ParseContext.hpp>

Inheritance diagram for ParseContext::InitVariableDefCreator:
ParseContext::IndexableTypeCaster

List of all members.

Public Member Functions

 InitVariableDefCreator (const Ast::VariableDef::DefType &defType, const z::string &name, const Ast::Expr &expr)
 Default constructor.
Ast::InitVariableDef & create (ParseContext &pctx, const Ast::TypeSpec &typeSpec)
 Create the Init variable.

Private Member Functions

virtual void visitList (ParseContext &pctx, const Ast::ListTemplate &type)
 Abstract visitor function.
virtual void visitDict (ParseContext &pctx, const Ast::DictTemplate &type)
 Abstract visitor function.
virtual void visitTree (ParseContext &pctx, const Ast::TypeDecl &type)
 Abstract visitor function.
virtual void visitBuffer (ParseContext &pctx, const Ast::TypeDecl &type)
 Abstract visitor function.
virtual void visitView (ParseContext &pctx, const Ast::TypeDecl &type)
 Abstract visitor function.
virtual void visitWidget (ParseContext &pctx, const Ast::TypeDecl &type)
 Abstract visitor function.

Private Attributes

const Ast::VariableDef::DefType & _defType
 The definition type for variable.
const z::string & _name
 Variable name.
const Ast::Expr & _expr
 Init expression for type.
Ast::InitVariableDef * _rv
 Variable definition, to be returned.

Detailed Description

The indexable type visitor for init variable definitions.


Constructor & Destructor Documentation

InitVariableDefCreator ( const Ast::VariableDef::DefType &  defType,
const z::string &  name,
const Ast::Expr &  expr 
) [inline]

Default constructor.

Parameters:
defTypeThe variable definition type
nameName of variable
exprThe init expression

Member Function Documentation

Ast::InitVariableDef& create ( ParseContext &  pctx,
const Ast::TypeSpec &  typeSpec 
) [inline]

Create the Init variable.

Parameters:
pctxThe ParseContext
typeSpecThe type to check.
Returns:
The create variable definition
virtual void visitBuffer ( ParseContext &  pctx,
const Ast::TypeDecl &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.

virtual void visitDict ( ParseContext &  pctx,
const Ast::DictTemplate &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.

virtual void visitList ( ParseContext &  pctx,
const Ast::ListTemplate &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.

virtual void visitTree ( ParseContext &  pctx,
const Ast::TypeDecl &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.

virtual void visitView ( ParseContext &  pctx,
const Ast::TypeDecl &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.

virtual void visitWidget ( ParseContext &  pctx,
const Ast::TypeDecl &  type 
) [inline, private, virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implements ParseContext::IndexableTypeCaster.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines