PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Src/Dependencies/Boost/boost/graph/point_traits.hpp

http://hadesmem.googlecode.com/
C++ Header | 26 lines | 11 code | 7 blank | 8 comment | 0 complexity | 417b72d08e0fb8ec92d6f017aa13d4bd MD5 | raw file
 1// Copyright 2004, 2005 The Trustees of Indiana University.
 2
 3// Use, modification and distribution is subject to the Boost Software
 4// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 5// http://www.boost.org/LICENSE_1_0.txt)
 6
 7//  Authors: Douglas Gregor
 8//           Andrew Lumsdaine
 9#ifndef BOOST_GRAPH_POINT_TRAITS_HPP
10#define BOOST_GRAPH_POINT_TRAITS_HPP
11
12namespace boost { namespace graph {
13
14template<typename Point>
15struct point_traits
16{
17  // The type of each component of the point
18  typedef typename Point::component_type component_type;
19
20  // The number of dimensions in the point
21  static std::size_t dimensions(const Point& point);
22};
23
24} } // end namespace boost::graph
25
26#endif // BOOST_GRAPH_POINT_TRAITS_HPP