queso-0.56.1
Public Member Functions | Private Member Functions | List of all members
QUESO::FactoryImp< Derived, Base > Class Template Reference

#include <Factory.h>

Inheritance diagram for QUESO::FactoryImp< Derived, Base >:
Inheritance graph
[legend]
Collaboration diagram for QUESO::FactoryImp< Derived, Base >:
Collaboration graph
[legend]

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 }

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

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