|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-07-03 10:24:56
on Fri Jun 15 2007, "Jake Voytko" <jakevoytko-AT-gmail.com> wrote:
> I think if I were going this route (and I'm starting to see its merits, but
> more on that in a second), I would have all "set" functions that work in a
> chaining manner, and if I wanted to extend functionality as above, do as
> follows:
>
> void my_settings(svg_plot& plot)
> {
> my_plot . set_axis_color()
> . set_axis_line_width()
> . set_axis_line_style()
> // snip
> }
This is exactly what Boost.Parameter is for. Only it's much, much
better :-)
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk