Zen
A cross-platform functional programming language

ParseContext::IndexableTypeCaster Class Reference

The Indexable type visitor. More...

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

List of all members.

Public Member Functions

void cast (ParseContext &pctx, const Ast::TypeSpec &ptypeSpec)
 Check the type and call one of the visitors accordingly.

Private Member Functions

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

Detailed Description

The Indexable type visitor.


Member Function Documentation

void cast ( ParseContext pctx,
const Ast::TypeSpec ptypeSpec 
) [inline]

Check the type and call one of the visitors accordingly.

Parameters:
pctxThe ParseContext
ptypeSpecThe type to check.
virtual void visitBuffer ( ParseContext pctx,
const Ast::TypeDecl type 
) [private, pure virtual]

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.

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

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.

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

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.

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

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.

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

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.

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

Abstract visitor function.

Parameters:
pctxThe ParseContext
typeThe type to check.

Implemented in ParseContext::InitVariableDefCreator, and ParseContext::IndexExprCreator.


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