Zen
A cross-platform functional programming language

ListTemplateExpr Class Reference

Concrete class for AST Node representing a templated list instantiation. More...

#include <Ast.hpp>

Inheritance diagram for ListTemplateExpr:
InstanceExpr Expr Node

List of all members.

Public Member Functions

 ListTemplateExpr (const QualifiedType &type, const ExprList &list)
 Default constructor.

Private Member Functions

virtual void visit (Expr::Visitor &visitor) const
 Abstract visitor function.

Detailed Description

Concrete class for AST Node representing a templated list instantiation.

This creates an instance of a list. For example:

        local y = list<int>[];

Here, y is an instance of a list of int's. This is usually only required when y needs to be an empty list. At other times, this:

        local y = [1, 2];

is sufficient. The compiler will automatically deduce the type of the list at compile time.


Constructor & Destructor Documentation

ListTemplateExpr ( const QualifiedType type,
const ExprList list 
) [inline]

Default constructor.

Parameters:
typeExpression type
listThe initialization parameters

Member Function Documentation

void visit ( Expr::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Expr.


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