Zen
A cross-platform functional programming language

IfStatement Class Reference

Abstract base class for AST Node representing a conditional statement. More...

#include <Ast.hpp>

Inheritance diagram for IfStatement:
Statement Node IfElseStatement IfThenStatement

List of all members.

Public Member Functions

const Ast::ExprgetCond () const
 Returns the condition to test.
const Ast::StatementListgetTList () const
 Returns the statement list to execute if condition is true.

Protected Member Functions

 IfStatement (const Ast::Expr &cond, const Ast::StatementList &tlist)
 Default constructor.

Private Attributes

const Ast::Expr_cond
const Ast::StatementList_tlist

Detailed Description

Abstract base class for AST Node representing a conditional statement.


Constructor & Destructor Documentation

IfStatement ( const Ast::Expr cond,
const Ast::StatementList tlist 
) [inline, protected]

Default constructor.

Parameters:
condThe condition expression
tlistThe true statement list

Member Function Documentation

const Ast::Expr& getCond ( ) const [inline]

Returns the condition to test.

Returns:
Expression of condition.
const Ast::StatementList& getTList ( ) const [inline]

Returns the statement list to execute if condition is true.

Returns:
True statement list.

Member Data Documentation

const Ast::Expr& _cond [private]
Returns:
Condition expression
const Ast::StatementList& _tlist [private]
Returns:
True statement list.

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