graph_type.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //=======================================================================
  2. // Copyright 2002 Indiana University.
  3. // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See
  6. // accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //=======================================================================
  9. //
  10. // The following test permutations are extracted from the old adj_list_test.cpp
  11. // which generated code on the fly, but was never run as part of the regular tests.
  12. //
  13. #if TEST == 1
  14. #define TEST_TYPE vecS
  15. #define DIRECTED_TYPE bidirectionalS
  16. #elif TEST == 2
  17. #define TEST_TYPE vecS
  18. #define DIRECTED_TYPE directedS
  19. #elif TEST == 3
  20. #define TEST_TYPE vecS
  21. #define DIRECTED_TYPE undirectedS
  22. #elif TEST == 4
  23. #define TEST_TYPE listS
  24. #define DIRECTED_TYPE bidirectionalS
  25. #elif TEST == 5
  26. #define TEST_TYPE listS
  27. #define DIRECTED_TYPE directedS
  28. #elif TEST == 6
  29. #define TEST_TYPE listS
  30. #define DIRECTED_TYPE undirectedS
  31. #elif TEST == 7
  32. #define TEST_TYPE setS
  33. #define DIRECTED_TYPE bidirectionalS
  34. #elif TEST == 8
  35. #define TEST_TYPE setS
  36. #define DIRECTED_TYPE directedS
  37. #elif TEST == 9
  38. #define TEST_TYPE setS
  39. #define DIRECTED_TYPE undirectedS
  40. #else
  41. #error "No test combination specified - define macro TEST to the value 1 - 9."
  42. #endif
  43. #include <boost/graph/adjacency_list.hpp>
  44. typedef boost::adjacency_list<boost::TEST_TYPE, boost::TEST_TYPE, boost::DIRECTED_TYPE, boost::property<vertex_id_t, std::size_t>, boost::property<edge_id_t, std::size_t> > Graph;
  45. typedef boost::property<vertex_id_t, std::size_t> VertexId;
  46. typedef boost::property<edge_id_t, std::size_t> EdgeID;