Re: STL container with Gtk::ListStore without copying?



Maybe this is the more feasible way to do it. I'll try this one. Thanks.

2009/4/29 Paul Davis <paul linuxaudiosystems com>:
> On Wed, Apr 29, 2009 at 4:01 AM, Germán Diago <germandiago gmail com> wrote:
>> Anyway, I would like to know if there's at least a way to show data
>> from a container
>> avoiding copies, even if it's not a general method for stl containers.
>> Is this too much work?
>
> if you store pointer-to-object in the TreeModel, then on some level
> copying is avoided. you still have the hassle of maintaining both
> models and keep them in sync, but this is sometimes not so hard.
>
> i've used this approach a lot, btw,.
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]