Path Integral Quantum Monte Carlo
Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes
Factory< BaseType(ParamType...)> Class Template Reference

Public Member Functions

vector< string > getNames () const
 The names of all objects instatiated by the factory.
 
Factory< BaseType(ParamType...)> * Instance ()
 Singleton access.
 
const Factory< BaseType(ParamType...)> * operator() () const
 Overload () to return a singleton instance.
 
Factory< BaseType(ParamType...)> * operator() ()
 
BaseType Create (string name, ParamType ...param)
 Return an instantiated object with a given name.
 
template<class DerivedType >
bool Register (string name)
 Register the derived type with a descriptive name in the map.
 

Protected Types

using CreateObjectFunc = BaseType(*)(ParamType...)
 

Static Protected Member Functions

template<class DerivedType >
static BaseType createObj (ParamType ...param)
 

Protected Attributes

map< string, CreateObjectFunc > _create
 

Detailed Description

template<class BaseType, class ... ParamType>
class Factory< BaseType(ParamType...)>

Definition at line 27 of file factory.h.


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