ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template simple_lattice

alps::simple_lattice

Synopsis

// In header: <alps/lattice/simplelattice.h>

template<typename UnitCell = EmptyUnitCell, 
         typename Cell = simple_cell<UnitCell> > 
class simple_lattice {
public:
  // types
  typedef UnitCell                                                   unit_cell_type; 
  typedef Cell                                                       cell_descriptor;
  typedef alps::dimensional_traits< unit_cell_type >::dimension_type dimension_type; 
  typedef alps::cell_traits< cell_descriptor >::offset_type          offset_type;    

  // construct/copy/destruct
  simple_lattice();
  template<typename U2, typename C2> 
    simple_lattice(const simple_lattice< U2, C2 > &);
  simple_lattice(const unit_cell_type &);
  template<typename U2, typename C2> 
    const simple_lattice & operator=(const simple_lattice< U2, C2 > &);

  // public member functions
  unit_cell_type & unit_cell();
  const unit_cell_type & unit_cell() const;
  cell_descriptor cell(offset_type) const;
  dimension_type dimension() const;
};

Description

simple_lattice public construct/copy/destruct

  1. simple_lattice();
  2. template<typename U2, typename C2> 
      simple_lattice(const simple_lattice< U2, C2 > & l);
  3. simple_lattice(const unit_cell_type & c);
  4. template<typename U2, typename C2> 
      const simple_lattice & operator=(const simple_lattice< U2, C2 > & l);

simple_lattice public member functions

  1. unit_cell_type & unit_cell();
  2. const unit_cell_type & unit_cell() const;
  3. cell_descriptor cell(offset_type o) const;
  4. dimension_type dimension() const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext