>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::EnumeratedInputSymbolRef Class Reference

#include <XabslEnumeratedExpression.h>

Inheritance diagram for xabsl::EnumeratedInputSymbolRef:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents an 'enumerated-input-symbol-ref' element of the option graph.

Author:
Max Risler

Martin Loetzsch

Definition at line 154 of file XabslEnumeratedExpression.h.


Public Member Functions

 EnumeratedInputSymbolRef (const Enumeration *enumeration, InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Constructor.

 ~EnumeratedInputSymbolRef ()
 Destructor.

virtual int getValue () const
 Evaluates the enumerated expression.


Private Attributes

EnumeratedInputSymbolsymbol
 The referenced symbol.

ParameterAssignmentparameters
 The parameter assignments of the referenced symbol.


Constructor & Destructor Documentation

xabsl::EnumeratedInputSymbolRef::EnumeratedInputSymbolRef const Enumeration enumeration,
InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
 

Constructor.

Creates the element

Parameters:
enumeration A reference to the enumeration which is the domain of this expression
input An input source for the intermediate code. It must be opened and read until A position where a expression starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state

Definition at line 130 of file XabslEnumeratedExpression.cpp.

References xabsl::ParameterAssignment::create(), xabsl::Symbols::enumeratedInputSymbols, xabsl::EnumeratedInputSymbol::enumeration, xabsl::ErrorHandler::error(), xabsl::NamedArray< EnumeratedInputSymbol * >::exists(), xabsl::ErrorHandler::message(), xabsl::NamedItem::n, xabsl::InputSymbol< int >::parameters, xabsl::InputSource::readString(), and XABSL_DEBUG_INIT.

Here is the call graph for this function:

xabsl::EnumeratedInputSymbolRef::~EnumeratedInputSymbolRef  ) 
 

Destructor.

Definition at line 162 of file XabslEnumeratedExpression.cpp.


Member Function Documentation

int xabsl::EnumeratedInputSymbolRef::getValue  )  const [virtual]
 

Evaluates the enumerated expression.

Implements xabsl::EnumeratedExpression.

Definition at line 168 of file XabslEnumeratedExpression.cpp.

References xabsl::InputSymbol< int >::getValue(), xabsl::InputSymbol< int >::parametersChanged(), and xabsl::ParameterAssignment::set().

Here is the call graph for this function:


Member Data Documentation

EnumeratedInputSymbol* xabsl::EnumeratedInputSymbolRef::symbol [private]
 

The referenced symbol.

Definition at line 182 of file XabslEnumeratedExpression.h.

ParameterAssignment* xabsl::EnumeratedInputSymbolRef::parameters [private]
 

The parameter assignments of the referenced symbol.

Definition at line 185 of file XabslEnumeratedExpression.h.


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

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