A cross-platform functional programming language

CastExpr Class Reference

Concrete class for AST Node representing a typecast. More...

#include <Ast.hpp>

Inheritance diagram for CastExpr:
Expr Node

List of all members.

Public Member Functions

 CastExpr (const QualifiedType &type, const Expr &expr)
 Default constructor.
const ExprgetExpr () const
 Returns the value expression.

Private Member Functions

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

Private Attributes

const Expr_expr
 The value expression.

Detailed Description

Concrete class for AST Node representing a typecast.

This is an internally used node and does not have a syntactic representation in the Zen language.

Constructor & Destructor Documentation

CastExpr ( const QualifiedType type,
const Expr expr 
) [inline]

Default constructor.

typeExpression type
exprThe value to cast.

Member Function Documentation

const Expr& getExpr ( ) const [inline]

Returns the value expression.

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

Abstract visitor function.

visitorThe visitor object.

Implements Expr.

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