joechenq / quimeraengine

Automatically exported from code.google.com/p/quimeraengine
0 stars 0 forks source link

QConstListIterator #598

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is necessary to provide an iterator that disallows modifiying pointed 
elements. It will be called QConstListIterator, will be defined inside QList 
and will be a base class for QListIterator.
The task consists in copying the full code of QListIteratorin to the new class, 
ranaming QListIterator to QConstListIterator and removing all the methods of 
QListIterator but these:
-QListIterator
-operator*
-operator->
-operator++ (pre)
-operator-- (pre)
-operator++ (post)
-operator-- (post)

Besides, QConstListIterator's versions of operator* and operator-> will return 
a constant reference and a constant pointer, respectively.
The same copy and remove operations must be applied to the tests of 
QListIterator.

Original issue reported on code.google.com by Lince3D@gmail.com on 9 May 2014 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 6 Jul 2014 at 1:02

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 30 Oct 2014 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 30 Oct 2014 at 9:04

Attachments:

GoogleCodeExporter commented 9 years ago
Results of the review: Correct.

Original comment by Lince3D@gmail.com on 1 Nov 2014 at 3:12