indiantarget / quimeraengine

0 stars 0 forks source link

QConstNTreeIterator #599

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 QConstNTreeIterator, will be defined inside QNTree 
and will be a base class for QNTreeIterator.
The task consists in copying the full code of QListIteratorin to the new class, 
ranaming QNTreeIterator to QConstNTreeIterator and removing all the methods of 
QNTreeIterator but these:
-QNTreeIterator
-operator*
-operator->
-operator++ (pre)
-operator-- (pre)
-operator++ (post)
-operator-- (post)

Besides, QConstNTreeIterator'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 
QNTreeIterator.

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

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 26 Jul 2014 at 2:34

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 31 Oct 2014 at 1:10

Attachments:

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

Original comment by Lince3D@gmail.com on 2 Nov 2014 at 8:17