ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class cell_iterator

alps::hypercubic_lattice::cell_iterator

Synopsis

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



class cell_iterator {
public:
  // types
  typedef std::ptrdiff_t            difference_type;  
  typedef cell_descriptor           value_type;       
  typedef cell_descriptor *         pointer;          
  typedef cell_descriptor &         reference;        
  typedef std::forward_iterator_tag iterator_category;

  // construct/copy/destruct
  cell_iterator();
  cell_iterator(const lattice_type &, const offset_type &);

  // public member functions
  const cell_iterator & operator++();
  cell_iterator operator++(int);
  bool operator==(const cell_iterator &);
  bool operator!=(const cell_iterator &);
  cell_descriptor operator*() const;
};

Description

cell_iterator public construct/copy/destruct

  1. cell_iterator();
  2. cell_iterator(const lattice_type & l, const offset_type & o);

cell_iterator public member functions

  1. const cell_iterator & operator++();
  2. cell_iterator operator++(int);
  3. bool operator==(const cell_iterator & it);
  4. bool operator!=(const cell_iterator & it);
  5. cell_descriptor operator*() const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext