Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
b50b31da
Commit
b50b31da
authored
Feb 07, 2016
by
Tiago Peixoto
Browse files
Add never_filtered_never_reversed to list of graph_views
parent
cf6905e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_filtering.hh
View file @
b50b31da
...
...
@@ -355,6 +355,11 @@ struct never_filtered:
boost
::
mpl
::
bool_
<
false
>
,
boost
::
mpl
::
bool_
<
false
>
,
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
typedef
boost
::
mpl
::
size
<
all_graph_views
>::
type
n_views
;
#ifndef NO_GRAPH_FILTERING
...
...
@@ -373,30 +378,16 @@ struct action_wrap
{
action_wrap
(
Action
a
)
:
_a
(
a
)
{}
template
<
class
Type
>
auto
&
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>&
a
,
boost
::
mpl
::
true_
)
const
template
<
class
Type
,
class
IndexMap
>
auto
&
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
IndexMap
>&
a
,
boost
::
mpl
::
true_
)
const
{
return
a
;
}
template
<
class
Type
>
auto
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>&
a
,
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
template
<
class
Type
,
class
IndexMap
>
auto
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
IndexMap
>&
a
,
boost
::
mpl
::
false_
)
const
{
return
a
.
get_unchecked
();
}
...
...
@@ -503,6 +494,7 @@ typedef detail::always_reversed always_reversed;
typedef
detail
::
never_reversed
never_reversed
;
typedef
detail
::
always_directed_never_reversed
always_directed_never_reversed
;
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
bool
graph_filtering_enabled
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment