Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ValueGenerator_Expression< T > Class Template Reference

#include <valuegen.h>

Inheritance diagram for ValueGenerator_Expression< T >:

Inheritance graph
[legend]
Collaboration diagram for ValueGenerator_Expression< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = double>
class ValueGenerator_Expression< T >

Evaluate the given expression using a copy of the given parser each time.

Definition at line 382 of file valuegen.h.

Public Methods

 ValueGenerator_Expression (string expression, const StringParser &parser)
 ValueGenerator_Expression (StringArgs &args)
virtual string stringrep () const
 Returns the value as a scalar.

 ValueGenerator_Expression (const self &other)
 Copy constructor.

virtual bool next ()
 Advance to the next state (whatever that means for this object).

virtual void reset ()
 Reset to the starting state.

virtual ValueGenerator< T > * clone () const
 Constructs an identical copy of self and returns it.


Member Function Documentation

template<class T = double>
virtual string ValueGenerator_Expression< T >::stringrep   const [inline, virtual]
 

Returns the value as a scalar.

Derived classes will usually want to provide a more specific representation, namely what the StringArgs constructor will accept for that class.

At present it cannot be guaranteed that the value returned is actually what was used to create the object; perhaps the StringArgs passed to the constructor should be saved instead. If so, the StringArgs constructor above would have to be changed to include a string specifying the ValueGenerator type.

Reimplemented from ValueGenerator< T >.

Definition at line 398 of file valuegen.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:27 2003 for RF-LISSOM by doxygen1.3-rc2