Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

util::ariel::VariableManager::Simple Class Reference

#include <Expression.h>

Inheritance diagram for util::ariel::VariableManager::Simple:

util::ariel::VariableManager util::Hashtable< std::string, SmartPtr< Computable > > util::Object util::Map< key, value > util::Iterator< Pair< std::string, SmartPtr< Computable > > > util::Object util::Object List of all members.

Detailed Description

A simple variable manager that uses a hash table to store and retrieve variable values.


Public Methods

SmartPtr< ComputablegetValue (std::string name) throw (ComputationException&)
 Fetch the current value of a variable.

SmartPtr< ComputablesetValue (std::string name, const Computable &value) throw (ComputationException&)
 Set the value of a variable.


Member Function Documentation

SmartPtr< Computable > util::ariel::VariableManager::Simple::getValue std::string    name throw (ComputationException&) [virtual]
 

Fetch the current value of a variable.

Parameters:
name  the name of the variable, i.e. 'x' or 'abs'.
Returns:
the value of a variable
Exceptions:
ComputationException  & if the value is not set

Implements util::ariel::VariableManager.

SmartPtr< Computable > util::ariel::VariableManager::Simple::setValue std::string    name,
const Computable   value
throw (ComputationException&) [virtual]
 

Set the value of a variable.

Parameters:
name  the name of the variable, i.e. 'x' or 'y'.
value  new value for the variable
Returns:
the new value
Exceptions:
ComputationException  & if an error occurs

Implements util::ariel::VariableManager.


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.