ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template lookup_basis_states

alps::lookup_basis_states

Synopsis

// In header: <alps/model/basisstates.h>

template<typename I = unsigned int, typename J = short, 
         typename S = integer_state<I>, 
         typename SS = basis_states_descriptor<J> > 
class lookup_basis_states : public alps::basis_states< J, S, SS > {
public:
  // types
  typedef super_type::const_iterator const_iterator;
  typedef S                          value_type;    
  typedef super_type::size_type      size_type;     
  typedef super_type::basis_type     basis_type;    

  // construct/copy/destruct
  lookup_basis_states(const basis_states_descriptor< J, SS > &);

  // public member functions
  size_type index(const value_type &) const;
  std::pair< size_type, std::complex< double > > 
  index_and_phase(const value_type &) const;
};

Description

lookup_basis_states public construct/copy/destruct

  1. lookup_basis_states(const basis_states_descriptor< J, SS > & b);

lookup_basis_states public member functions

  1. size_type index(const value_type & x) const;
  2. std::pair< size_type, std::complex< double > > 
    index_and_phase(const value_type & x) const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext