point_traits.hpp 743 B

1234567891011121314151617181920212223242526
  1. // Copyright 2004, 2005 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_POINT_TRAITS_HPP
  8. #define BOOST_GRAPH_POINT_TRAITS_HPP
  9. namespace boost { namespace graph {
  10. template<typename Point>
  11. struct point_traits
  12. {
  13. // The type of each component of the point
  14. typedef typename Point::component_type component_type;
  15. // The number of dimensions in the point
  16. static std::size_t dimensions(const Point& point);
  17. };
  18. } } // end namespace boost::graph
  19. #endif // BOOST_GRAPH_POINT_TRAITS_HPP