Public Member Functions

RectangleList::Iterator Class Reference

An iterator for accessing all the rectangles in a RectangleList. More...

List of all members.

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.

Detailed Description

An iterator for accessing all the rectangles in a RectangleList.


Constructor & Destructor Documentation

RectangleList::Iterator::Iterator ( const RectangleList list )
RectangleList::Iterator::~Iterator (  )

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines