Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::lang::cx_cond Class Reference

The representation of a sequence of if/else statements using a Scheme like interface. More...

#include <more/lang/cx_expr.h>

Inheritance diagram for more::lang::cx_cond:

Inheritance graph
[legend]
Collaboration diagram for more::lang::cx_cond:

Collaboration graph
[legend]
List of all members.

Public Methods


Detailed Description

The representation of a sequence of if/else statements using a Scheme like interface.


Constructor & Destructor Documentation

more::lang::cx_cond::cx_cond   [inline]
 


Member Function Documentation

void more::lang::cx_cond::append cx_expr   condition,
cx_expr   consequence
 

Append an (condition, consequence) pair.

The first call creates an if (...) ..., succeeding calls creates else if (...) .... The final else ... is created by calling append(0, conter_consequence).

virtual void more::lang::cx_cond::append_ctors_to cx_block   blk [virtual]
 

Append constructors of this expression to blk.

Reimplemented from more::lang::cx_expr.

virtual void more::lang::cx_cond::append_dtors_to cx_block   blk [virtual]
 

Append destructors of this expression to blk.

Implementations of this function shall not declare variables in blk.

Reimplemented from more::lang::cx_expr.

virtual void more::lang::cx_cond::print_as_expr std::ostream &    os const [virtual]
 

Print the C source code of this expression.

The default implementation thows a logic error. This function may be overloaded to extend the backend, otherwise it may be easier to transform the source code.

Reimplemented from more::lang::cx_expr.

virtual void more::lang::cx_cond::print_as_stmt std::ostream &    os const [virtual]
 

Print this expression as a C statement.

The default implementation calls print_source and then appends a semicolon.

Reimplemented from more::lang::cx_expr.


The documentation for this class was generated from the following file:
Generated on Sat Sep 7 19:12:49 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.