queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::AlgorithmFactoryImp< DerivedAlgorithm > Class Template Reference

#include <AlgorithmFactory.h>

Inheritance diagram for QUESO::AlgorithmFactoryImp< DerivedAlgorithm >:
QUESO::AlgorithmFactory QUESO::Factory< Algorithm< GslVector, GslMatrix > >

Public Member Functions

 AlgorithmFactoryImp (const std::string &name)
 
virtual ~AlgorithmFactoryImp ()
 
- Public Member Functions inherited from QUESO::AlgorithmFactory
 AlgorithmFactory (const std::string &name)
 
virtual ~AlgorithmFactory ()
 
- Public Member Functions inherited from QUESO::Factory< Algorithm< GslVector, GslMatrix > >
virtual ~Factory ()
 

Private Member Functions

virtual SharedPtr< Algorithm
< GslVector, GslMatrix >
>::Type 
build_algorithm ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QUESO::AlgorithmFactory
static void set_environment (const BaseEnvironment &env)
 
static void set_tk (const BaseTKGroup< GslVector, GslMatrix > &tk)
 
- Static Public Member Functions inherited from QUESO::Factory< Algorithm< GslVector, GslMatrix > >
static SharedPtr< Algorithm
< GslVector, GslMatrix >
>::Type 
build (const std::string &name)
 
- Protected Member Functions inherited from QUESO::Factory< Algorithm< GslVector, GslMatrix > >
 Factory (const std::string &name)
 
- Static Protected Member Functions inherited from QUESO::Factory< Algorithm< GslVector, GslMatrix > >
static std::map< std::string,
Factory< Algorithm< GslVector,
GslMatrix > > * > & 
factory_map ()
 
- Static Protected Attributes inherited from QUESO::AlgorithmFactory
static const BaseEnvironmentm_env = NULL
 
static const BaseTKGroup
< GslVector, GslMatrix > * 
m_tk = NULL
 

Detailed Description

template<class DerivedAlgorithm>
class QUESO::AlgorithmFactoryImp< DerivedAlgorithm >

AlgorithmFactoryImp implementation of AlgorithmFactory. Implements an algorithm factory for the standard Metropolis-Hastings algorithm (aka acceptance ratio).

Definition at line 101 of file AlgorithmFactory.h.

Constructor & Destructor Documentation

template<class DerivedAlgorithm>
QUESO::AlgorithmFactoryImp< DerivedAlgorithm >::AlgorithmFactoryImp ( const std::string &  name)
inline

Definition at line 104 of file AlgorithmFactory.h.

105  : AlgorithmFactory(name)
106  {}
AlgorithmFactory(const std::string &name)
template<class DerivedAlgorithm>
virtual QUESO::AlgorithmFactoryImp< DerivedAlgorithm >::~AlgorithmFactoryImp ( )
inlinevirtual

Definition at line 108 of file AlgorithmFactory.h.

108 {}

Member Function Documentation

template<class DerivedAlgorithm>
virtual SharedPtr<Algorithm<GslVector, GslMatrix> >::Type QUESO::AlgorithmFactoryImp< DerivedAlgorithm >::build_algorithm ( )
inlineprivatevirtual

Implements QUESO::AlgorithmFactory.

Definition at line 111 of file AlgorithmFactory.h.

References QUESO::AlgorithmFactory::m_env, and QUESO::AlgorithmFactory::m_tk.

112  {
114  new_alg.reset(new DerivedAlgorithm(*(this->m_env), *(this->m_tk)));
115  return new_alg;
116  }
static const BaseTKGroup< GslVector, GslMatrix > * m_tk
Definition of a shared pointer.
static const BaseEnvironment * m_env

The documentation for this class was generated from the following file:

Generated on Tue Jun 5 2018 19:49:03 for queso-0.57.1 by  doxygen 1.8.5