Boost logo

Boost Users :

From: martin f krafft (madduck_at_[hidden])
Date: 2005-06-13 15:40:11


also sprach martin f krafft <madduck_at_[hidden]> [2005.06.13.1249 +0200]:
> I would like my nodes and edges to have behaviours. Bundled
> properties -- the method to attach struct instances to nodes and
> edges -- seems like the way to go. However, if that is the
> suggested method, then "bundled properties" is somewhat of
> a misnomer.

... and even if: how do you get the property object from am edge or
vertex descriptor? If g is an adjacency list with Edge and Node
structs as edge and vertex property bundles, and ei/vi are
edge/vertex iterators respectively, then the following allows me to
call Edge/Node::fn():

  g[*ei].fn()
  g[*vi].fn()

This is rather awkward. Is there a better way?

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net_at_madduck
 
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus_at_[hidden]
 
"heuristic is computer science jargon for 'doesn't actually work.'"
                                                     -- charlie reiman



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net