get_property fix for subgraph

[SVN r30220]
This commit is contained in:
Douglas Gregor
2005-07-22 19:22:00 +00:00
parent 64f732195e
commit 6df693c448
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -112,8 +112,10 @@ September 27, 2000.
<tt>breadth_first_search</tt> and now supports graphs with
multiple components.</li>
<li><a href="subgraph.html"><tt>subgraph</tt></a> now
supports <a href="bundles.html">bundled properties</a>.</li>
<li><a href="subgraph.html"><tt>subgraph</tt></a> now supports
<a href="bundles.html">bundled
properties</a>. <code>get_property</code> now refers to the
subgraph property, not the root graph's property.</li></li>
<li><a href="filtered_graph.html"><tt>filtered_graph</tt></a> now
supports <a href="bundles.html">bundled properties</a>.</li>
+2 -2
View File
@@ -633,7 +633,7 @@ typename property_value&lt;GraphProperties, GraphPropertyTag&gt;::type&amp;
get_property(subgraph&amp; g, GraphPropertyTag);
</pre>
Return the property specified by <tt>GraphPropertyTag</tt> that is attached
to the graph object <tt>g</tt>. The <tt>property_value</tt> traits class
to the subgraph object <tt>g</tt>. The <tt>property_value</tt> traits class
is defined in <tt>boost/pending/property.hpp</tt>.
@@ -644,7 +644,7 @@ const typename property_value&lt;GraphProperties, GraphPropertyTag&gt;::type&amp
get_property(const subgraph&amp; g, GraphPropertyTag);
</pre>
Return the property specified by <tt>GraphPropertyTag</tt> that is
attached to the graph object <tt>g</tt>. The <tt>property_value</tt>
attached to the subgraph object <tt>g</tt>. The <tt>property_value</tt>
traits class is defined in <tt>boost/pending/property.hpp</tt>.
<hr>
+2 -2
View File
@@ -847,14 +847,14 @@ namespace boost {
inline
typename graph_property<G, Tag>::type&
get_property(subgraph<G>& g, Tag tag) {
return get_property(g.root().m_graph, tag);
return get_property(g.m_graph, tag);
}
template <typename G, typename Tag>
inline
const typename graph_property<G, Tag>::type&
get_property(const subgraph<G>& g, Tag tag) {
return get_property(g.root().m_graph, tag);
return get_property(g.m_graph, tag);
}
//===========================================================================