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