On Fri, Mar 02, 2007 at 03:38:45PM +0100, Udo Giacomozzi wrote:
> Hello strk,
> 
> Thursday, March 1, 2007, 2:24:16 PM, you wrote:
> s> This was the reason to provide a 'visitor' model for SnappingRanges2d, 
> hiding
> s> the underlying container type. This use uses a random access iterator when
> s> it doesn't even need to. For a source-level compatibility with future 
> container
> s> switch we could expose the iterator interface, or provide the visitor 
> pattern.
> 
> Ok. But I ask you to do this as you are probably more experienced with
> it.

I've committed the visit() method, but it is still untested.
Do you want to try it out ? If you do examples of use are
in sprite_instance.cpp. One example prematurely ending the loop is
MouseEntityFinder class.

        bool operator() (character* ch)

Should be changes with

        bool operator() (Range2d<xx>& ch)

You can have multiple overloaded operator() to accept different
kind of Range2d<> classes, or even make the visitor class itself
a template.

--strk;


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to