mirror of
https://github.com/boostorg/graph.git
synced 2026-01-31 20:22:09 +00:00
added documentation for get_property(), thought about changing to
get(), but that would be difficult [SVN r7911]
This commit is contained in:
@@ -891,12 +891,31 @@ This sets the property value for <tt>x</tt> to
|
||||
<tt>typename property_traits<property_map<adjacency_list, Property>::type>::value_type</tt>
|
||||
<hr>
|
||||
|
||||
<hr>
|
||||
|
||||
<pre>
|
||||
template <class GraphProperties, class GraphProperty>
|
||||
typename property_value<GraphProperties, GraphProperty>::type&
|
||||
get_property(adjacency_list& g, GraphProperty);
|
||||
</pre>
|
||||
Return the property specified by <tt>GraphProperty</tt> that is
|
||||
attached to the graph object <tt>g</tt>.
|
||||
|
||||
<hr>
|
||||
|
||||
<pre>
|
||||
template <class GraphProperties, class GraphProperty>
|
||||
const typename property_value<GraphProperties, GraphProperty>::type&
|
||||
get_property(const adjacency_list& g, GraphProperty);
|
||||
</pre>
|
||||
Return the property specified by <tt>GraphProperty</tt> that is
|
||||
attached to the graph object <tt>g</tt>.
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- add the shortcut property functions -->
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>See Also</h3>
|
||||
|
||||
<a href="./adjacency_list_traits.html"><tt>adjacency_list_traits</tt></a>,
|
||||
|
||||
@@ -1417,7 +1417,6 @@ namespace boost {
|
||||
inline
|
||||
typename boost::property_map<typename Config::graph_type, Property>::type
|
||||
get(Property p, adj_list_helper<Config, Base>& g) {
|
||||
// typedef typename Property::kind Kind;
|
||||
typedef typename property_kind<Property>::type Kind;
|
||||
return detail::get_dispatch(g, p, Kind());
|
||||
}
|
||||
@@ -1426,7 +1425,6 @@ namespace boost {
|
||||
typename boost::property_map<typename Config::graph_type,
|
||||
Property>::const_type
|
||||
get(Property p, const adj_list_helper<Config, Base>& g) {
|
||||
// typedef typename Property::kind Kind;
|
||||
typedef typename property_kind<Property>::type Kind;
|
||||
return detail::get_dispatch(g, p, Kind());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user