Marco Bakera
10/3/2015 7:07:00 PM
Victor Porton schrieb am 03.10.2015 um 17:19:
> I need an iterator which returns "processed" data (a function applied to the
> unprocessed data received from a DB) and an iterator which return both
> processed an unprocessed data (as a structure having ->processed and
> -> unprocessed fields).
It seems you are using classes as data containers and not as living
things. That often happens when OR-mapping comes into place. I would
prefer to give some processing method to the entities.
If you want to rely on your decision it should be better to split
functionality into classes (first scenario) - at least if you plan to
implement it in an object-oriented manner.
Best,
Marco.