>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::ArithmeticOperator Class Reference

#include <XabslDecimalExpression.h>

Inheritance diagram for xabsl::ArithmeticOperator:

Inheritance graph
[legend]
Collaboration diagram for xabsl::ArithmeticOperator:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for the +, -, *, / and operator.

Author:
Martin Loetzsch

Definition at line 148 of file XabslDecimalExpression.h.


Public Member Functions

void create (DecimalExpression *operand1, DecimalExpression *operand2)
 Creates the operator.

virtual double getValue () const=0
 Calculates the value of the decimal expression.

 ~ArithmeticOperator ()
 Destructor.


Protected Attributes

DecimalExpressionoperand1
 The first operand.

DecimalExpressionoperand2
 The second operand.


Constructor & Destructor Documentation

xabsl::ArithmeticOperator::~ArithmeticOperator  ) 
 

Destructor.

Deletes the operands

Definition at line 176 of file XabslDecimalExpression.cpp.


Member Function Documentation

void xabsl::ArithmeticOperator::create DecimalExpression operand1,
DecimalExpression operand2
 

Creates the operator.

Parameters:
operand1 The first operand
operand2 The second operand

Definition at line 170 of file XabslDecimalExpression.cpp.

Referenced by xabsl::DecimalExpression::create().

virtual double xabsl::ArithmeticOperator::getValue  )  const [pure virtual]
 

Calculates the value of the decimal expression.

Implements xabsl::DecimalExpression.

Implemented in xabsl::PlusOperator, xabsl::MinusOperator, xabsl::MultiplyOperator, xabsl::DivideOperator, and xabsl::ModOperator.


Member Data Documentation

DecimalExpression* xabsl::ArithmeticOperator::operand1 [protected]
 

The first operand.

Definition at line 166 of file XabslDecimalExpression.h.

DecimalExpression* xabsl::ArithmeticOperator::operand2 [protected]
 

The second operand.

Definition at line 169 of file XabslDecimalExpression.h.


The documentation for this class was generated from the following files:

Up | Main Page | Generated at Wed Aug 19 17:32:30 2009.