Chris@16
|
1 //=======================================================================
|
Chris@16
|
2 // Copyright 2002 Indiana University.
|
Chris@16
|
3 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
|
Chris@16
|
4 //
|
Chris@16
|
5 // Distributed under the Boost Software License, Version 1.0. (See
|
Chris@16
|
6 // accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
7 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8 //=======================================================================
|
Chris@16
|
9
|
Chris@16
|
10 #ifndef BOOST_GRAPH_SELECTORS_HPP
|
Chris@16
|
11 #define BOOST_GRAPH_SELECTORS_HPP
|
Chris@16
|
12
|
Chris@16
|
13 #include <boost/mpl/bool.hpp>
|
Chris@16
|
14
|
Chris@16
|
15 namespace boost {
|
Chris@16
|
16
|
Chris@16
|
17 //===========================================================================
|
Chris@16
|
18 // Selectors for the Directed template parameter of adjacency_list
|
Chris@16
|
19 // and adjacency_matrix.
|
Chris@16
|
20
|
Chris@16
|
21 struct directedS { enum { is_directed = true, is_bidir = false };
|
Chris@16
|
22 typedef mpl::true_ is_directed_t;
|
Chris@16
|
23 typedef mpl::false_ is_bidir_t;
|
Chris@16
|
24 };
|
Chris@16
|
25 struct undirectedS {
|
Chris@16
|
26 enum { is_directed = false, is_bidir = false };
|
Chris@16
|
27 typedef mpl::false_ is_directed_t;
|
Chris@16
|
28 typedef mpl::false_ is_bidir_t;
|
Chris@16
|
29 };
|
Chris@16
|
30 struct bidirectionalS {
|
Chris@16
|
31 enum { is_directed = true, is_bidir = true };
|
Chris@16
|
32 typedef mpl::true_ is_directed_t;
|
Chris@16
|
33 typedef mpl::true_ is_bidir_t;
|
Chris@16
|
34 };
|
Chris@16
|
35
|
Chris@16
|
36 } // namespace boost
|
Chris@16
|
37
|
Chris@16
|
38 #endif // BOOST_GRAPH_SELECTORS_HPP
|