Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::graph::distributed::select_distribution< InDistribution, VertexProperty, VertexSize, ProcessGroup, ExtractName > Struct Template Reference

Specialization for named graphs. More...

#include <named_graph.hpp>

Public Types

typedef mpl::if_< is_same
< InDistribution, defaultS >
, hashed_distribution
< vertex_name_type >
, InDistribution >::type 
type
 The type field provides a distribution object that maps vertex names to processors. More...
 
typedef type default_type
 for named graphs the default type is the same as the stored distribution type More...
 

Detailed Description

template<typename InDistribution, typename VertexProperty, typename VertexSize, typename ProcessGroup, typename ExtractName = typename internal_vertex_name<VertexProperty>::type>
struct boost::graph::distributed::select_distribution< InDistribution, VertexProperty, VertexSize, ProcessGroup, ExtractName >

Specialization for named graphs.

Member Typedef Documentation

template<typename InDistribution, typename VertexProperty, typename VertexSize, typename ProcessGroup, typename ExtractName = typename internal_vertex_name<VertexProperty>::type>
typedef type boost::graph::distributed::select_distribution< InDistribution, VertexProperty, VertexSize, ProcessGroup, ExtractName >::default_type

for named graphs the default type is the same as the stored distribution type

template<typename InDistribution, typename VertexProperty, typename VertexSize, typename ProcessGroup, typename ExtractName = typename internal_vertex_name<VertexProperty>::type>
typedef mpl::if_<is_same<InDistribution, defaultS>, hashed_distribution<vertex_name_type>, InDistribution>::type boost::graph::distributed::select_distribution< InDistribution, VertexProperty, VertexSize, ProcessGroup, ExtractName >::type

The type field provides a distribution object that maps vertex names to processors.

The distribution object will be constructed with the process group over which communication will occur. The distribution object shall also be a function object mapping from the type of the name to a processor number in [0, p) (for p processors). By default, the mapping function uses the boost::hash value of the name, modulo p.


The documentation for this struct was generated from the following file: