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