2
0
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:
Jeremy Siek
2000-10-05 17:47:49 +00:00
parent 57e30998ce
commit fbcb03de6a
2 changed files with 21 additions and 4 deletions

View File

@@ -891,12 +891,31 @@ This sets the property value for <tt>x</tt> to
<tt>typename property_traits&lt;property_map&lt;adjacency_list, Property&gt;::type&gt::value_type</tt>
<hr>
<hr>
<pre>
template &lt;class GraphProperties, class GraphProperty&gt;
typename property_value&lt;GraphProperties, GraphProperty&gt;::type&amp;
get_property(adjacency_list&amp; g, GraphProperty);
</pre>
Return the property specified by <tt>GraphProperty</tt> that is
attached to the graph object <tt>g</tt>.
<hr>
<pre>
template &lt;class GraphProperties, class GraphProperty&gt;
const typename property_value&lt;GraphProperties, GraphProperty&gt;::type&amp;
get_property(const adjacency_list&amp; 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>,

View File

@@ -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());
}