ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
coded_model_factory< Matrix, TwoU1 > Struct Template Reference

#include <factory_2u1.hpp>

Static Public Member Functions

static boost::shared_ptr
< model_impl< Matrix, TwoU1 > > 
parse (Lattice const &lattice, BaseParameters &parms)
 

Detailed Description

template<class Matrix>
struct coded_model_factory< Matrix, TwoU1 >

Definition at line 30 of file factory_2u1.hpp.

Member Function Documentation

template<class Matrix >
static boost::shared_ptr<model_impl<Matrix, TwoU1> > coded_model_factory< Matrix, TwoU1 >::parse ( Lattice const &  lattice,
BaseParameters parms 
)
inlinestatic

Definition at line 32 of file factory_2u1.hpp.

33  {
34  typedef boost::shared_ptr<model_impl<Matrix, TwoU1> > impl_ptr;
35  if (parms["MODEL"] == std::string("fermion Hubbard"))
36  return impl_ptr( new FermiHubbardTwoU1<Matrix>(lattice, parms) );
37  else {
38  throw std::runtime_error("Don't know this model!");
39  return impl_ptr();
40  }
41  }

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