#include <valuegen.h>
Inheritance diagram for ValueGenerator_Increment< T >:
Definition at line 339 of file valuegen.h.
Public Methods | |
ValueGenerator_Increment (T init_value, T increment=1) | |
ValueGenerator_Increment (T *init_value, T *increment) | |
ValueGenerator_Increment (StringArgs &args) | |
Could extend to accept references for arguments. | |
virtual string | stringrep () const |
Returns the value as a scalar. | |
ValueGenerator_Increment (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. |
|
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 360 of file valuegen.h. References String::stringrep(). |