ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template integer_state<I, 1>

alps::integer_state<I, 1>

Synopsis

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

template<typename I> 
class integer_state<I, 1> {
public:
  // types
  typedef I representation_type;

  // member classes/structs/unions

  class reference {
  public:
    // construct/copy/destruct
    reference(I &, int);
    template<typename T> reference & operator=(T);

    // public member functions
    operator int() const;
  };

  // construct/copy/destruct
  integer_state(representation_type = 0);
  template<typename J> integer_state(const std::vector< J > &);

  // public member functions
  int operator[](int) const;
  reference operator[](int);
  operator representation_type() const;
  representation_type state() const;
};

Description

integer_state public construct/copy/destruct

  1. integer_state(representation_type x = 0);
  2. template<typename J> integer_state(const std::vector< J > & x);

integer_state public member functions

  1. int operator[](int i) const;
  2. reference operator[](int i);
  3. operator representation_type() const;
  4. representation_type state() const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext