Fwd: Bundled properties for GraphProperties

Hi all, I wonder if I can use a user defined class (bundled property) as a GraphProperty. The documentation just says about vertex and edge properties. Actually I could compile the below line with no errors: typedef adjacency_list<listS, vecS, directedS, vClass, eClass, gClass> Graph; vClass, eClass and gClass are my own classes. I don't know how to access the members from gClass anyway. Graph g; Vertex v; Edge e; g[v].vMember and g[e].eMember work fine. But I get error for g.gMember. Thanks Saeed

On Wed, 25 Aug 2010, Saeed Nari wrote:
Hi all,
I wonder if I can use a user defined class (bundled property) as a GraphProperty. The documentation just says about vertex and edge properties. Actually I could compile the below line with no errors:
typedef adjacency_list<listS, vecS, directedS, vClass, eClass, gClass> Graph;
vClass, eClass and gClass are my own classes. I don't know how to access the members from gClass anyway.
Graph g; Vertex v; Edge e;
g[v].vMember and g[e].eMember work fine. But I get error for g.gMember.
This feature was only added to the Boost trunk recently and it is not in any releases. I believe the trunk documentation talks about how to use it. -- Jeremiah Willcock

Saeed, Download the trunk and use g[graph_bundle].gMember; ________________________________ From: Saeed Nari <s.nari@unb.ca> To: boost-users@lists.boost.org Sent: Wed, August 25, 2010 8:59:52 AM Subject: [Boost-users] Fwd: Bundled properties for GraphProperties Hi all, I wonder if I can use a user defined class (bundled property) as a GraphProperty. The documentation just says about vertex and edge properties. Actually I could compile the below line with no errors: typedef adjacency_list<listS, vecS, directedS, vClass, eClass, gClass> Graph; vClass, eClass and gClass are my own classes. I don't know how to access the members from gClass anyway. Graph g; Vertex v; Edge e; g[v].vMember and g[e].eMember work fine. But I get error for g.gMember. Thanks Saeed _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Andrew Sutton
-
Jeremiah Willcock
-
John Robertson
-
Saeed Nari