toycalc::binary Class Reference

ABC for binary operators. More...

#include <expression.hh>

Inheritance diagram for toycalc::binary:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 binary (const expression *lhs, const expression *rhs)
 Make a binary operation using left and right hand side. More...

 binary (const binary &b)
 Copy a binary operation. More...

virtual ~binary ()
 Destroy a binary opertion. More...


Protected Attributes

const expression_lhs
 The right hand side. More...

const expression_rhs
 The left hand side. More...


Detailed Description

ABC for binary operators.

Definition at line 132 of file expression.hh.


Constructor & Destructor Documentation

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

Make a binary operation using left and right hand side.

Definition at line 141 of file expression.hh.

toycalc::binary::binary const binary &    b [inline]
 

Copy a binary operation.

Definition at line 144 of file expression.hh.

virtual toycalc::binary::~binary   [inline, virtual]
 

Destroy a binary opertion.

Definition at line 146 of file expression.hh.


Member Data Documentation

const expression* toycalc::binary::_lhs [protected]
 

The right hand side.

Definition at line 136 of file expression.hh.

const expression* toycalc::binary::_rhs [protected]
 

The left hand side.

Definition at line 138 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:16 2003
Christian Holm
Created by DoxyGen 1.2.15