![]() |
Home | Libraries | License | Support | People | ALPS Web Site |
alps::integer_state
// In header: <alps/model/integer_state.h> template<typename I, int N> class integer_state { 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 BOOST_STATIC_CONSTANT(int, bits = boost::static_log2< N >::value+1); BOOST_STATIC_CONSTANT(int, mask = (1<< bits)-1); int operator[](int) const; reference operator[](int); operator representation_type() const; representation_type state() const; };
integer_state
public member functionsBOOST_STATIC_CONSTANT(int, bits = boost::static_log2< N >::value+1);
BOOST_STATIC_CONSTANT(int, mask = (1<< bits)-1);
int operator[](int i) const;
reference operator[](int i);
operator representation_type() const;
representation_type state() const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo |