queso-0.56.1
Public Member Functions | Private Member Functions | List of all members
QUESO::AlgorithmFactoryImp< DerivedAlgorithm > Class Template Reference

#include <AlgorithmFactory.h>

Inheritance diagram for QUESO::AlgorithmFactoryImp< DerivedAlgorithm >:
Inheritance graph
[legend]
Collaboration diagram for QUESO::AlgorithmFactoryImp< DerivedAlgorithm >:
Collaboration graph
[legend]

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 >
SharedPtr< Algorithm< GslVector, GslMatrix > >::Type QUESO::AlgorithmFactoryImp< DerivedAlgorithm >::build_algorithm ( )
privatevirtual

Implements QUESO::AlgorithmFactory.

Definition at line 44 of file AlgorithmFactory.C.

45 {
46  SharedPtr<Algorithm<GslVector, GslMatrix> >::Type new_alg;
47  new_alg.reset(new DerivedAlgorithm(*(this->m_env), *(this->m_tk)));
48  return new_alg;
49 }
static const BaseTKGroup< GslVector, GslMatrix > * m_tk
static const BaseEnvironment * m_env

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

Generated on Thu Dec 15 2016 13:23:13 for queso-0.56.1 by  doxygen 1.8.5