defs.hpp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * @file tests/boost_graph/partitioning/defs.hpp
  3. * @author The PARADEVS Development Team
  4. * See the AUTHORS or Authors.txt file
  5. */
  6. /*
  7. * PARADEVS - the multimodeling and simulation environment
  8. * This file is a part of the PARADEVS environment
  9. *
  10. * Copyright (C) 2013 ULCO http://www.univ-litoral.fr
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. */
  25. #ifndef TESTS_BOOST_GRAPH_PARTITIONING_DEFS_H
  26. #define TESTS_BOOST_GRAPH_PARTITIONING_DEFS_H 1
  27. #include <list>
  28. #include <vector>
  29. #include <boost/graph/adjacency_list.hpp>
  30. #include <tests/boost_graph/graph_defs.hpp>
  31. namespace paradevs { namespace tests { namespace boost_graph {
  32. typedef unsigned int uint;
  33. typedef std::vector < int > Entiers;
  34. typedef std::vector < Entiers* > EntiersEntiers;
  35. typedef std::vector < EntiersEntiers > EntiersEntiersEntiers;
  36. typedef std::list < int > List;
  37. typedef std::list < EntiersEntiers* > ListEntiersEntiers;
  38. typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::undirectedS,
  39. VertexProperties,
  40. EdgeProperties> UnorientedGraph;
  41. typedef std::vector < UnorientedGraph* > Base_Graph;
  42. typedef boost::graph_traits < UnorientedGraph >::vertex_descriptor vertex_t;
  43. typedef boost::graph_traits < UnorientedGraph >::edge_descriptor edge_t;
  44. typedef OrientedGraph::vertex_descriptor vertex_to;
  45. typedef OrientedGraph::edge_descriptor edge_to;
  46. template < class G >
  47. struct VertexAndEdgeListGraphConcept
  48. {
  49. void constraints() {
  50. boost::function_requires < boost::VertexListGraphConcept < G > >();
  51. boost::function_requires < boost::EdgeListGraphConcept < G > >();
  52. }
  53. };
  54. } } } // namespace paradevs tests boost_graph
  55. #endif