ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class template singleton_property_map

alps::singleton_property_map

Synopsis

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

template<typename V, typename K = boost::any> 
class singleton_property_map {
public:
  // types
  typedef K                              key_type;  
  typedef V                              value_type;
  typedef V &                            reference; 
  typedef boost::lvalue_property_map_tag category;  

  // construct/copy/destruct
  singleton_property_map(V = V());
  singleton_property_map& operator=(const V &);

  // public member functions
  operator V() const;
  V value() const;
  template<typename T> V & operator[](T);
  template<typename T> const V & operator[](T) const;
};

Description

singleton_property_map public construct/copy/destruct

  1. singleton_property_map(V v = V());
  2. singleton_property_map& operator=(const V & v);

singleton_property_map public member functions

  1. operator V() const;
  2. V value() const;
  3. template<typename T> V & operator[](T);
  4. template<typename T> const V & operator[](T) const;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext