Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::LabelExpression Class Reference

Inheritance diagram for HAPI::LabelExpression:

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

Detailed Description

A label constant expression.

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


Public Member Functions

 LabelExpression (const std::string &label)
 Construct a LabelExpression from a string.

Expressionclone () const
 Clone the expression.

std::string getLabel () const
 Return the label of the expresion.

std::string getValue () const
 Return the label of the expresion.

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::LabelExpression::LabelExpression const std::string &  label  ) 
 

Construct a LabelExpression from a string.

Parameters:
label A Standard C++ Library string.


Member Function Documentation

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

Clone the expression.

Returns:
Pointer to Expression

Implements HAPI::Expression.

std::string HAPI::LabelExpression::getLabel  )  const
 

Return the label of the expresion.

Returns:
string

std::string HAPI::LabelExpression::getValue  )  const [inline]
 

Return the label of the expresion.

Returns:
string

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

Test if the expression is a BooleanExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

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

Test if the expression is a LabelExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.

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

Test if the expression is a NumberExpression.

Returns:
boolean

Implements HAPI::ConstantExpression.


Copyright Hugin Expert A/S 1993-2004