FArgument Class Reference

Function which returns an argument value. More...

#include <FArgument.hpp>

Inheritance diagram for FArgument:

Function Grammar List of all members.

Public Member Functions

 FArgument (std::string strName)
Resultexecute (Context &context)
Grammarclone ()

Detailed Description

Function which returns an argument value.

Author:
Stephen E. Baker
Date:
2006-2007
Version:
1.0


Constructor & Destructor Documentation

FArgument::FArgument ( std::string  strName  ) 

Creates a new argument with the specified key

Parameters:
[in] strName The key or formal parameter associated with this symbol


Member Function Documentation

Grammar * FArgument::clone (  )  [virtual]

See also:
Grammar::clone

Implements Grammar.

Result * FArgument::execute ( Context context  )  [virtual]

Looks up the key in the context corresponding to itself and returns the value associated with it.

Parameters:
[in] context A mapping of keys to values.
Returns:
The value of the symbol as specified by the context.
See also:
Result

Context::setArgumentValue

Context::getArgumentValue

Implements Grammar.


The documentation for this class was generated from the following files:
Generated on Mon Jan 15 01:21:04 2007 for Creatively Named Grammar Guided Genetic Programming System by  doxygen 1.4.7