ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Lattice Class Reference

#include <lattice.h>

Public Types

typedef impl_type::pos_t pos_t
 

Public Member Functions

 Lattice ()
 
 Lattice (BaseParameters &parms)
 
 Lattice (impl_ptr impl)
 
impl_ptr impl () const
 
std::vector< pos_tforward (pos_t site) const
 
std::vector< pos_tall (pos_t site) const
 
template<class T >
get_prop (std::string property, pos_t site) const
 
template<class T >
get_prop (std::string property, pos_t bond1, pos_t bond2) const
 
template<class T >
get_prop (std::string property, std::vector< pos_t > const &positions) const
 
boost::any get_prop_ (std::string const &property, std::vector< pos_t > const &positions) const
 
pos_t size () const
 
int maximum_vertex_type () const
 

Detailed Description

Definition at line 84 of file lattice.h.

Member Typedef Documentation

Definition at line 88 of file lattice.h.

Constructor & Destructor Documentation

Lattice::Lattice ( )
inline

Definition at line 90 of file lattice.h.

90 { }
Lattice::Lattice ( BaseParameters parms)
inline

Definition at line 92 of file lattice.h.

93  : impl_(lattice_factory(parms))
94  { }
boost::shared_ptr< lattice_impl > lattice_factory(BaseParameters &parms)
lattice factory
Lattice::Lattice ( impl_ptr  impl)
inline

Definition at line 96 of file lattice.h.

96 : impl_(impl) { }
impl_ptr impl() const
Definition: lattice.h:98

Member Function Documentation

std::vector<pos_t> Lattice::all ( pos_t  site) const
inline

Definition at line 101 of file lattice.h.

101 { return impl_->all(site); }
std::vector<pos_t> Lattice::forward ( pos_t  site) const
inline

Definition at line 100 of file lattice.h.

100 { return impl_->forward(site); }
template<class T >
T Lattice::get_prop ( std::string  property,
pos_t  site 
) const
inline

Definition at line 103 of file lattice.h.

104  { return impl_->get_prop<T>(property, site); }
template<class T >
T Lattice::get_prop ( std::string  property,
pos_t  bond1,
pos_t  bond2 
) const
inline

Definition at line 106 of file lattice.h.

107  { return impl_->get_prop<T>(property, bond1, bond2); }
template<class T >
T Lattice::get_prop ( std::string  property,
std::vector< pos_t > const &  positions 
) const
inline

Definition at line 109 of file lattice.h.

110  { return impl_->get_prop<T>(property, positions); }
boost::any Lattice::get_prop_ ( std::string const &  property,
std::vector< pos_t > const &  positions 
) const
inline

Definition at line 112 of file lattice.h.

113  { return impl_->get_prop_(property, positions); }
impl_ptr Lattice::impl ( ) const
inline

Definition at line 98 of file lattice.h.

98 { return impl_; }
int Lattice::maximum_vertex_type ( ) const
inline

Definition at line 116 of file lattice.h.

116 { return impl_->maximum_vertex_type(); };
pos_t Lattice::size ( ) const
inline

Definition at line 115 of file lattice.h.

115 { return impl_->size(); }

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