| | 41 | ----------------------- |
| | 42 | 6/9/09 THK |
| | 43 | |
| | 44 | The above contains two calls to the vertices function. I modified these |
| | 45 | macros to expand to |
| | 46 | |
| | 47 | for (std::pair<typename boost::graph_traits<graph_t>::vertex_iterator, |
| | 48 | typename boost::graph_traits<graph_t>::vertex_iterator> BGL_RANGE_9 = vertices(g); |
| | 49 | BGL_RANGE_9.first != BGL_RANGE_9.second; |
| | 50 | BGL_RANGE_9.first = BGL_RANGE_9.second) |
| | 51 | for (typename boost::graph_traits<graph_t>::vertex_descriptor v; |
| | 52 | BGL_RANGE_9.first != BGL_RANGE_9.second ? (v = *BGL_RANGE_9.first, true) : false; |
| | 53 | ++BGL_RANGE_9.first) |
| | 54 | |
| | 55 | |
| 44 | | for (typename boost::graph_traits<GraphType>::vertex_iterator \ |
| 45 | | BGL_FIRST(__LINE__) = vertices(GNAME).first, BGL_LAST(__LINE__) = vertices(GNAME).second; \ |
| 46 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 60 | for (std::pair<typename boost::graph_traits<GraphType>::vertex_iterator, \ |
| | 61 | typename boost::graph_traits<GraphType>::vertex_iterator> BGL_RANGE(__LINE__) = vertices(GNAME); \ |
| | 62 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 63 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 52 | | for (boost::graph_traits<GraphType>::vertex_iterator \ |
| 53 | | BGL_FIRST(__LINE__) = vertices(GNAME).first, BGL_LAST(__LINE__) = vertices(GNAME).second; \ |
| 54 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 69 | for (std::pair<boost::graph_traits<GraphType>::vertex_iterator, \ |
| | 70 | boost::graph_traits<GraphType>::vertex_iterator> BGL_RANGE(__LINE__) = vertices(GNAME); \ |
| | 71 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 72 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 60 | | for (typename boost::graph_traits<GraphType>::edge_iterator \ |
| 61 | | BGL_FIRST(__LINE__) = edges(GNAME).first, BGL_LAST(__LINE__) = edges(GNAME).second; \ |
| 62 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 78 | for (std::pair<typename boost::graph_traits<GraphType>::edge_iterator, \ |
| | 79 | typename boost::graph_traits<GraphType>::edge_iterator> BGL_RANGE(__LINE__) = edges(GNAME); \ |
| | 80 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 81 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 68 | | for (boost::graph_traits<GraphType>::edge_iterator \ |
| 69 | | BGL_FIRST(__LINE__) = edges(GNAME).first, BGL_LAST(__LINE__) = edges(GNAME).second; \ |
| 70 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 87 | for (std::pair<boost::graph_traits<GraphType>::edge_iterator, \ |
| | 88 | boost::graph_traits<GraphType>::edge_iterator> BGL_RANGE(__LINE__) = edges(GNAME); \ |
| | 89 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 90 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 76 | | for (typename boost::graph_traits<GraphType>::adjacency_iterator \ |
| 77 | | BGL_FIRST(__LINE__) = adjacent_vertices(UNAME, GNAME).first,\ |
| 78 | | BGL_LAST(__LINE__) = adjacent_vertices(UNAME, GNAME).second; \ |
| 79 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 96 | for (std::pair<typename boost::graph_traits<GraphType>::adjacency_iterator, \ |
| | 97 | typename boost::graph_traits<GraphType>::adjacency_iterator> BGL_RANGE(__LINE__) = adjacent_vertices(UNAME, GNAME); \ |
| | 98 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 99 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 85 | | for (boost::graph_traits<GraphType>::adjacency_iterator \ |
| 86 | | BGL_FIRST(__LINE__) = adjacent_vertices(UNAME, GNAME).first,\ |
| 87 | | BGL_LAST(__LINE__) = adjacent_vertices(UNAME, GNAME).second; \ |
| 88 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 105 | for (std::pair<boost::graph_traits<GraphType>::adjacency_iterator, \ |
| | 106 | boost::graph_traits<GraphType>::adjacency_iterator> BGL_RANGE(__LINE__) = adjacent_vertices(UNAME, GNAME); \ |
| | 107 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 108 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 94 | | for (typename boost::graph_traits<GraphType>::out_edge_iterator \ |
| 95 | | BGL_FIRST(__LINE__) = out_edges(UNAME, GNAME).first,\ |
| 96 | | BGL_LAST(__LINE__) = out_edges(UNAME, GNAME).second; \ |
| 97 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 114 | for (std::pair<typename boost::graph_traits<GraphType>::out_edge_iterator, \ |
| | 115 | typename boost::graph_traits<GraphType>::out_edge_iterator> BGL_RANGE(__LINE__) = out_edges(UNAME, GNAME); \ |
| | 116 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 117 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 103 | | for (boost::graph_traits<GraphType>::out_edge_iterator \ |
| 104 | | BGL_FIRST(__LINE__) = out_edges(UNAME, GNAME).first,\ |
| 105 | | BGL_LAST(__LINE__) = out_edges(UNAME, GNAME).second; \ |
| 106 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 123 | for (std::pair<boost::graph_traits<GraphType>::out_edge_iterator, \ |
| | 124 | boost::graph_traits<GraphType>::out_edge_iterator> BGL_RANGE(__LINE__) = out_edges(UNAME, GNAME); \ |
| | 125 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 126 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 112 | | for (typename boost::graph_traits<GraphType>::in_edge_iterator \ |
| 113 | | BGL_FIRST(__LINE__) = in_edges(UNAME, GNAME).first,\ |
| 114 | | BGL_LAST(__LINE__) = in_edges(UNAME, GNAME).second; \ |
| 115 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 132 | for (std::pair<typename boost::graph_traits<GraphType>::in_edge_iterator, \ |
| | 133 | typename boost::graph_traits<GraphType>::in_edge_iterator> BGL_RANGE(__LINE__) = in_edges(UNAME, GNAME); \ |
| | 134 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 135 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |
| 121 | | for (boost::graph_traits<GraphType>::in_edge_iterator \ |
| 122 | | BGL_FIRST(__LINE__) = in_edges(UNAME, GNAME).first,\ |
| 123 | | BGL_LAST(__LINE__) = in_edges(UNAME, GNAME).second; \ |
| 124 | | BGL_FIRST(__LINE__) != BGL_LAST(__LINE__); BGL_FIRST(__LINE__) = BGL_LAST(__LINE__)) \ |
| | 141 | for (std::pair<boost::graph_traits<GraphType>::in_edge_iterator, \ |
| | 142 | boost::graph_traits<GraphType>::in_edge_iterator> BGL_RANGE(__LINE__) = in_edges(UNAME, GNAME); \ |
| | 143 | BGL_RANGE(__LINE__).first != BGL_RANGE(__LINE__).second; \ |
| | 144 | BGL_RANGE(__LINE__).first = BGL_RANGE(__LINE__).second) \ |