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, TrivialGroup > Struct Template Reference

#include <factory_none.hpp>

Static Public Member Functions

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

Detailed Description

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

Definition at line 32 of file factory_none.hpp.

Member Function Documentation

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

Definition at line 34 of file factory_none.hpp.

35  {
36  typedef boost::shared_ptr<model_impl<Matrix, TrivialGroup> > impl_ptr;
37  if (parms["MODEL"] == std::string("boson Hubbard"))
38  return impl_ptr( new BoseHubbardNone<Matrix>(lattice, parms) );
39  else if (parms["MODEL"] == std::string("super boson Hubbard"))
40  return impl_ptr( new SuperBoseHubbardNone<Matrix>(lattice, parms) );
41  else {
42  throw std::runtime_error("Don't know this model with NONE symmetry group!");
43  return impl_ptr();
44  }
45  }

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