Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions include/boost/graph/breadth_first_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,6 @@ template < class Visitors = null_visitor > class bfs_visitor
return graph::bfs_visitor_event_not_overridden();
}

BOOST_GRAPH_EVENT_STUB(on_initialize_vertex, bfs)
BOOST_GRAPH_EVENT_STUB(on_discover_vertex, bfs)
BOOST_GRAPH_EVENT_STUB(on_examine_vertex, bfs)
BOOST_GRAPH_EVENT_STUB(on_examine_edge, bfs)
BOOST_GRAPH_EVENT_STUB(on_tree_edge, bfs)
BOOST_GRAPH_EVENT_STUB(on_non_tree_edge, bfs)
BOOST_GRAPH_EVENT_STUB(on_gray_target, bfs)
BOOST_GRAPH_EVENT_STUB(on_black_target, bfs)
BOOST_GRAPH_EVENT_STUB(on_finish_vertex, bfs)

protected:
Visitors m_vis;
};
Expand Down
10 changes: 0 additions & 10 deletions include/boost/graph/depth_first_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,6 @@ template < class Visitors = null_visitor > class dfs_visitor
invoke_visitors(m_vis, u, g, ::boost::on_finish_vertex());
}

BOOST_GRAPH_EVENT_STUB(on_initialize_vertex, dfs)
BOOST_GRAPH_EVENT_STUB(on_start_vertex, dfs)
BOOST_GRAPH_EVENT_STUB(on_discover_vertex, dfs)
BOOST_GRAPH_EVENT_STUB(on_examine_edge, dfs)
BOOST_GRAPH_EVENT_STUB(on_tree_edge, dfs)
BOOST_GRAPH_EVENT_STUB(on_back_edge, dfs)
BOOST_GRAPH_EVENT_STUB(on_forward_or_cross_edge, dfs)
BOOST_GRAPH_EVENT_STUB(on_finish_edge, dfs)
BOOST_GRAPH_EVENT_STUB(on_finish_vertex, dfs)

protected:
Visitors m_vis;
};
Expand Down
5 changes: 0 additions & 5 deletions include/boost/graph/maximum_adjacency_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ class mas_visitor
invoke_visitors(m_vis, u, g, ::boost::on_finish_vertex());
}

BOOST_GRAPH_EVENT_STUB(on_initialize_vertex, mas)
BOOST_GRAPH_EVENT_STUB(on_start_vertex, mas)
BOOST_GRAPH_EVENT_STUB(on_examine_edge, mas)
BOOST_GRAPH_EVENT_STUB(on_finish_vertex, mas)

protected:
Visitors m_vis;
};
Expand Down
21 changes: 0 additions & 21 deletions include/boost/graph/visitors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ namespace detail
on_edge_not_minimized_num
};

template < typename Event, typename Visitor >
struct functor_to_visitor : Visitor
{
typedef Event event_filter;
functor_to_visitor(const Visitor& visitor) : Visitor(visitor) {}
};

} // namespace detail

struct on_no_event
Expand Down Expand Up @@ -409,20 +402,6 @@ inline property_put< PropertyMap, EventTag > put_property(
return property_put< PropertyMap, EventTag >(property_map, value);
}

#define BOOST_GRAPH_EVENT_STUB(Event, Kind) \
typedef ::boost::Event Event##_type; \
template < typename Visitor > \
Kind##_visitor< std::pair< \
detail::functor_to_visitor< Event##_type, Visitor >, Visitors > > \
do_##Event(Visitor visitor) \
{ \
typedef std::pair< \
detail::functor_to_visitor< Event##_type, Visitor >, Visitors > \
visitor_list; \
typedef Kind##_visitor< visitor_list > result_type; \
return result_type(visitor_list(visitor, m_vis)); \
}

} /* namespace boost */

#endif
Loading