]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/graph_parallel/include/boost/graph/distributed/reverse_graph.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / graph_parallel / include / boost / graph / distributed / reverse_graph.hpp
CommitLineData
7c673cae
FG
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
19namespace 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