|
Boost Users : |
Subject: Re: [Boost-users] property mapping -- from vertex to complex structure
From: Ice Frog (icefrog1950_at_[hidden])
Date: 2011-09-25 16:39:27
Thanks, I fix it! :)
2011/9/26 Jeremiah Willcock <jewillco_at_[hidden]>
> On Sun, 25 Sep 2011, Ice Frog wrote:
>
> Hi,
>>
>
> In my project, every vertex represents a self-defined structure as as
>> basic block. It seems property(e.g., vertex_name_t) can only map a vertex to
>> enum, i.e, integer. Is it possible to map a vertex to a pointer or struct?
>> Even if I define a new vertex_xxx_t, it can also only map to enum.
>>
>
> Vertices can map to anything you want -- they normally map to things like
> doubles or strings. Use the second parameter to boost::property (for a
> graph) or the value template parameter of an external property map to set
> the type of values mapped to.
>
> -- Jeremiah Willcock
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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