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

ValueGeneratorFactory Template Class Reference

This class can create most or all of the ValueGenerator types contained in this file from a (fairly) simple string specification. More...

#include <valuegen.h>

Inheritance diagram for ValueGeneratorFactory

Inheritance graph

[legend]
Collaboration diagram for ValueGeneratorFactory:

Collaboration graph

[legend]
List of all members.

Public Methods

 ValueGeneratorFactory ()
virtual ~ValueGeneratorFactory ()
virtual ValueGenerator<T>* create (StringArgs args) const
 Constructs and returns a ValueGenerator of the specified type. More...

virtual ValueGenerator<T>* create (StringArgs args, T* ref) const
 Extended version of create() that can correlate or link the new ValueGenerator with an existing one. More...


Detailed Description

template<class T = double, randomgen_fnPtr urf = uniform_distribution, randomgen_fnPtr nrf = normal_distribution> template class ValueGeneratorFactory

This class can create most or all of the ValueGenerator types contained in this file from a (fairly) simple string specification.

If you need to support more types defined in other files, derive a new class from this one and have it call this one for anything your class doesn't handle.

Definition at line 388 of file valuegen.h.


Constructor & Destructor Documentation

template<classT = double, randomgen_fnPtrurf = uniform_distribution, randomgen_fnPtrnrf = normal_distribution>
ValueGeneratorFactory<T, urf, nrf>::ValueGeneratorFactory<T, urf, nrf> ( )
 

Definition at line 390 of file valuegen.h.

template<classT = double, randomgen_fnPtrurf = uniform_distribution, randomgen_fnPtrnrf = normal_distribution>
ValueGeneratorFactory<T, urf, nrf>::~ValueGeneratorFactory<T, urf, nrf> ( ) [inline, virtual]
 

Definition at line 391 of file valuegen.h.


Member Function Documentation

template<classT = double, randomgen_fnPtrurf = uniform_distribution, randomgen_fnPtrnrf = normal_distribution>
ValueGenerator< T >* ValueGeneratorFactory<T, urf, nrf>::create ( StringArgs args,
T * ref ) const [inline, virtual]
 

Extended version of create() that can correlate or link the new ValueGenerator with an existing one.

Reimplemented from VGenFactory.

Definition at line 424 of file valuegen.h.

template<classT = double, randomgen_fnPtrurf = uniform_distribution, randomgen_fnPtrnrf = normal_distribution>
ValueGenerator< T >* ValueGeneratorFactory<T, urf, nrf>::create ( StringArgs args ) const [inline, virtual]
 

Constructs and returns a ValueGenerator of the specified type.

Reimplemented from VGenFactory.

Definition at line 394 of file valuegen.h.

Referenced by NamedValueGenerators::create().


The documentation for this class was generated from the following file:
Generated at Mon Aug 21 00:31:29 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000