An iterator for accessing all the rectangles in a RectangleList. More...
Public Member Functions | |
| Iterator (const RectangleList &list) noexcept | |
| ~Iterator () | |
| bool | next () noexcept |
| Advances to the next rectangle, and returns true if it's not finished. | |
| const Rectangle< int > * | getRectangle () const noexcept |
| Returns the current rectangle. | |
An iterator for accessing all the rectangles in a RectangleList.
| RectangleList::Iterator::Iterator | ( | const RectangleList & | list | ) |
| bool RectangleList::Iterator::next | ( | ) |
Advances to the next rectangle, and returns true if it's not finished.
Call this before using getRectangle() to find the rectangle that was returned.
| const Rectangle<int>* RectangleList::Iterator::getRectangle | ( | ) | const |
Returns the current rectangle.