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
25200e72
Commit
25200e72
authored
Dec 19, 2017
by
Tiago Peixoto
Browse files
Force-inline degree selectors
parent
72e74070
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_selectors.hh
View file @
25200e72
...
...
@@ -101,6 +101,7 @@ struct in_degreeS
}
template
<
class
Graph
,
class
Key
,
class
Value
>
inline
__attribute__
((
always_inline
))
auto
get_in_degree
(
typename
boost
::
graph_traits
<
Graph
>::
vertex_descriptor
v
,
const
Graph
&
g
,
std
::
true_type
,
const
ConstantPropertyMap
<
Value
,
Key
>&
weight
)
const
...
...
@@ -109,6 +110,7 @@ struct in_degreeS
}
template
<
class
Graph
,
class
Key
,
class
Value
>
inline
__attribute__
((
always_inline
))
auto
get_in_degree
(
typename
boost
::
graph_traits
<
Graph
>::
vertex_descriptor
v
,
const
Graph
&
g
,
std
::
true_type
,
const
UnityPropertyMap
<
Value
,
Key
>&
)
const
...
...
@@ -160,6 +162,7 @@ struct out_degreeS
}
template
<
class
Graph
,
class
Key
,
class
Value
>
inline
__attribute__
((
always_inline
))
auto
get_out_degree
(
typename
boost
::
graph_traits
<
Graph
>::
vertex_descriptor
v
,
const
Graph
&
g
,
const
ConstantPropertyMap
<
Value
,
Key
>&
weight
)
const
...
...
@@ -168,6 +171,7 @@ struct out_degreeS
}
template
<
class
Graph
,
class
Key
,
class
Value
>
inline
__attribute__
((
always_inline
))
auto
get_out_degree
(
typename
boost
::
graph_traits
<
Graph
>::
vertex_descriptor
v
,
const
Graph
&
g
,
const
UnityPropertyMap
<
Value
,
Key
>&
)
const
...
...
Write
Preview
Markdown
is supported
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