queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::FactoryImp< Derived, Base > Class Template Reference

#include <Factory.h>

Inheritance diagram for QUESO::FactoryImp< Derived, Base >:
QUESO::Factory< Base >

Public Member Functions

 FactoryImp (const std::string &name)
 
 ~FactoryImp ()
 
- Public Member Functions inherited from QUESO::Factory< Base >
virtual ~Factory ()
 

Private Member Functions

virtual SharedPtr< Base >::Type create ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QUESO::Factory< Base >
static SharedPtr< Base >::Type build (const std::string &name)
 
- Protected Member Functions inherited from QUESO::Factory< Base >
 Factory (const std::string &name)
 
template<>
std::map< std::string, Factory
< Algorithm< GslVector,
GslMatrix > > * > & 
factory_map ()
 
template<>
std::map< std::string, Factory
< BaseTKGroup< GslVector,
GslMatrix > > * > & 
factory_map ()
 
- Static Protected Member Functions inherited from QUESO::Factory< Base >
static std::map< std::string,
Factory< Base > * > & 
factory_map ()
 

Detailed Description

template<class Derived, class Base>
class QUESO::FactoryImp< Derived, Base >

Factory implementation class.

Definition at line 79 of file Factory.h.

Constructor & Destructor Documentation

template<class Derived , class Base >
QUESO::FactoryImp< Derived, Base >::FactoryImp ( const std::string &  name)
inline

Constructor. Takes a name as input.

Definition at line 85 of file Factory.h.

85 : Factory<Base>(name) { }
template<class Derived , class Base >
QUESO::FactoryImp< Derived, Base >::~FactoryImp ( )
inline

Destructor. Empty.

Definition at line 90 of file Factory.h.

90 {}

Member Function Documentation

template<class Derived , class Base >
SharedPtr< Base >::Type QUESO::FactoryImp< Derived, Base >::create ( )
inlineprivatevirtual
Returns
a new object of type Derived.

Implements QUESO::Factory< Base >.

Definition at line 148 of file Factory.h.

149 {
150  return typename SharedPtr<Base>::Type(new Derived);
151 }
std::shared_ptr< T > Type
Definition: SharedPtr.h:69

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

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