Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::BooleanExpression Class Reference

Inheritance diagram for HAPI::BooleanExpression:

HAPI::ConstantExpression HAPI::Expression List of all members.

Detailed Description

A Boolean constant expression.

This type of expression is used to compare with state values of Boolean discrete chance nodes or decision nodes.


Public Member Functions

 BooleanExpression (bool value)
 Construct a BooleanExpression from a boolean value.

Expressionclone () const
 Clone the expression.

bool getBoolean () const
 Return the value of the BooleanExpression.

Operator getOperator () const
 Return the Operator for this Expression.

bool getValue () const
 Return the value of the Expression.

bool isBooleanExpression () const
 Test if the expression is a BooleanExpression.

bool isLabelExpression () const
 Test if the expression is a LabelExpression.

bool isNumberExpression () const
 Test if the expression is a NumberExpression.


Constructor & Destructor Documentation

HAPI::BooleanExpression::BooleanExpression bool  value  ) 
 

Construct a BooleanExpression from a boolean value.

Parameters:
value boolean


Member Function Documentation

Expression* HAPI::BooleanExpression::clone  )  const [virtual]
 

Clone the expression.

Returns:
Pointer to Expression

Implements HAPI::Expression.

bool HAPI::BooleanExpression::getBoolean  )  const
 

Return the value of the BooleanExpression.

Returns:
boolean

Operator HAPI::BooleanExpression::getOperator  )  const [inline]
 

Return the Operator for this Expression.

Returns:
Operator

bool HAPI::BooleanExpression::getValue  )  const [inline]
 

Return the value of the Expression.

Returns:
bool

bool HAPI::BooleanExpression::isBooleanExpression  )  const [inline, virtual]
 

Test if the expression is a BooleanExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

bool HAPI::BooleanExpression::isLabelExpression  )  const [inline, virtual]
 

Test if the expression is a LabelExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

bool HAPI::BooleanExpression::isNumberExpression  )  const [inline, virtual]
 

Test if the expression is a NumberExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.


Copyright Hugin Expert A/S 1993-2004