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

ValueGeneratorFactory< T, urf, nrf > Class Template Reference

#include <valuegen.h>

Inheritance diagram for ValueGeneratorFactory< T, urf, nrf >:

Inheritance graph
[legend]
Collaboration diagram for ValueGeneratorFactory< T, urf, nrf >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = double, class urf = Distributions::uniform, class nrf = Distributions::normal>
class ValueGeneratorFactory< T, urf, nrf >

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. Instantiate the template with a different Msg::LevelHandler<> if you wish to provide support for error messages.

Definition at line 471 of file valuegen.h.

Public Methods

 ValueGeneratorFactory (Msg::LevelHandler<> **mhp_i=&(Msg::LevelHandler<>::default_instance()))
virtual ValueGenerator< T > * create (StringArgs args) const
 Constructs and returns a ValueGenerator of the specified type.

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.


Protected Methods

void error (const string &s) const
 This implementation ignores errors, but derived classes may redefine this function if they wish, perhaps to write messages to the console.

void warning (const string &s) const
 This implementation ignores warnings, but derived classes may redefine this function if they wish, perhaps to write messages to the console.


Member Function Documentation

template<class T = double, class urf = Distributions::uniform, class nrf = Distributions::normal>
void ValueGeneratorFactory< T, urf, nrf >::error const string &    s const [inline, protected, virtual]
 

This implementation ignores errors, but derived classes may redefine this function if they wish, perhaps to write messages to the console.

This support should probably be rewritten using msg.h, to inherit the global default instance.

Reimplemented from VGenFactory< T >.

Definition at line 532 of file valuegen.h.

Referenced by ValueGeneratorFactory< T, urf, nrf >::create().


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