Boost logo

Geometry :

Subject: [ggl] spacial index construction interface
From: Barend Gehrels (barend)
Date: 2011-03-07 16:09:30


> I can imagine these possible implementations:
>
> 1. Full run-time polimorphism.
>
> Close to the existing implementation.
>
> [...]
>
> 2. One virtual function is_leaf()
>
> [...]

Sounds as it it does not create any profit.

> 3. No virtuals. Unused data.
>

Seems a bit as if mocking virtual methods. Unused data is also not the
best solution. But anyway, maybe a candidate.

> [...]
> I'm open to suggestions.

Just brainstorming, maybe virtual methods are unavoidable. Still think
in a tree with a fixed amount of levels, its behaviour could be fixed so
not virtual. But don't know if that is the best solution.

Barend

-- 
Barend Gehrels
http://about.me/barendgehrels

Geometry list run by mateusz at loskot.net