[Liblas-devel] Re: FOSS4G Presentation

Martin Rodriguez mrodriguez at stereocarto.com
Tue Sep 23 13:23:52 EDT 2008


Hi:


>> Now, iterators can have different faces:
>> - they can work just as pointers do
>> - they can work as a view concept - view as interms of SQL view
>> - they can extend elements accesssing with custom logic like filtering, 
>> transformation, etc.

I didn´t know this.




>>  author likes events much. In some languages like Java and C#, where 

Java don´t have native delegates/events. This is a concept new in c# and
after use in D.


> When working with iterators, you don't need to know number elements you 
> are going to read. You just work with ranges of elements of a sequence.

Yes, like List or trees. You are right.

>> BOOST_FOREACH is cool and it simplifies sequence iterating much.
>> However, it's not anything different, just a syntactic sugar to make use 
>> of iterators easier. But still, we need to provide access to LAS 
>> reader/writer with iterators, iterators in terms of STL concept.

Yes but it´s useful for people. They avoid create the boilerplate.
In c# or in D you need add the backend to the class to have support to the
foreach the same to C++.
I don´t use boost but I saw it´s only a MACRO to STL very similar to the Qt
foreach using the moc preprocessor.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org




More information about the Liblas-devel mailing list