Zen
A cross-platform functional programming language

IfElseStatement Class Reference

AST Node representing an if statement with an else. More...

#include <Ast.hpp>

Inheritance diagram for IfElseStatement:
IfStatement Statement Node

List of all members.

Public Member Functions

 IfElseStatement (const Ast::Expr &cond, const Ast::StatementList &tlist, const Ast::StatementList &flist)
 Default constructor.
const Ast::StatementListgetFList () const
 Returns the statement list to execute if condition is false.

Private Member Functions

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

Private Attributes

const Ast::StatementList_flist

Detailed Description

AST Node representing an if statement with an else.


Constructor & Destructor Documentation

IfElseStatement ( const Ast::Expr cond,
const Ast::StatementList tlist,
const Ast::StatementList flist 
) [inline]

Default constructor.

Parameters:
condThe condition expression
tlistThe true statement list
flistThe false statement list

Member Function Documentation

const Ast::StatementList& getFList ( ) const [inline]

Returns the statement list to execute if condition is false.

Returns:
False statement list.
void visit ( Statement::Visitor visitor) const [private, virtual]

Abstract visitor function.

Parameters:
visitorThe visitor object.

Implements Statement.


Member Data Documentation

const Ast::StatementList& _flist [private]
Returns:
False statement list.

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