Opened 8 years ago

#10090 new Bugs

[graph] missing documentation : member functions for bundled property in adjacency_list

Reported by: Akira Takahashi <faithandbrave@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.