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_impl Class Referenceabstract

#include <lattice.h>

Inheritance diagram for lattice_impl:
alps_lattice ChainLattice SquareLattice

Public Types

typedef int pos_t
 

Public Member Functions

virtual ~lattice_impl ()
 
virtual std::vector< pos_tforward (pos_t) const =0
 
virtual std::vector< pos_tall (pos_t) const =0
 
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
 
virtual boost::any get_prop_ (std::string const &, std::vector< pos_t > const &) const =0
 
virtual pos_t size () const =0
 
virtual int maximum_vertex_type () const =0
 

Detailed Description

Definition at line 39 of file lattice.h.

Member Typedef Documentation

typedef int lattice_impl::pos_t

Definition at line 41 of file lattice.h.

Constructor & Destructor Documentation

virtual lattice_impl::~lattice_impl ( )
inlinevirtual

Definition at line 43 of file lattice.h.

43 {}

Member Function Documentation

virtual std::vector<pos_t> lattice_impl::all ( pos_t  ) const
pure virtual

Implemented in SquareLattice, alps_lattice, and ChainLattice.

virtual std::vector<pos_t> lattice_impl::forward ( pos_t  ) const
pure virtual

Implemented in SquareLattice, alps_lattice, and ChainLattice.

template<class T >
T lattice_impl::get_prop ( std::string  property,
pos_t  site 
) const
inline

Definition at line 49 of file lattice.h.

51  {
52  return boost::any_cast<T>(get_prop_(property, std::vector<pos_t>(1, site)));
53  }
virtual boost::any get_prop_(std::string const &, std::vector< pos_t > const &) const =0
template<class T >
T lattice_impl::get_prop ( std::string  property,
pos_t  bond1,
pos_t  bond2 
) const
inline

Definition at line 55 of file lattice.h.

57  {
58  std::vector<pos_t> v(2);
59  v[0] = bond1; v[1] = bond2;
60  return boost::any_cast<T>(get_prop_(property, v));
61  }
virtual boost::any get_prop_(std::string const &, std::vector< pos_t > const &) const =0
template<class T >
T lattice_impl::get_prop ( std::string  property,
std::vector< pos_t > const &  positions 
) const
inline

Definition at line 63 of file lattice.h.

65  {
66  return boost::any_cast<T>(get_prop_(property, positions));
67  }
virtual boost::any get_prop_(std::string const &, std::vector< pos_t > const &) const =0
virtual boost::any lattice_impl::get_prop_ ( std::string const &  ,
std::vector< pos_t > const &   
) const
pure virtual

Implemented in SquareLattice, alps_lattice, and ChainLattice.

virtual int lattice_impl::maximum_vertex_type ( ) const
pure virtual

Implemented in SquareLattice, ChainLattice, and alps_lattice.

virtual pos_t lattice_impl::size ( ) const
pure virtual

Implemented in SquareLattice, ChainLattice, and alps_lattice.


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