Commit b50b31da authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Add never_filtered_never_reversed to list of graph_views

parent cf6905e8
...@@ -355,6 +355,11 @@ struct never_filtered: ...@@ -355,6 +355,11 @@ struct never_filtered:
boost::mpl::bool_<false>,boost::mpl::bool_<false>, boost::mpl::bool_<false>,boost::mpl::bool_<false>,
boost::mpl::bool_<false>,boost::mpl::bool_<true> >::type {}; boost::mpl::bool_<false>,boost::mpl::bool_<true> >::type {};
struct never_filtered_never_reversed:
get_all_graph_views::apply<filt_scalar_type,boost::mpl::bool_<false>,
boost::mpl::bool_<false>,boost::mpl::bool_<false>,
boost::mpl::bool_<true>,boost::mpl::bool_<true> >::type {};
// sanity check // sanity check
typedef boost::mpl::size<all_graph_views>::type n_views; typedef boost::mpl::size<all_graph_views>::type n_views;
#ifndef NO_GRAPH_FILTERING #ifndef NO_GRAPH_FILTERING
...@@ -373,30 +378,16 @@ struct action_wrap ...@@ -373,30 +378,16 @@ struct action_wrap
{ {
action_wrap(Action a) : _a(a) {} action_wrap(Action a) : _a(a) {}
template <class Type> template <class Type, class IndexMap>
auto& uncheck(boost::checked_vector_property_map auto& uncheck(boost::checked_vector_property_map<Type,IndexMap>& a,
<Type,GraphInterface::vertex_index_map_t>& a, boost::mpl::true_) const boost::mpl::true_) const
{ {
return a; return a;
} }
template <class Type> template <class Type, class IndexMap>
auto uncheck(boost::checked_vector_property_map auto uncheck(boost::checked_vector_property_map<Type, IndexMap>& a,
<Type,GraphInterface::vertex_index_map_t>& a, boost::mpl::false_) const boost::mpl::false_) const
{
return a.get_unchecked();
}
template <class Type>
auto& uncheck(boost::checked_vector_property_map
<Type,GraphInterface::edge_index_map_t>& a, boost::mpl::true_) const
{
return a;
}
template <class Type>
auto uncheck(boost::checked_vector_property_map
<Type,GraphInterface::edge_index_map_t>& a, boost::mpl::false_) const
{ {
return a.get_unchecked(); return a.get_unchecked();
} }
...@@ -503,6 +494,7 @@ typedef detail::always_reversed always_reversed; ...@@ -503,6 +494,7 @@ typedef detail::always_reversed always_reversed;
typedef detail::never_reversed never_reversed; typedef detail::never_reversed never_reversed;
typedef detail::always_directed_never_reversed always_directed_never_reversed; typedef detail::always_directed_never_reversed always_directed_never_reversed;
typedef detail::never_filtered never_filtered; typedef detail::never_filtered never_filtered;
typedef detail::never_filtered_never_reversed never_filtered_never_reversed;
// returns true if graph filtering was enabled at compile time // returns true if graph filtering was enabled at compile time
bool graph_filtering_enabled(); bool graph_filtering_enabled();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment