ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Struct template has_property<P, boost::adjacency_list< s1, s2, s3, VP, EP, GP, s4 >, D>

alps::has_property<P, boost::adjacency_list< s1, s2, s3, VP, EP, GP, s4 >, D>

Synopsis

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

template<typename s1, typename s2, typename s3, typename VP, typename EP, 
         typename GP, typename s4, typename P, typename D> 
struct has_property<P, boost::adjacency_list< s1, s2, s3, VP, EP, GP, s4 >, D> {
  // types
  typedef boost::adjacency_list< s1, s2, s3, VP, EP, GP, s4 >                                                                                                        Graph;               
  typedef unspecified                                                                                                                                                vertex_property_type;
  typedef unspecified                                                                                                                                                edge_property_type;  
  typedef unspecified                                                                                                                                                graph_property_type; 
  typedef boost::mpl::if_c< edge_property, edge_property_type, typename boost::mpl::if_c< vertex_property, vertex_property_type, graph_property_type >::type >::type property_type;       
  typedef property_type                                                                                                                                              type;                
  typedef vertex_property_type                                                                                                                                       site_property_type;  
  typedef edge_property_type                                                                                                                                         bond_property_type;  

  // public member functions
   BOOST_STATIC_CONSTANT(bool, vertex_property = unspecified) ;
   BOOST_STATIC_CONSTANT(bool, edge_property = unspecified) ;
   BOOST_STATIC_CONSTANT(bool, graph_property = unspecified) ;
   BOOST_STATIC_CONSTANT(bool, 
                         any_property = (edge_property||vertex_property||graph_property)) ;
   BOOST_STATIC_CONSTANT(bool, site_property = vertex_property) ;
   BOOST_STATIC_CONSTANT(bool, bond_property = edge_property) ;
};

Description

has_property public member functions

  1.  BOOST_STATIC_CONSTANT(bool, vertex_property = unspecified) ;
  2.  BOOST_STATIC_CONSTANT(bool, edge_property = unspecified) ;
  3.  BOOST_STATIC_CONSTANT(bool, graph_property = unspecified) ;
  4.  BOOST_STATIC_CONSTANT(bool, 
                           any_property = (edge_property||vertex_property||graph_property)) ;
  5.  BOOST_STATIC_CONSTANT(bool, site_property = vertex_property) ;
  6.  BOOST_STATIC_CONSTANT(bool, bond_property = edge_property) ;
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext