Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:37:28

0001 //=======================================================================
0002 // Copyright 2002 Indiana University.
0003 // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
0004 //
0005 // Distributed under the Boost Software License, Version 1.0. (See
0006 // accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 //=======================================================================
0009 
0010 #ifndef BOOST_GRAPH_SELECTORS_HPP
0011 #define BOOST_GRAPH_SELECTORS_HPP
0012 
0013 #include <boost/mpl/bool.hpp>
0014 
0015 namespace boost
0016 {
0017 
0018 //===========================================================================
0019 // Selectors for the Directed template parameter of adjacency_list
0020 // and adjacency_matrix.
0021 
0022 struct directedS
0023 {
0024     enum
0025     {
0026         is_directed = true,
0027         is_bidir = false
0028     };
0029     typedef mpl::true_ is_directed_t;
0030     typedef mpl::false_ is_bidir_t;
0031 };
0032 struct undirectedS
0033 {
0034     enum
0035     {
0036         is_directed = false,
0037         is_bidir = false
0038     };
0039     typedef mpl::false_ is_directed_t;
0040     typedef mpl::false_ is_bidir_t;
0041 };
0042 struct bidirectionalS
0043 {
0044     enum
0045     {
0046         is_directed = true,
0047         is_bidir = true
0048     };
0049     typedef mpl::true_ is_directed_t;
0050     typedef mpl::true_ is_bidir_t;
0051 };
0052 
0053 } // namespace boost
0054 
0055 #endif // BOOST_GRAPH_SELECTORS_HPP