[Boost-bugs] [Boost C++ Libraries] #10090: [graph] missing documentation : member functions for bundled property in adjacency_list

Subject: [Boost-bugs] [Boost C++ Libraries] #10090: [graph] missing documentation : member functions for bundled property in adjacency_list
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-04 09:14:50


#10090: [graph] missing documentation : member functions for bundled property in
adjacency_list
-----------------------------------------------+----------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: jewillco
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: graph
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+----------------------
 In Bundled property's documentation, `operator[ ]` is documented.
 http://www.boost.org/doc/libs/1_55_0/libs/graph/doc/bundles.html

 {{{
 Map map; // load the map
 Map::vertex_descriptor v = *vertices(map).first;
 map[v].name = "Troy";
 map[v].population = 49170;
 map[v].zipcodes.push_back(12180);
 }}}

 But, In `adjacency_list` documentation is not.
 http://www.boost.org/doc/libs/1_55_0/libs/graph/doc/adjacency_list.html

 Should add follow member functions reference:
 {{{
 // boost/graph/adjacency_list.hpp
 vertex_bundled& operator[](vertex_descriptor v)
 { return get(vertex_bundle, *this)[v]; }

 const vertex_bundled& operator[](vertex_descriptor v) const
 { return get(vertex_bundle, *this)[v]; }

 edge_bundled& operator[](edge_descriptor e)
 { return get(edge_bundle, *this)[e]; }

 const edge_bundled& operator[](edge_descriptor e) const
 { return get(edge_bundle, *this)[e]; }

 graph_bundled& operator[](graph_bundle_t)
 { return get_property(*this); }

 graph_bundled const& operator[](graph_bundle_t) const
 { return get_property(*this); }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10090>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC