incidence_list_graph.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2008-2010 Gordon Woodhull
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. #ifndef BOOST_MSM_MPL_GRAPH_INCIDENCE_LIST_GRAPH_HPP_INCLUDED
  5. #define BOOST_MSM_MPL_GRAPH_INCIDENCE_LIST_GRAPH_HPP_INCLUDED
  6. // graph implementation based on a an mpl sequence of sequences <Edge,Source,Target>
  7. // incidence_list_graph labels such a sequence as manipulable by the metafunctions
  8. // in the corresponding implementation header detail/incidence_list_graph.ipp
  9. // to produce the metadata structures needed by mpl_graph.hpp
  10. // the public interface
  11. #include <boost/msm/mpl_graph/mpl_graph.hpp>
  12. // the implementation
  13. #include <boost/msm/mpl_graph/detail/incidence_list_graph.ipp>
  14. namespace boost {
  15. namespace msm {
  16. namespace mpl_graph {
  17. template<typename EdgeSequence>
  18. struct incidence_list_graph {
  19. typedef detail::incidence_list_tag representation;
  20. typedef EdgeSequence data;
  21. };
  22. }
  23. }
  24. }
  25. #endif // BOOST_MSM_MPL_GRAPH_INCIDENCE_LIST_GRAPH_HPP_INCLUDED