|
Boost Users : |
Subject: Re: [Boost-users] translate C-code into objects
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2011-08-01 02:03:09
On Sunday, July 31, 2011 10:00:18 AM Peter Foelsche wrote:
> "Nathan Ridge" <zeratul976_at_[hidden]> wrote in message
> news:BLU162-w391671204D2BB963EB584996390_at_phx.gbl...
>
> >> phoenix is some library to create lambda functions.
> >> This is not what I need.
> >> I want to get objects out, which I can later work on.
> >
> > What sort of "work" do you want to do with these objects?
>
> I want to manipulate these objects.
> I want to iterate over these objects and create a new set of objects.
Use Phoenix. You can access the underlying expression tree and manipulate your
expression objects however you like.
Have a look here:
http://www.boost.org/doc/libs/1_47_0/libs/phoenix/doc/html/phoenix/examples/transforming_the_expression_tree.html
This example is also explained in the boostcon talk by Hartmut here (to the
end of the talk):
http://blip.tv/boostcon/phoenix-v3-an-overview-5250984
https://github.com/boostcon/2011_presentations/blob/master/mon/phoenix_v3.pdf?raw=true
HTH,
Thomas
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