/Src/Dependencies/Boost/boost/graph/distributed/selector.hpp

http://hadesmem.googlecode.com/ · C++ Header · 36 lines · 17 code · 7 blank · 12 comment · 0 complexity · 2a1ed5f9ceb7f50f54b7d785f9d9a31b MD5 · raw file

  1. // Copyright (C) 2006 The Trustees of Indiana University.
  2. // Use, modification and distribution is subject to the Boost Software
  3. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // Authors: Douglas Gregor
  6. // Andrew Lumsdaine
  7. #ifndef BOOST_GRAPH_DISTRIBUTED_SELECTOR_HPP
  8. #define BOOST_GRAPH_DISTRIBUTED_SELECTOR_HPP
  9. #ifndef BOOST_GRAPH_USE_MPI
  10. #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
  11. #endif
  12. namespace boost {
  13. /* The default local selector for a distributedS selector. */
  14. struct defaultS {};
  15. /**
  16. * Selector that specifies that the graph should be distributed
  17. * among different processes organized based on the given process
  18. * group.
  19. */
  20. template<typename ProcessGroup, typename LocalS = defaultS,
  21. typename DistributionS = defaultS>
  22. struct distributedS
  23. {
  24. typedef ProcessGroup process_group_type;
  25. typedef LocalS local_selector;
  26. typedef DistributionS distribution;
  27. };
  28. }
  29. #endif // BOOST_GRAPH_DISTRIBUTED_SELECTOR_HPP