Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/graph/distributed/reverse_graph.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 // Copyright (C) 2005-2006 The Trustees of Indiana University. | |
2 | |
3 // Use, modification and distribution is subject to the Boost Software | |
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
5 // http://www.boost.org/LICENSE_1_0.txt) | |
6 | |
7 // Authors: Nick Edmonds | |
8 // Andrew Lumsdaine | |
9 #ifndef BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP | |
10 #define BOOST_GRAPH_DISTRIBUTED_REVERSE_GRAPH_HPP | |
11 | |
12 #ifndef BOOST_GRAPH_USE_MPI | |
13 #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included" | |
14 #endif | |
15 | |
16 #include <boost/graph/reverse_graph.hpp> | |
17 #include <boost/graph/parallel/container_traits.hpp> | |
18 | |
19 namespace boost { | |
20 namespace graph { | |
21 namespace parallel { | |
22 /// Retrieve the process group from a reverse graph | |
23 template<typename Graph, typename GraphRef> | |
24 struct process_group_type<reverse_graph<Graph, GraphRef> > | |
25 : process_group_type<Graph> { }; | |
26 } | |
27 | |
28 } | |
29 | |
30 /// Retrieve the process group from a reverse graph | |
31 template<typename Graph, typename GraphRef> | |
32 inline typename graph::parallel::process_group_type<Graph>::type | |
33 process_group(reverse_graph<Graph, GraphRef> const& g) { | |
34 return process_group(g.m_g); | |
35 } | |
36 } // namespace boost | |
37 | |
38 #endif |