ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Struct template property_map

alps::property_map

Synopsis

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

template<typename P, typename G, typename Default> 
struct property_map {
  // types
  typedef boost::mpl::if_c< has_property< P, G >::graph_property, typename boost::graph_property< G, P >::type &, typename boost::mpl::if_c< has_property< P, G >::any_property, typename boost::property_map< G, P >::type, singleton_property_map< Default > >::type >::type             type;      
  typedef boost::mpl::if_c< has_property< P, G >::graph_property, typename boost::graph_property< G, P >::type const &, typename boost::mpl::if_c< has_property< P, G >::any_property, typename boost::property_map< G, P >::const_type, singleton_property_map< Default > >::type >::type const_type;
};
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext