toycalc::divide Class Reference

Divide two expression. More...

#include <expression.hh>

Inheritance diagram for toycalc::divide:

Inheritance graph
[legend]
Collaboration diagram for toycalc::divide:

Collaboration graph
[legend]
List of all members.

Public Methods

 divide (const expression *lhs, const expression *rhs)
 Construct the ratio. More...

double evaluate () const
 Evalute, store, and return the division. More...

void show (std::ostream &o) const
 Show the division. More...


Detailed Description

Divide two expression.

Definition at line 211 of file expression.hh.


Constructor & Destructor Documentation

toycalc::divide::divide const expression   lhs,
const expression   rhs
[inline]
 

Construct the ratio.

Definition at line 215 of file expression.hh.


Member Function Documentation

double toycalc::divide::evaluate   const [inline, virtual]
 

Evalute, store, and return the division.

Implements toycalc::expression.

Definition at line 218 of file expression.hh.

void toycalc::divide::show std::ostream   o const [inline, virtual]
 

Show the division.

Reimplemented from toycalc::expression.

Definition at line 221 of file expression.hh.


The documentation for this class was generated from the following file:
Top of page
Last update Wed Feb 5 03:34:18 2003
Christian Holm
Created by DoxyGen 1.2.15